org.miv.jism.core.JismImage3D Class Reference

A 3D Context implementation. More...

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

org.miv.jism.core.JismContext

List of all members.

Public Member Functions

 JismImage3D (String path)
 Construct a new image 3D.
int getWidth ()
 Return the image width.
int getHeight ()
 Return the image height.
int getDepth ()
 Return the image depth.
int getPixelIntensity (int p)
 Return a pixel.
int getPixelIntensity (int x, int y, int z)
 Return a pixel.
int getMaxIntensity ()
 Return max voxel intensity.
int getNeighSize (int p)
 Return the neigh size of the given pixel.
int getNeighSize (int x, int y, int z)
 Return the neigh size of the given pixel.
int getNeighAt (int p, int id)
 Return the neighbor of a given pixel at the given id.
int getNeighAt (int x, int y, int z, int id)
 Return the neighbor of a given pixel at the given id.
double getNewRandomDouble ()
 Get a new random double.
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  Voxel
 Voxel implementation for JismImage3D.


Detailed Description

A 3D Context implementation.

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

Author:
Guilhelm Savin
See also:
org.miv.jism.core.JismImage3D.Pixe3D

org.miv.jism.core.JismContext


Constructor & Destructor Documentation

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

Construct a new image 3D.

Parameters:
path path to image file


Member Function Documentation

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

Return the image width.

Returns:
width

Implements org.miv.jism.core.JismContext.

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

Return the image height.

Returns:
height

Implements org.miv.jism.core.JismContext.

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

Return the image depth.

Returns:
depth

Implements org.miv.jism.core.JismContext.

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

Return a pixel.

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

Implements org.miv.jism.core.JismContext.

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

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

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

Return max voxel intensity.

Returns:
max intensity

Implements org.miv.jism.core.JismContext.

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

Return the neigh size of the given pixel.

Parameters:
x abscissa
y ordinate
Returns:
neigh size of p

Implements org.miv.jism.core.JismContext.

int org.miv.jism.core.JismImage3D.getNeighSize ( int  x,
int  y,
int  z 
)

Return the neigh size of the given pixel.

Parameters:
x abscissa
y ordinate
z depth
Returns:
neigh size of p

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

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.JismImage3D.getNeighAt ( int  x,
int  y,
int  z,
int  id 
)

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

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

Get a new random double.

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

Implements org.miv.jism.core.JismContext.

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

Read an image file.

Parameters:
path path to the image file

int org.miv.jism.core.JismImage3D.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.JismImage3D.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.JismImage3D.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.JismImage3D.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.JismImage3D.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