Skip to content
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

Wrap SpatialObjectToImageStatisticsCalculator for Python #4689

Open
auneri opened this issue May 21, 2024 · 0 comments
Open

Wrap SpatialObjectToImageStatisticsCalculator for Python #4689

auneri opened this issue May 21, 2024 · 0 comments
Assignees
Labels
area:Python wrapping Python bindings for a class type:Enhancement Improvement of existing methods or implementation

Comments

@auneri
Copy link

auneri commented May 21, 2024

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 using LabelStatisticsImageFilter for measurements, which can be computationally costly for large images.

Additional Information

@auneri auneri added the type:Enhancement Improvement of existing methods or implementation label May 21, 2024
@thewtex thewtex added the area:Python wrapping Python bindings for a class label May 21, 2024
@aylward aylward self-assigned this Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Python wrapping Python bindings for a class type:Enhancement Improvement of existing methods or implementation
Projects
None yet
Development

No branches or pull requests

3 participants