itkwasm_morphological_contour_interpolation.morphological_contour_interpolation_async
ΒΆ
Module ContentsΒΆ
FunctionsΒΆ
Interpolates contours between slices. |
APIΒΆ
- async itkwasm_morphological_contour_interpolation.morphological_contour_interpolation_async.morphological_contour_interpolation_async(input_image: itkwasm.Image, label: int = 0, axis: int = -1, no_heuristic_alignment: bool = False, no_use_distance_transform: bool = False, use_custom_slice_positions: bool = False, no_use_extrapolation: bool = False, use_ball_structuring_element: bool = False, labeled_slice_indices_axis: int = -1, labeled_slice_indices_label: int = 1, labeled_slice_indices: Optional[List[int]] = None) itkwasm.Image ΒΆ
Interpolates contours between slices.
- Parameters:
input_image (Image) β The input image
label (int) β The label to interpolate. Interpolates all labels if set to 0 (default).
axis (int) β Interpolate only along this axis. Interpolates along all axes if set to -1 (default).
no_heuristic_alignment (bool) β Heuristic alignment of regions for interpolation is faster than optimal alignment.
no_use_distance_transform (bool) β Using distance transform instead of repeated dilations to calculate the median contour is slightly faster, but produces lower quality interpolations.
use_custom_slice_positions (bool) β Use custom slice positions (not slice auto-detection).
no_use_extrapolation (bool) β Perform extrapolation for branch extremities. Branch extremities are defined as regions having no overlap with any region in the next slice. Extrapolation helps generate smooth surface closings.
use_ball_structuring_element (bool) β Use ball instead of default cross structuring element for repeated dilations.
labeled_slice_indices_axis (int) β Axis along which the labeled slice indices are defined. Default is -1 (that is, auto-detection).
labeled_slice_indices_label (int) β Label of the slice indices. Default is 1.
labeled_slice_indices (int) β List of labeled slice indices. Default is empty.
- Returns:
The output image
- Return type:
Image