Public Member Functions | |
int | getWidth () |
Get context width. | |
int | getHeight () |
Get context height. | |
int | getDepth () |
Get context depth. | |
int | getMaxIntensity () |
Get max intensity of pixels. | |
int | getNeighSize (int p) |
Get neighborhood size for a pixel. | |
int | getNeighAt (int p, int id) |
Get neighbor id of a pixel for a given index. | |
double | getNewRandomDouble () |
Get a new random double. | |
int | getPixelIntensity (int p) |
Get pixel intensity. | |
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. |
Context implementation is hard due to a big amount of pixels data. Pixel id help context to store the less data it is possible about pixels.
int org.miv.jism.core.JismContext.getWidth | ( | ) |
Get context width.
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.getHeight | ( | ) |
Get context height.
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.getDepth | ( | ) |
Get context depth.
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.getMaxIntensity | ( | ) |
Get max intensity of pixels.
Intensity i given by getPixelIntensity() will be between 0 <= i < getMaxIntensity().
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.getNeighSize | ( | int | p | ) |
Get neighborhood size for a pixel.
p | pixel id |
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.getNeighAt | ( | int | p, | |
int | id | |||
) |
Get neighbor id of a pixel for a given index.
p | pixel id | |
id | pixel neighbor index |
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
double org.miv.jism.core.JismContext.getNewRandomDouble | ( | ) |
Get a new random double.
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.getPixelIntensity | ( | int | p | ) |
Get pixel intensity.
p | pixel id |
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.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 |
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.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 |
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.pixelX | ( | int | id | ) |
Get pixel abscissa.
id | id of pixel |
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.pixelY | ( | int | id | ) |
Get pixel ordinate.
id | id of pixel |
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.
int org.miv.jism.core.JismContext.pixelZ | ( | int | id | ) |
Get pixel depth.
id | id of pixel |
Implemented in org.miv.jism.core.JismImage2D, org.miv.jism.core.JismImage3D, and org.miv.jism.tools.ImageWrapperContext.