Package ome.codecs
Class JPEG2000Codec
java.lang.Object
ome.codecs.BaseCodec
ome.codecs.JPEG2000Codec
- All Implemented Interfaces:
Codec
This class implements JPEG 2000 compression and decompression.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]compress(byte[] data, CodecOptions options) The CodecOptions parameter should have the following fields set:widthheightbitsPerSamplechannelsinterleavedlittleEndianlosslessbyte[]decompress(byte[] buf, CodecOptions options) The CodecOptions parameter should have the following fields set:interleavedlittleEndianbyte[]decompress(loci.common.RandomAccessInputStream in, CodecOptions options) The CodecOptions parameter should have the following fields set:interleavedlittleEndianMethods inherited from class ome.codecs.BaseCodec
compress, compress, decompress, decompress, decompress, test
-
Constructor Details
-
JPEG2000Codec
public JPEG2000Codec()
-
-
Method Details
-
compress
The CodecOptions parameter should have the following fields set:widthheightbitsPerSamplechannelsinterleavedlittleEndianlossless- Parameters:
data- The data to be compressed.options- Options to be used during compression, if appropriate.- Returns:
- The compressed data.
- Throws:
CodecException- If input is not a compressed data block of the appropriate type.- See Also:
-
decompress
public byte[] decompress(loci.common.RandomAccessInputStream in, CodecOptions options) throws CodecException, IOException The CodecOptions parameter should have the following fields set:interleavedlittleEndian- Specified by:
decompressin interfaceCodec- Specified by:
decompressin classBaseCodec- Parameters:
in- The stream from which to read compressed data.options- Options to be used during decompression.- Returns:
- The decompressed data.
- Throws:
CodecException- If data is not valid compressed data for this decompressor.IOException- See Also:
-
decompress
The CodecOptions parameter should have the following fields set:interleavedlittleEndian- Specified by:
decompressin interfaceCodec- Overrides:
decompressin classBaseCodec- Parameters:
buf- the data to be decompressedoptions- Options to be used during decompression.- Returns:
- the decompressed data.
- Throws:
CodecException- If data is not valid.- See Also:
-