|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.image.fits.codec.FITSData
public abstract class FITSData
An abstract base class for performing data type specific operations on 2D FITS data.
Field Summary | |
---|---|
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 Summary | |
---|---|
FITSData(FITSImage fitsImage)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FITSImage _fitsImage
protected int _naxis
protected int _width
protected int _height
Constructor Detail |
---|
public FITSData(FITSImage fitsImage)
tiler
- the FITS image tileraxes
- an array containing the dimensions of the imageMethod Detail |
---|
protected 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 get
IOException
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 pixels
IOException
public abstract Raster getPreviewImage(Raster tile, int factor) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |