org.miv.jism.core.JismImage2D Class Reference

A 2D Context implementation. More...

Inheritance diagram for org.miv.jism.core.JismImage2D:

org.miv.jism.core.JismContext

List of all members.

Public Member Functions

 JismImage2D (String path)
 Construct a new JismImage2D.
int getNeighSize (int p)
 Return the neigh size of the given pixel.
int getNeighAt (int p, int id)
 Return the neigh size of the given pixel.
int getWidth ()
 Return the neighbor of a given pixel at the given id.
int getHeight ()
 Return the height of the image.
int getDepth ()
 Return the depth of the image.
double getNewRandomDouble ()
 Get a new random double.
int getPixelIntensity (int x, int y)
 Return a pixel.
int getPixelIntensity (int p)
 Get pixel intensity.
int getMaxIntensity ()
 Return a pixel.
int pixelId (int x, int y)
 Get pixel unique id.
int pixelId (int x, int y, int z)
 Get pixel unique id.
int pixelX (int id)
 Get pixel abscissa.
int pixelY (int id)
 Get pixel ordinate.
int pixelZ (int id)
 Get pixel depth.

Package Functions

void readImage (String path)
 Read an image file.

Classes

class  Pixel2D
 Pixel implementation for JismImage2D.


Detailed Description

A 2D Context implementation.

This object will be used to create context from a 2D picture. Pixel implementation is Pixel2D.

Author:
Guilhelm Savin
See also:
org.miv.jism.core.JismImage2D.Pixel2D

org.miv.jism.core.JismContext


Constructor & Destructor Documentation

org.miv.jism.core.JismImage2D.JismImage2D ( String  path  ) 

Construct a new JismImage2D.

Parameters:
path path of the image file


Member Function Documentation

int org.miv.jism.core.JismImage2D.getNeighSize ( int  p  ) 

Return the neigh size of the given pixel.

Parameters:
x abscissa
y ordinate
Returns:
neigh size of pixel at (x,y)

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.getNeighAt ( int  p,
int  id 
)

Return the neigh size of the given pixel.

Parameters:
x abscissa
y ordinate
z depth
Returns:
neigh size of pixel at (x,y) Return the neighbor of a given pixel at the given id.
Parameters:
x abscissa
y ordinate
id id of the neighbor
Returns:
neighbor of p at id

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.getWidth (  ) 

Return the neighbor of a given pixel at the given id.

Parameters:
x abscissa
y ordinate
z depth
id id of the neighbor
Returns:
neighbor of p at id Return the width of the image.

the image width

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.getHeight (  ) 

Return the height of the image.

Returns:
the image height

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.getDepth (  ) 

Return the depth of the image.

This is a 2d image so this method returns always 1.

Returns:
1

Implements org.miv.jism.core.JismContext.

double org.miv.jism.core.JismImage2D.getNewRandomDouble (  ) 

Get a new random double.

Returns:
a random double
See also:
org.miv.jism.core.RandomGenerator

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.getPixelIntensity ( int  x,
int  y 
)

Return a pixel.

Parameters:
x abscissa of the pixel
y ordinate of the pixel
Returns:
pixel at (x,y) position

int org.miv.jism.core.JismImage2D.getPixelIntensity ( int  p  ) 

Get pixel intensity.

Parameters:
p pixel id
Returns:
intensity of p

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.getMaxIntensity (  ) 

Return a pixel.

Parameters:
x abscissa of the pixel
y ordinate of the pixel
z depth of the pixel
Returns:
pixel at (x,y) position Return max pixel intensity.

max intensity

Implements org.miv.jism.core.JismContext.

void org.miv.jism.core.JismImage2D.readImage ( String  path  )  [package]

Read an image file.

Parameters:
path path to the image file

int org.miv.jism.core.JismImage2D.pixelId ( int  x,
int  y 
)

Get pixel unique id.

Context assumes that pixel id is between 0 and n where n is the total number of pixels.

Parameters:
x abscissa
y ordinate
Returns:
unique pixel id

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.pixelId ( int  x,
int  y,
int  z 
)

Get pixel unique id.

Context assumes that pixel id is between 0 and n where n is the total number of pixels.

Parameters:
x abscissa
y ordinate
z depth
Returns:
unique pixel id

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.pixelX ( int  id  ) 

Get pixel abscissa.

Parameters:
id id of pixel
Returns:
abscissa of pixel id

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.pixelY ( int  id  ) 

Get pixel ordinate.

Parameters:
id id of pixel
Returns:
ordinate of pixel id

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage2D.pixelZ ( int  id  ) 

Get pixel depth.

Parameters:
id id of pixel
Returns:
depth of pixel id

Implements org.miv.jism.core.JismContext.


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