Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
As of ITK 5.4, itk::SpatialObjectToImageStatisticsCalculator is not exposed via the Python interface.
Expected behavior
It would be great to access it as itk.SpatialObjectToImageStatisticsCalculator or, better yet, itk.spatial_object_to_image_statistics_calculator.
Actual behavior
One possible workaround involves first using SpatialObjectToImageFilter to convert the spatial object to a label image and using LabelStatisticsImageFilter for measurements, which can be computationally costly for large images.
Description
As of ITK 5.4,
itk::SpatialObjectToImageStatisticsCalculator
is not exposed via the Python interface.Expected behavior
It would be great to access it as
itk.SpatialObjectToImageStatisticsCalculator
or, better yet,itk.spatial_object_to_image_statistics_calculator
.Actual behavior
One possible workaround involves first using
SpatialObjectToImageFilter
to convert the spatial object to a label image and usingLabelStatisticsImageFilter
for measurements, which can be computationally costly for large images.Additional Information