org.miv.jism.tools.reader.AnalyseReader Class Reference

Reader for the analyse image file format. More...

Inheritance diagram for org.miv.jism.tools.reader.AnalyseReader:

org.miv.jism.tools.reader.JismReader

List of all members.

Public Member Functions

 AnalyseReader (String path)
 Create a new reader for analyse format.
boolean eof ()
 End of file.
void read (int[] pdata) throws IOException
 Read another pixel.
void close ()
 Close the reader.
int getWidth ()
 Get image width.
int getHeight ()
 Get image height.
int getDepth ()
 Get image depth.

Static Public Attributes

static final int DT_UNKNOWN = 0x00
static final int DT_BINARY = 0x01
static final int DT_UNSIGNED_CHAR = 0x02
static final int DT_SIGNED_SHORT = 0x04
static final int DT_SIGNED_INT = 0x08
static final int DT_FLOAT = 0x10
static final int DT_COMPLEX = 0x20
static final int DT_DOUBLE = 0x40
static final int DT_RGB = 0x80
static final int DT_ALL = 0xFF

Protected Member Functions

void init (String path)
 Init the reader.

Classes

class  Header
 Header description in analyse format.


Detailed Description

Reader for the analyse image file format.

Author:
Guilhelm Savin

Constructor & Destructor Documentation

org.miv.jism.tools.reader.AnalyseReader.AnalyseReader ( String  path  ) 

Create a new reader for analyse format.

Need the header file has the same prefix that the image.

Parameters:
path image path


Member Function Documentation

boolean org.miv.jism.tools.reader.AnalyseReader.eof (  ) 

End of file.

Returns:
true is there is no pixel anymore

Implements org.miv.jism.tools.reader.JismReader.

void org.miv.jism.tools.reader.AnalyseReader.read ( int[]  pdata  )  throws IOException

Read another pixel.

Returns:
new pixel or null if there is no pixel anymore

Implements org.miv.jism.tools.reader.JismReader.

int org.miv.jism.tools.reader.AnalyseReader.getWidth (  ) 

Get image width.

Returns:
width

Implements org.miv.jism.tools.reader.JismReader.

int org.miv.jism.tools.reader.AnalyseReader.getHeight (  ) 

Get image height.

Returns:
height

Implements org.miv.jism.tools.reader.JismReader.

int org.miv.jism.tools.reader.AnalyseReader.getDepth (  ) 

Get image depth.

Returns:
depth

Implements org.miv.jism.tools.reader.JismReader.


The documentation for this class was generated from the following file:
Generated on Fri Apr 18 10:49:00 2008 for JisM by  doxygen 1.5.3