jsky.image.fits.codec
Class FITSDataDouble
java.lang.Object
jsky.image.fits.codec.FITSData
jsky.image.fits.codec.FITSDataDouble
public class FITSDataDouble
- extends FITSData
Used for double FITS image data (2D).
- Version:
- $Revision: 1.4 $
- Author:
- Allan Brighton
Method Summary |
Raster |
getPreviewImage(Raster tile,
int factor)
Return a prescaled preview image at "1/factor" of the normal size in the given
raster tile. |
Raster |
getTile(Raster tile,
int subsample,
int scaledWidth,
int scaledHeight)
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 |
FITSDataDouble
public FITSDataDouble(FITSImage fitsImage)
- Constructor
getTile
public Raster getTile(Raster tile,
int subsample,
int scaledWidth,
int scaledHeight)
throws IOException
- Fill in the given tile with the appropriate image data.
If the memory mapped buffer is not null, the Y axis will be flipped to the normal
orientation for display, otherwise this needs to be done later in the display widget.
- Specified by:
getTile
in class FITSData
- Parameters:
tile
- the tile to fill with datasubsample
- the increment to use when zooming out using the mapped byte bufferscaledWidth
- the total image width in pixels (after prescaling, may be different than the "real" width)scaledHeight
- the total image height in pixels (after prescaling, may be different than the "real" height)
- Returns:
- the tile argument
- Throws:
IOException
getPreviewImage
public Raster getPreviewImage(Raster tile,
int factor)
throws IOException
- Return a prescaled preview image at "1/factor" of the normal size in the given
raster tile.
- Specified by:
getPreviewImage
in class FITSData
- Throws:
IOException