[Insight-users] Funny LabelObject GetCentroid() behaviour
Mario Ceresa
mrceresa at gmail.com
Tue Sep 14 12:33:30 EDT 2010
Hello everybody!
I have a funny problem with the GetCentroid() method of LabelObject:
On a Fedora 13 64 bit - ITK 3.16 + binaryAttributeMorphology
downloaded on Jan 3 2010 everything works correctly:
[mario at 1006505 bin]$ ./test_centroid 3-map.dcm
Considering object 1 with size 37839488 and center [251.218,
171.493, 174.806]
Considering object 2 with size 9791707 and center [261.554,
316.538, 154.827]
Considering object 20 with size 134676 and center [373.458,
177.895, 337.078]
On a Red Hat Enterprise Linux Server release 5.5 - 64 bit - with the
same ITK and binaryAttributeMorphology version, the output is:
[mario at 1006504 bin]$ test_centroid 3-map.dcm
Considering object 1 with size 37839488 and center [-9.43763,
-292.436, -172.694]
Considering object 2 with size 9791707 and center [-1.14033,
-176.002, -192.673]
Considering object 20 with size 134676 and center [88.689,
-287.296, -10.4225]
I attach the program that I used to test the error and I also uploaded
the image on dropbox just in case:
http://dl.dropbox.com/u/9513411/3-map.dcm.tar.gz
Thanks for any insight ;) you might provide on this issue,
With best regards,
Mario
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_centroid.tar.gz
Type: application/x-gzip
Size: 1261 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100914/9cb36733/attachment.bin>
More information about the Insight-users
mailing list