InsightSoftwareConsortium / InsightSoftwareConsortium/ITK

Wrap SpatialObjectToImageStatisticsCalculator for Python

Open
#4,689 0 comments 0 reactions 1 assignee Claimed by @aylward View on GitHub
area:Python wrapping type:Enhancement
Dominant language
C++
Stars
1.7k
Forks
748
Avg merge
1d 1h
Merged PRs (30d)
64

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.