Package nom.tam.image.tile.operation
Interface ITiledImageOperation
- All Known Implementing Classes:
AbstractTiledImageOperation
,TiledImageCompressionOperation
public interface ITiledImageOperation
2D image tile compression interface. FITS tiles are always 2-dimentional, but really images of any dimensions may be
covered with such tiles.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetuers the tile compression options to use for tile compressing or uncompressing images.Returns the element type of the image (and hence tile).Returns a buffer containing the entire tile compressed image.Returns the class that can perform the tile compression or decompression with the desired tile compression algorithm and options.Return the class that can GZIP compress tiles that cannot be compressed otherwise.int
Returns the actual with of the image which is to be tile (de)compressed.getTileOperation
(int i) Returns the operation that handles the parallel processing of specific tiles.
-
Method Details
-
compressOptions
ICompressOption compressOptions()Retuers the tile compression options to use for tile compressing or uncompressing images.- Returns:
- the tile compression options
-
getBaseType
ElementType<Buffer> getBaseType()Returns the element type of the image (and hence tile).- Returns:
- the FITS element type used in this tile.
-
getCompressedWholeArea
ByteBuffer getCompressedWholeArea()Returns a buffer containing the entire tile compressed image.- Returns:
- a buffer containing the tile compresed image in serialized form.
-
getCompressorControl
ICompressorControl getCompressorControl()Returns the class that can perform the tile compression or decompression with the desired tile compression algorithm and options. Some image tiles may not be possible to compress with the chosen algorithm, and FITS then allows alternative compression of these using GZIP instead (seegetGzipCompressorControl()
- Returns:
- the class that can perform the desired tile compression.
- See Also:
-
getGzipCompressorControl
ICompressorControl getGzipCompressorControl()Return the class that can GZIP compress tiles that cannot be compressed otherwise. GZIP compression is failsafe and is therefore a standard fallback option when compressing tiles. It may also be the desired first choice method also.- Returns:
- the class that can perform the fail-safe tile compression using GZIP.
- See Also:
-
getImageWidth
int getImageWidth()Returns the actual with of the image which is to be tile (de)compressed.- Returns:
- The width of the full image in pixels.
-
getTileOperation
Returns the operation that handles the parallel processing of specific tiles. Each tile can be processed by a dedicated thread, with many tiles processing in parallel at the same time.- Parameters:
i
- the sequential (flattened) index of the specific tile- Returns:
- the operation instance that handles the parallel processing of that particular tiles.
-