Skip to content

ITK Python and output of WatershedImageFilter #2551

@brad-t-moore

Description

@brad-t-moore

Description

WatershedImageFilter produces an itk.ULL (IdentifierType) Image. CastImageFilter doesn't wrap itk.ULL.

https://github.com/InsightSoftwareConsortium/ITK/blob/f98f6a8920c2b8af175865458fade50439a81c3a/Modules/Segmentation/Watersheds/include/itkWatershedImageFilter.h

Expected behavior

The current Python example: https://itk.org/ITKExamples/src/Segmentation/Watersheds/SegmentWithWatershedImageFilter/Documentation.html

works by using ScalarToRGBColormapImageFilter which is wrapped for ULL.

Would like to be able to have either ULL supported/wrapped in CastImageFilter or modifying WaterShedImageFilter to take OutputImageType (with default IdentifierType) as a parameter. Thoughts?

Versions

itk-5.2.0.post2

If the commit number is required, run $ git rev-parse --short HEAD. -->

Environment

Python 3.7.6
Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:Use_Milestone_BacklogUse "Backlog" milestone instead of label for issues without a fixed deadlinetype:BugInconsistencies or issues which will cause an incorrect result under some or all circumstances

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions