-
-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Do not wrap unsigned char for connected component output
Often the generated labels exceed 255.
- Loading branch information
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...les/Segmentation/ConnectedComponents/wrapping/itkScalarConnectedComponentImageFilter.wrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
itk_wrap_class("itk::ScalarConnectedComponentImageFilter" POINTER_WITH_SUPERCLASS) | ||
itk_wrap_image_filter("${WRAP_ITK_INT}" 2 2+) | ||
UNIQUE(to_types "UL;${WRAP_ITK_INT}") | ||
# Supports too few labels. | ||
list(REMOVE_ITEM to_types "UC") | ||
itk_wrap_image_filter_combinations("${WRAP_ITK_INT}" "${to_types}" 2+) | ||
itk_end_wrap_class() |