itkwasm_downsample.downsample_bin_shrink_async

Module Contents

Functions

downsample_bin_shrink_async

Apply local averaging and subsample the input image.

API

async itkwasm_downsample.downsample_bin_shrink_async.downsample_bin_shrink_async(input: itkwasm.Image, shrink_factors: List[int] = [], information_only: bool = False) itkwasm.Image

Apply local averaging and subsample the input image.

Parameters:
  • input (Image) – Input image

  • shrink_factors (int) – Shrink factors

  • information_only (bool) – Generate output image information only. Do not process pixels.

Returns:

Output downsampled image

Return type:

Image