itkwasm_htj2k.decode_async¶

Module Contents¶

Functions¶

decode_async

Decode a High Throughput JPEG2000 codestream and generate an ITK Image

API¶

async itkwasm_htj2k.decode_async.decode_async(codestream: bytes, decomposition_level: int = 0, information_only: bool = False) itkwasm.Image¶

Decode a High Throughput JPEG2000 codestream and generate an ITK Image

Parameters:
  • codestream (bytes) – Input HTJ2K codestream

  • decomposition_level (int) – Decomposition level to decode. 0 is the highest resolution.

  • information_only (bool) – Only read metadata for the image but do not decode the pixel data.

Returns:

Output image

Return type:

Image