public class TiffWriterTest extends Object
| Modifier and Type | Field and Description | 
|---|---|
| private static Boolean[] | BIG_TIFFThe big tiff flags. | 
| private static String[] | COMPRESSIONThe compression levels to test. | 
| private IMetadata | metadataThe metadata store. | 
| private IFormatReader | readerReader | 
| private OMEXMLService | serviceService to create the metadata store. | 
| Constructor and Description | 
|---|
| TiffWriterTest() | 
| Modifier and Type | Method and Description | 
|---|---|
| private void | assertTiles(String output,
           String compression,
           int n,
           int m,
           boolean bigTiff)Tests the writing of the tiles. | 
| private void | assertUnevenTiles(String output,
                 String compression,
                 int blockWidth,
                 int blockHeight,
                 boolean bigTiff)Tests the writing of the tiles. | 
| private TiffWriter | initializeWriter(String output,
                String compression,
                boolean bigTiff)Initializes the writer. | 
| void | parse(String id) | 
| void | tearDown() | 
| void | testWriteFullImage()Tests the writing of the full size image as JPEG200 stream. | 
| void | testWriteImageFourTiles()Tests the writing of the image divided in 4 blocks. | 
| void | testWriteImageSplitHorizontal()Tests the writing of the image with 2 tiles with full width. | 
| void | testWriteImageSplitVertical()Tests the writing of the image with 2 tiles with full height. | 
| void | testWriteUnevenTilesImage128x128Block()Tests the writing of blocks of 256x256. | 
| void | testWriteUnevenTilesImage256x256Block()Tests the writing of blocks of 256x256. | 
private IFormatReader reader
private IMetadata metadata
private OMEXMLService service
private static final String[] COMPRESSION
private static final Boolean[] BIG_TIFF
private TiffWriter initializeWriter(String output, String compression, boolean bigTiff) throws Exception
output - The file where to write the compressed data.compression - The compression to use.bigTiff - Pass true to set the bigTiff flag,
                false otherwise.Exception - Thrown if an error occurred.private void assertTiles(String output, String compression, int n, int m, boolean bigTiff) throws Exception
output - The output where to write the data.compression - The compression to use.n - The value by which to divide the width of the image.m - The value by which to divide the height of the image.bigTiff - Pass true to set the bigTiff flag,
                false otherwise.Exceptionprivate void assertUnevenTiles(String output, String compression, int blockWidth, int blockHeight, boolean bigTiff) throws Exception
output - The output where to write the data.compression - The compression to use.blockWidth - The width of block to write.blockHeight - The height of block to write.bigTiff - Pass true to set the bigTiff flag,
                false otherwise.Exceptionpublic void testWriteFullImage()
                        throws Exception
Exception - Throw if an error occurred while writing.public void testWriteImageFourTiles()
                             throws Exception
Exception - Throw if an error occurred while writing.public void testWriteImageSplitHorizontal()
                                   throws Exception
Exception - Throw if an error occurred while writing.public void testWriteImageSplitVertical()
                                 throws Exception
Exception - Throw if an error occurred while writing.public void testWriteUnevenTilesImage128x128Block()
                                           throws Exception
Exception - Throw if an error occurred while writing.Copyright © 2016 Open Microscopy Environment