itkwasm_downsample.downsample_label_image¶

Module Contents¶

Functions¶

downsample_label_image

Subsample the input label image a according to weighted voting of local labels.

API¶

itkwasm_downsample.downsample_label_image.downsample_label_image(input: itkwasm.Image, shrink_factors: List[int] = [], crop_radius: Optional[List[int]] = None) itkwasm.Image¶

Subsample the input label image a according to weighted voting of local labels.

Parameters:
  • input (Image) – Input image

  • shrink_factors (int) – Shrink factors

  • crop_radius (int) – Optional crop radius in pixel units.

Returns:

Output downsampled image

Return type:

Image