itkwasm_downsample.downsample_async

Module Contents

Functions

downsample_async

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

API

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