|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.shapelogic.imageutil.IJImage
public class IJImage
Abstraction of ImageJ ImageProcessor.
The other main implementation should probably be build on top of BufferedImage.
| Field Summary | |
|---|---|
protected java.lang.String |
_filePath
|
protected ij.ImagePlus |
_image
|
protected ij.process.ImageProcessor |
_imageProcessor
|
| Constructor Summary | |
|---|---|
IJImage(ij.ImagePlus image)
|
|
IJImage(ij.process.ImageProcessor ip)
|
|
IJImage(java.lang.String filePath)
|
|
IJImage(java.lang.String dir,
java.lang.String fileName,
java.lang.String fileFormat)
Constructor with 3 string arguments. |
|
| 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()
This mean that the whole images is available in the pixels array. |
int |
getHeight()
Returns the height of this image in pixels. |
ij.process.ImageProcessor |
getImageProcessor()
|
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 |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ij.process.ImageProcessor _imageProcessor
protected ij.ImagePlus _image
protected java.lang.String _filePath
| Constructor Detail |
|---|
public IJImage(java.lang.String filePath)
public IJImage(java.lang.String dir,
java.lang.String fileName,
java.lang.String fileFormat)
dir - e.g. "./src/test/resources/images/smallThinShapes";fileName - e.g. "blobs"fileFormat - e.g. ".gif"public IJImage(ij.ImagePlus image)
public IJImage(ij.process.ImageProcessor ip)
| Method Detail |
|---|
public int get(int x,
int y)
SLImage
get in interface SLImagepublic int get(int index)
get in interface SLImagepublic int getHeight()
SLImage
getHeight in interface SLImagepublic int getNChannels()
SLImage
getNChannels in interface SLImagepublic int getPixelCount()
getPixelCount in interface SLImagepublic java.lang.Object getPixels()
SLImage
getPixels in interface SLImagepublic java.awt.Rectangle getRoi()
getRoi in interface SLImagepublic int getWidth()
SLImage
getWidth in interface SLImagepublic boolean isInvertedLut()
SLImage
isInvertedLut in interface SLImage
public void putPixel(int x,
int y,
int value)
SLImage
putPixel in interface PixelHandlerputPixel in interface SLImage
public void set(int x,
int y,
int value)
SLImage
set in interface SLImage
public void set(int index,
int value)
set in interface SLImagepublic void setPixels(java.lang.Object pixels)
SLImage
setPixels in interface SLImagepublic void setRoi(java.awt.Rectangle roi)
setRoi in interface SLImage
public void setRoi(int x,
int y,
int rwidth,
int rheight)
setRoi in interface SLImagepublic ij.process.ImageProcessor getImageProcessor()
public boolean isEmpty()
isEmpty in interface SLImagepublic java.awt.Rectangle getActiveRectangle()
getActiveRectangle in interface SLImagepublic int getLineStride()
getLineStride in interface SLImagepublic boolean isGray()
isGray in interface SLImagepublic boolean isRgb()
isRgb in interface SLImage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||