use of loci.formats.codec.CodecOptions in project bioformats by openmicroscopy.
the class TiffCompressionCompressTest method testJPEG_2000.
@Test
public void testJPEG_2000() throws FormatException, IOException {
TiffCompression compression = TiffCompression.JPEG_2000;
CodecOptions options = compression.getCompressionCodecOptions(ifd);
byte[] compressed = compression.compress(data, options);
assertNotNull(compressed);
}
use of loci.formats.codec.CodecOptions in project bioformats by openmicroscopy.
the class TiffCompressionCompressTest method testLURAWAVE.
@Test(expectedExceptions = { FormatException.class })
public void testLURAWAVE() throws FormatException, IOException {
TiffCompression compression = TiffCompression.LURAWAVE;
CodecOptions options = compression.getCompressionCodecOptions(ifd);
compression.compress(data, options);
}
use of loci.formats.codec.CodecOptions in project bioformats by openmicroscopy.
the class TiffCompressionCompressTest method testGROUP_3_FAX.
@Test(expectedExceptions = { FormatException.class })
public void testGROUP_3_FAX() throws FormatException, IOException {
TiffCompression compression = TiffCompression.GROUP_3_FAX;
CodecOptions options = compression.getCompressionCodecOptions(ifd);
compression.compress(data, options);
}
use of loci.formats.codec.CodecOptions in project bioformats by openmicroscopy.
the class TiffCompressionCompressTest method testPACK_BITS.
@Test(expectedExceptions = { FormatException.class })
public void testPACK_BITS() throws FormatException, IOException {
TiffCompression compression = TiffCompression.PACK_BITS;
CodecOptions options = compression.getCompressionCodecOptions(ifd);
compression.compress(data, options);
}
use of loci.formats.codec.CodecOptions in project bioformats by openmicroscopy.
the class TiffCompressionCompressTest method testCCITT_1D.
@Test(expectedExceptions = { FormatException.class })
public void testCCITT_1D() throws FormatException, IOException {
TiffCompression compression = TiffCompression.CCITT_1D;
CodecOptions options = compression.getCompressionCodecOptions(ifd);
compression.compress(data, options);
}
Aggregations