-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update LabelGeometryMeasures to use improved ITK filter #1269
Comments
Sounds like a good idea. I didn't know the current version doesn't take into account image orientation information. Do you want to make this change or would you like me to put it on my to-do list? |
I can do it. I did a little more exploring, it looks like it uses index space for some calculations https://discourse.itk.org/t/labelgeometryimagefilter-not-using-physical-space/1566/3 |
Thanks. I don't think the changes should affect us to much as most usage, I would imagine, are the volume and surface area calculations which should be unaffected, the latter being a completely separate filter. |
@ntustison correct, it looks like you already replaced LabelGeometryImageFilter with LabelImageToShapeLabelMapFilter specifically for the surface area computation. I might actually need help as I can't understand this label map structure. The rest of the stats apart from surface area still come from LabelGeometryImageFilter. The ShapeLabelObject provides elongation, centroid, bounds but not eccentricity. And it gets more complicated still once a grayscale image is involved. The Insight article says to use a StatisticsLabelMapFilter but I don't understand it as that appears to want a label image as input rather than a label map. |
Thanks @cookpa . Now I remember making these changes. Gaetan had originally written a really nice digital perimeter estimation filter which, if I remember correctly, was eventually integrated into the LabelObject framework and so I switched over. I'm pretty sure I looked at moving everything over but it wasn't clear to me what the equivalent calls were or what do with what appears to be additional measures, so I punted. Perhaps we should create something like |
Makes sense. It's a lower priority than I first thought. |
Fixed by #1737 |
Is your feature request related to a problem?
Possibly,
https://discourse.itk.org/t/trying-to-access-labelgeometryimagefilter-in-itk-5-2-1-post1-python-package/4538/6
Proposed new features
Use updated new implementation
https://itk.org/Doxygen/html/classitk_1_1LabelImageToShapeLabelMapFilter.html
The text was updated successfully, but these errors were encountered: