public abstract class FITSData extends Object
Modifier and Type | Field and Description |
---|---|
protected FITSImage |
_fitsImage
Reference to the class managing the image access
|
protected int |
_height
The number of FITS pixels in the Y direction
|
protected int |
_naxis
Number of axes (Currently only the width and height are considerred)
|
protected int |
_width
The number of FITS pixels in the X direction
|
Constructor and Description |
---|
FITSData(FITSImage fitsImage)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
fillTile(Object destArray,
int x,
int y,
int w,
int h)
Fill the given array with image data starting at the given offsets
and with the given width and height in image pixels.
|
abstract Raster |
getPreviewImage(Raster tile,
int factor)
Return a prescaled preview image at "1/factor" of the normal size in the given
raster tile.
|
abstract Raster |
getTile(Raster tile,
int subsample,
int width,
int height)
Fill in the given tile with the appropriate image data.
|
protected FITSImage _fitsImage
protected int _naxis
protected int _width
protected int _height
public FITSData(FITSImage fitsImage)
tiler
- the FITS image tileraxes
- an array containing the dimensions of the imageprotected void fillTile(Object destArray, int x, int y, int w, int h) throws IOException
destArray
- the image data arrayx
- the x offset in the image datay
- the y offset in the image dataw
- the width of the data to geth
- the height of the data to getIOException
public abstract Raster getTile(Raster tile, int subsample, int width, int height) throws IOException
tile
- the tile to fill with datasubsample
- the increment to use when zooming out using the mapped byte bufferwidth
- the total image width in pixelsheight
- the total image height in pixelsIOException
public abstract Raster getPreviewImage(Raster tile, int factor) throws IOException
IOException
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.