[IGSTK-Developers] Incomplete functions in GenericImageSpatialObject?
Torleif Sandnes
torleif.sandnes at sintef.no
Thu Dec 13 05:33:53 EST 2007
Hi.
I was considering to start using the GenericImageSpatialObject class,
but was a bit put off by a number of FIXME comments. For example in
TransformPysicalPointToIndex():
------------------------------------------------------------
ContinuousIndexType cindex;
bool isInside = true;
// FIXME: here there should be a switch statement...
// bool isInside =
// m_Image->TransformPhysicalPointToContinuousIndex( point, cindex);
// Do the right rounding
index[0] = int ( cindex[0] + 0.5 );
index[1] = int ( cindex[1] + 0.5 );
index[2] = int ( cindex[2] + 0.5 );
return isInside;
------------------------------------------------------------
The switch statement referred to should probably do different things
according to pixeltype but I don't see how. Could any of you provide
any hints as to how to complete the incomplete methods in this class?
Thanks,
Torleif
More information about the IGSTK-Developers
mailing list