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. |
This object will be used to create context from a 2D picture. Pixel implementation is Pixel2D.
org.miv.jism.core.JismImage2D.JismImage2D | ( | String | path | ) |
int org.miv.jism.core.JismImage2D.getNeighSize | ( | int | p | ) |
Return the neigh size of the given pixel.
x | abscissa | |
y | ordinate |
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.
x | abscissa | |
y | ordinate | |
z | depth |
x | abscissa | |
y | ordinate | |
id | id of the neighbor |
Implements org.miv.jism.core.JismContext.
int org.miv.jism.core.JismImage2D.getWidth | ( | ) |
Return the neighbor of a given pixel at the given id.
x | abscissa | |
y | ordinate | |
z | depth | |
id | id of the neighbor |
the image width
Implements org.miv.jism.core.JismContext.
int org.miv.jism.core.JismImage2D.getHeight | ( | ) |
int org.miv.jism.core.JismImage2D.getDepth | ( | ) |
Return the depth of the image.
This is a 2d image so this method returns always 1.
Implements org.miv.jism.core.JismContext.
double org.miv.jism.core.JismImage2D.getNewRandomDouble | ( | ) |
Get a new random double.
Implements org.miv.jism.core.JismContext.
int org.miv.jism.core.JismImage2D.getPixelIntensity | ( | int | x, | |
int | y | |||
) |
Return a pixel.
x | abscissa of the pixel | |
y | ordinate of the pixel |
int org.miv.jism.core.JismImage2D.getPixelIntensity | ( | int | p | ) |
Get pixel intensity.
p | pixel id |
Implements org.miv.jism.core.JismContext.
int org.miv.jism.core.JismImage2D.getMaxIntensity | ( | ) |
Return a pixel.
x | abscissa of the pixel | |
y | ordinate of the pixel | |
z | depth of the pixel |
max intensity
Implements org.miv.jism.core.JismContext.
void org.miv.jism.core.JismImage2D.readImage | ( | String | path | ) | [package] |
Read an image file.
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.
x | abscissa | |
y | ordinate |
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.
x | abscissa | |
y | ordinate | |
z | depth |
Implements org.miv.jism.core.JismContext.
int org.miv.jism.core.JismImage2D.pixelX | ( | int | id | ) |
Get pixel abscissa.
id | id of pixel |
Implements org.miv.jism.core.JismContext.
int org.miv.jism.core.JismImage2D.pixelY | ( | int | id | ) |
Get pixel ordinate.
id | id of pixel |
Implements org.miv.jism.core.JismContext.
int org.miv.jism.core.JismImage2D.pixelZ | ( | int | id | ) |
Get pixel depth.
id | id of pixel |
Implements org.miv.jism.core.JismContext.