[Insight-developers] Problem with LabelMap and negativ spacing
Bradley Lowekamp
blowekamp at mail.nih.gov
Fri Jun 7 07:55:46 EDT 2013
Hi,
I have always assumed that the spacing is positive. I am surprised that it wasn't enforced or check else where.
Generally the direction cosine matrix is used for orientation.
Why are you using a negative spacing? (that does just sound wrong to me)
Brad
On Jun 7, 2013, at 6:50 AM, Carsten Kendziorra <carsten.kendziorra at charite.de> wrote:
> Hello,
>
> I'm using a itk::BinaryImageToShapeLabelMapFilter to create a itk::LabelMap and take afterwards a an object:
>
> itk::LabelMap::LabelObjectType* labelObject = labelMap->GetNthLabelObject(LabelNumber);
>
> Unfortunately
> labelObject->GetEquivalentEllipsoidDiameter()
> returns [-nan, -nan, -nan], if the spacing of the BinaryImage is negative. Everything works fine for positive spacing.
>
> Is negative spacing not allowed here? Or how to deal with negative spacing?
>
> Thanks for any help!
> Carsten
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list