|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SLImage
Very thin abstraction around ImageJ.
You should be able to open based on different things.
What type of images should you have and how should the be accessible?
I think that maybe having a small subset of what is in an ImageJ
ImageProcessor should be enough for most things in ShapeLogic.
Method Summary | |
---|---|
int |
get(int index)
|
int |
get(int x,
int y)
This is a faster version of getPixel() that does not do bounds checking. |
java.awt.Rectangle |
getActiveRectangle()
|
int |
getHeight()
Returns the height of this image in pixels. |
int |
getLineStride()
|
int |
getNChannels()
Returns the number of color channels in the image. |
int |
getPixelCount()
|
java.lang.Object |
getPixels()
Returns a reference to this image's pixel array. |
java.awt.Rectangle |
getRoi()
|
int |
getWidth()
Returns the width of this image in pixels. |
boolean |
isEmpty()
|
boolean |
isGray()
|
boolean |
isGray16()
|
boolean |
isGray8()
|
boolean |
isInvertedLut()
Returns true if this image uses an inverting LUT that displays zero as white and 255 as black. |
boolean |
isRgb()
|
void |
putPixel(int x,
int y,
int value)
Stores the specified value at (x,y). |
void |
set(int index,
int value)
|
void |
set(int x,
int y,
int value)
This is a faster version of putPixel() that does not clip out of range values and does not do bounds checking. |
void |
setPixels(java.lang.Object pixels)
Sets a new pixel array for the image. |
void |
setRoi(int x,
int y,
int rwidth,
int rheight)
|
void |
setRoi(java.awt.Rectangle roi)
|
Method Detail |
---|
int getWidth()
int getHeight()
void setRoi(java.awt.Rectangle roi)
void setRoi(int x, int y, int rwidth, int rheight)
java.awt.Rectangle getRoi()
int getPixelCount()
int get(int x, int y)
int get(int index)
void set(int x, int y, int value)
void set(int index, int value)
void putPixel(int x, int y, int value)
putPixel
in interface PixelHandler
java.lang.Object getPixels()
void setPixels(java.lang.Object pixels)
boolean isInvertedLut()
int getNChannels()
boolean isEmpty()
boolean isGray()
boolean isGray8()
boolean isGray16()
boolean isRgb()
java.awt.Rectangle getActiveRectangle()
int getLineStride()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |