|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
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)
|
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 SLImage
public int get(int index)
get
in interface SLImage
public int getHeight()
SLImage
getHeight
in interface SLImage
public int getNChannels()
SLImage
getNChannels
in interface SLImage
public int getPixelCount()
getPixelCount
in interface SLImage
public java.lang.Object getPixels()
SLImage
getPixels
in interface SLImage
public java.awt.Rectangle getRoi()
getRoi
in interface SLImage
public int getWidth()
SLImage
getWidth
in interface SLImage
public boolean isInvertedLut()
SLImage
isInvertedLut
in interface SLImage
public void putPixel(int x, int y, int value)
SLImage
putPixel
in interface PixelHandler
putPixel
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 SLImage
public void setPixels(java.lang.Object pixels)
SLImage
setPixels
in interface SLImage
public void setRoi(java.awt.Rectangle roi)
setRoi
in interface SLImage
public void setRoi(int x, int y, int rwidth, int rheight)
setRoi
in interface SLImage
public ij.process.ImageProcessor getImageProcessor()
public boolean isEmpty()
isEmpty
in interface SLImage
public java.awt.Rectangle getActiveRectangle()
getActiveRectangle
in interface SLImage
public int getLineStride()
getLineStride
in interface SLImage
public boolean isGray()
isGray
in interface SLImage
public boolean isRgb()
isRgb
in interface SLImage
public boolean isGray8()
isGray8
in interface SLImage
public boolean isGray16()
isGray16
in interface SLImage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |