Class DefaultImageView

Object
hdf.view.ImageView.DefaultImageView
All Implemented Interfaces:
DataView, ImageView

public class DefaultImageView extends Object implements ImageView
ImageView displays an HDF dataset as an image. A scalar dataset in HDF can be displayed in image or table. By default, an HDF4 GR image and HDF5 image is displayed as an image. Other scalar datasets are display in a two-dimensional table. Users can also choose to display a scalar dataset as image. Currently this version of the ImageView only supports 8-bit raster image with indexed RGB color model of 256 colors or 24-bit true color raster image. Data of other type will be converted to 8-bit integer. The simple linear conversion is used for this purpose:
 y = f * (x - min),
       where y   = the value of 8-bit integer,
             x   = the value of original data,
             f   = 255/(max-min), conversion factor,
             max = the maximum of the original data,
             min = the minimum of the original data.
 
A default color table is provided for images without palette attached to it. Current choice of default palettes include Gray, Rainbow, Nature and Wave. For more infomation on palette, read HDF5 Image and Palette Specification
Version:
2.4 2//2016
Author:
Jordan T. Henderson