[ITK] [ITK-users] BinaryImageToShapeLabelMapFilter problem
Bradley Lowekamp
blowekamp at mail.nih.gov
Mon Dec 8 10:18:28 EST 2014
Hello,
The BinaryImageToShapeLabelMapFilter's Centroids are computed in physical space and are represented as a point.
ITK uses strong type which makes this type of issue clear. The type of itk::ShapreLabelObject::CentroidType[1] is an itk::Point. This is used for physical coordinates. While the itk::Index type ( or itk::ContinuousIndex ) is used for indices.
Also the PhysicalSize is going to be in your physical units, and not the number of voxels.
Brad
[1] http://www.itk.org/Doxygen/html/classitk_1_1ShapeLabelObject.html#a34402f70c483dfe5b7e412d891d5abf6
On Dec 8, 2014, at 10:11 AM, Zein Salah <zeinsalah at gmail.com> wrote:
> Are elements in
> a label map no more related to there position in the image? or I am
> missing some point here??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20141208/9c96581b/attachment.html>
More information about the Community
mailing list