use of loci.formats.tiff.TiffCompression in project bioformats by openmicroscopy.
the class TiffCompressionCompressTest method testNIKON.
@Test(expectedExceptions = { FormatException.class })
public void testNIKON() throws FormatException, IOException {
TiffCompression compression = TiffCompression.NIKON;
CodecOptions options = compression.getCompressionCodecOptions(ifd);
compression.compress(data, options);
}
use of loci.formats.tiff.TiffCompression in project bioformats by openmicroscopy.
the class TiffCompressionCompressTest method testALT_JPEG.
@Test
public void testALT_JPEG() throws FormatException, IOException {
TiffCompression compression = TiffCompression.ALT_JPEG;
ifd.put(IFD.BITS_PER_SAMPLE, new int[] { 8 });
CodecOptions options = compression.getCompressionCodecOptions(ifd);
byte[] compressed = compression.compress(data, options);
assertNotNull(compressed);
}
use of loci.formats.tiff.TiffCompression in project bioformats by openmicroscopy.
the class TiffCompressionCompressTest method testPROPRIETARY_DEFLATE.
@Test
public void testPROPRIETARY_DEFLATE() throws FormatException, IOException {
TiffCompression compression = TiffCompression.PROPRIETARY_DEFLATE;
CodecOptions options = compression.getCompressionCodecOptions(ifd);
byte[] compressed = compression.compress(data, options);
assertNotNull(compressed);
}
Aggregations