numcodecs_wasm_jpeg2000
Classes:
-
Jpeg2000–Codec providing compression using JPEG 2000.
Jpeg2000
Jpeg2000(mode, _version='0.1.0', psnr=None, rate=None)
Codec providing compression using JPEG 2000.
Arrays that are higher-dimensional than 2D are encoded by compressing each
2D slice with JPEG 2000 independently. Specifically, the array's shape is
interpreted as [.., height, width]. If you want to compress 2D slices
along two different axes, you can swizzle the array axes beforehand.
| Parameters: |
|
|---|
Methods:
-
decode–Decode the data in
buf. -
encode–Encode the data in
buf. -
from_config–Instantiate the codec from a configuration
dict. -
get_config–Returns the configuration of the codec.
codec_id
class-attribute
instance-attribute
codec_id = 'jpeg2000.rs'
decode
decode(buf, out=None)
Decode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|
encode
encode(buf)
Encode the data in buf.
| Parameters: |
|
|---|
| Returns: |
|
|---|
from_config
classmethod
from_config(config)
get_config
get_config()
Returns the configuration of the codec.
numcodecs.registry.get_codec(config)
can be used to reconstruct this codec from the returned config.
| Returns: |
|
|---|