itkwasm_downsample.downsample_label_image_async

Module Contents

Functions

downsample_label_image_async

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

API

async itkwasm_downsample.downsample_label_image_async.downsample_label_image_async(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