itkwasm_morphological_contour_interpolation.morphological_contour_interpolationΒΆ

Module ContentsΒΆ

FunctionsΒΆ

morphological_contour_interpolation

Interpolates contours between slices.

APIΒΆ

itkwasm_morphological_contour_interpolation.morphological_contour_interpolation.morphological_contour_interpolation(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