use of loci.formats.tiff.TiffCompression in project bioformats by openmicroscopy.
the class TiffCompressionDecompressTest method testJPEG_2000_LOSSY.
// Needs to have "properly" encoded JP2, throws a runtime exception otherwise
@Test(expectedExceptions = { RuntimeException.class })
public void testJPEG_2000_LOSSY() throws FormatException, IOException {
TiffCompression compression = TiffCompression.JPEG_2000_LOSSY;
assertNotNull(compression.decompress(DATA, OPTIONS));
}
use of loci.formats.tiff.TiffCompression in project bioformats by openmicroscopy.
the class TiffCompressionDecompressTest method testALT_JPEG.
// Needs to have a "properly" encoded JPEG, throws an NPE otherwise
@Test(expectedExceptions = { NullPointerException.class })
public void testALT_JPEG() throws FormatException, IOException {
TiffCompression compression = TiffCompression.ALT_JPEG;
assertNotNull(compression.decompress(DATA, OPTIONS));
}
use of loci.formats.tiff.TiffCompression in project bioformats by openmicroscopy.
the class TiffCompressionDecompressTest method testCCITT_1D.
@Test(expectedExceptions = { FormatException.class })
public void testCCITT_1D() throws FormatException, IOException {
TiffCompression compression = TiffCompression.CCITT_1D;
assertNotNull(compression.decompress(DATA, OPTIONS));
}
use of loci.formats.tiff.TiffCompression in project bioformats by openmicroscopy.
the class TiffCompressionDecompressTest method testJPEG_2000.
// Needs to have "properly" encoded JP2, throws a runtime exception otherwise
@Test(expectedExceptions = { RuntimeException.class })
public void testJPEG_2000() throws FormatException, IOException {
TiffCompression compression = TiffCompression.JPEG_2000;
assertNotNull(compression.decompress(DATA, OPTIONS));
}
use of loci.formats.tiff.TiffCompression in project bioformats by openmicroscopy.
the class TiffCompressionDecompressTest method testUNCOMPRESSED.
@Test
public void testUNCOMPRESSED() throws FormatException, IOException {
TiffCompression compression = TiffCompression.UNCOMPRESSED;
assertNotNull(compression.decompress(DATA, OPTIONS));
}
Aggregations