Maven module :un.storage : image-sgi :
Class : un.storage.imagery.sgi.SGIHeader
Extends/Implements : -
Subclasses : -

author  Johann Sorel


Variables : storage, bpc, dimension, xsize, ysize, zsize, pixmin, pixmax, imageName, colormap, tablen, starttabs, lengthtabs, dataOffset
Functions : read, getRowRLEInfo



1 byte | char | STORAGE | Storage format */
public byte storage


1 byte | char | BPC | Number of bytes per pixel channel */
public byte bpc


2 bytes | ushort | DIMENSION | Number of dimensions */
public int dimension


2 bytes | ushort | XSIZE | X size in pixels */
public int xsize


2 bytes | ushort | YSIZE | Y size in pixels */
public int ysize


2 bytes | ushort | ZSIZE | Number of channels */
public int zsize


4 bytes | long | PIXMIN | Minimum pixel value */
public int pixmin


4 bytes | long | PIXMAX | Maximum pixel value */
public int pixmax


80 bytes | char | IMAGENAME | Image name */
public Chars imageName


4 bytes | long | COLORMAP | Colormap ID */
public int colormap


404 bytes | char | DUMMY | Ignored */
public int tablen


tablen longs | long | STARTTAB | Start table */
public int[] starttabs


tablen longs | long | LENGTHTAB | Length table */
public int[] lengthtabs


offset from file start to image pixel datas */
public int dataOffset


public void read (BacktrackInputStream bs)


param  rownum row number
param  channum channel number
param  info used to stored informations : [0] offset, [1] length
public void getRowRLEInfo (int rownum, int channum, int[] info)