| Constructor and Description |
|---|
JPEG2000Codec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data,
CodecOptions options)
The CodecOptions parameter should have the following fields set:
width
height
bitsPerSample
channels
interleaved
littleEndian
lossless |
byte[] |
decompress(byte[] buf,
CodecOptions options)
The CodecOptions parameter should have the following fields set:
interleaved
littleEndian |
byte[] |
decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
The CodecOptions parameter should have the following fields set:
interleaved
littleEndian |
compress, compress, decompress, decompress, decompress, testpublic byte[] compress(byte[] data,
CodecOptions options)
throws CodecException
width
height
bitsPerSample
channels
interleaved
littleEndian
losslessdata - The data to be compressed.options - Options to be used during compression, if appropriate.CodecException - If input is not a compressed data block of the
appropriate type.Codec.compress(byte[], CodecOptions)public byte[] decompress(loci.common.RandomAccessInputStream in,
CodecOptions options)
throws CodecException,
IOException
interleaved
littleEndiandecompress in interface Codecdecompress in class BaseCodecin - The stream from which to read compressed data.options - Options to be used during decompression.CodecException - If data is not valid compressed data for this
decompressor.IOExceptionCodec.decompress(RandomAccessInputStream, CodecOptions)public byte[] decompress(byte[] buf,
CodecOptions options)
throws CodecException
interleaved
littleEndiandecompress in interface Codecdecompress in class BaseCodecbuf - the data to be decompressedoptions - Options to be used during decompression.CodecException - If data is not valid.Codec.decompress(byte[], CodecOptions)Copyright © 2005–2025 Open Microscopy Environment. All rights reserved.