[Insight-users] Problem with LabelMap and negativ spacing

Carsten Kendziorra carsten.kendziorra at charite.de
Fri Jun 7 06:50:41 EDT 2013


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


More information about the Insight-users mailing list