itkwasm_downsample.downsample¶

Module Contents¶

Functions¶

downsample

Apply a smoothing anti-alias filter and subsample the input image.

API¶

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

Apply a smoothing anti-alias filter and subsample the input image.

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