Public Member Functions | |
ImageWrapperContext (BufferedImage in) | |
Create a new context from a buffered image. | |
int | getMaxIntensity () |
Return the max intensity. | |
int | getNeighAt (int p, int id) |
Get the neighbor at the given id. | |
int | getNeighSize (int p) |
Get neighborhood size for a given pixel. | |
double | getNewRandomDouble () |
Get a new random double using Math.random(). | |
int | getPixelIntensity (int p) |
Get the pixel at the given coordinates. | |
int | getWidth () |
Get width of this context. | |
int | getHeight () |
Get height of this context. | |
int | getDepth () |
This will return 1. | |
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. |
Pixel will search their intensities directly in the buffered image.
org.miv.jism.tools.ImageWrapperContext.ImageWrapperContext | ( | BufferedImage | in | ) |
Create a new context from a buffered image.
in | to-wrap image |
int org.miv.jism.tools.ImageWrapperContext.getMaxIntensity | ( | ) |
Return the max intensity.
This will return 256.
Implements org.miv.jism.core.JismContext.
int org.miv.jism.tools.ImageWrapperContext.getNeighAt | ( | int | p, | |
int | id | |||
) |
Get the neighbor at the given id.
x | abscissa | |
y | ordinate | |
id | neighbor id |
Implements org.miv.jism.core.JismContext.
int org.miv.jism.tools.ImageWrapperContext.getNeighSize | ( | int | p | ) |
Get neighborhood size for a given pixel.
x | abscissa | |
y | ordinate |
Implements org.miv.jism.core.JismContext.
double org.miv.jism.tools.ImageWrapperContext.getNewRandomDouble | ( | ) |
Get a new random double using Math.random().
Implements org.miv.jism.core.JismContext.
int org.miv.jism.tools.ImageWrapperContext.getPixelIntensity | ( | int | p | ) |
Get the pixel at the given coordinates.
x | abscissa of the pixel | |
y | ordinate of the pixel |
Implements org.miv.jism.core.JismContext.
int org.miv.jism.tools.ImageWrapperContext.getWidth | ( | ) |
int org.miv.jism.tools.ImageWrapperContext.getHeight | ( | ) |
int org.miv.jism.tools.ImageWrapperContext.getDepth | ( | ) |
int org.miv.jism.tools.ImageWrapperContext.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.tools.ImageWrapperContext.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.tools.ImageWrapperContext.pixelX | ( | int | id | ) |
Get pixel abscissa.
id | id of pixel |
Implements org.miv.jism.core.JismContext.
int org.miv.jism.tools.ImageWrapperContext.pixelY | ( | int | id | ) |
Get pixel ordinate.
id | id of pixel |
Implements org.miv.jism.core.JismContext.
int org.miv.jism.tools.ImageWrapperContext.pixelZ | ( | int | id | ) |
Get pixel depth.
id | id of pixel |
Implements org.miv.jism.core.JismContext.