uk.ac.starlink.jaiutil
Class NDArrayDataByte

java.lang.Object
  extended by uk.ac.starlink.jaiutil.NDArrayData
      extended by uk.ac.starlink.jaiutil.NDArrayDataByte

public class NDArrayDataByte
extends NDArrayData

Used for short NDArray data.

Version:
$Id$
Author:
Allan Brighton, Peter W. Draper

Field Summary
 
Fields inherited from class uk.ac.starlink.jaiutil.NDArrayData
height, naxis, tiler, width
 
Constructor Summary
NDArrayDataByte(NDArray nda)
          Constructor
NDArrayDataByte(NDArray nda, int[] axes)
          Constructor
 
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 uk.ac.starlink.jaiutil.NDArrayData
fillTile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NDArrayDataByte

public NDArrayDataByte(NDArray nda)
                throws IOException
Constructor

Throws:
IOException

NDArrayDataByte

public NDArrayDataByte(NDArray nda,
                       int[] axes)
                throws IOException
Constructor

Throws:
IOException
Method Detail

getTile

public Raster getTile(Raster tile,
                      int subsample,
                      int scaledWidth,
                      int scaledHeight)
               throws IOException
Fill in the given tile with the appropriate image data.

Specified by:
getTile in class NDArrayData
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 NDArrayData
Throws:
IOException


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.