Search in sources :

Example 1 with TiffCompression

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));
}
Also used : TiffCompression(loci.formats.tiff.TiffCompression) Test(org.testng.annotations.Test)

Example 2 with TiffCompression

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));
}
Also used : TiffCompression(loci.formats.tiff.TiffCompression) Test(org.testng.annotations.Test)

Example 3 with TiffCompression

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));
}
Also used : TiffCompression(loci.formats.tiff.TiffCompression) Test(org.testng.annotations.Test)

Example 4 with TiffCompression

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));
}
Also used : TiffCompression(loci.formats.tiff.TiffCompression) Test(org.testng.annotations.Test)

Example 5 with TiffCompression

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));
}
Also used : TiffCompression(loci.formats.tiff.TiffCompression) Test(org.testng.annotations.Test)

Aggregations

TiffCompression (loci.formats.tiff.TiffCompression)33 Test (org.testng.annotations.Test)31 CodecOptions (loci.formats.codec.CodecOptions)18 JPEG2000CodecOptions (loci.formats.codec.JPEG2000CodecOptions)18 NikonCodecOptions (loci.formats.codec.NikonCodecOptions)1 IFD (loci.formats.tiff.IFD)1 IFDList (loci.formats.tiff.IFDList)1 PhotoInterp (loci.formats.tiff.PhotoInterp)1 TiffRational (loci.formats.tiff.TiffRational)1