|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jj2000.j2k.roi.encoder.ROI
This class contains the shape of a single ROI. In the current implementation only rectangles and circles are supported.
ROIMaskGenerator
Field Summary | |
boolean |
arbShape
Where or not the ROI shape is arbitrary |
int |
comp
The components for which the ROI is relevant |
int |
h
height of rectangular ROI |
ImgReaderPGM |
maskPGM
ImgReaderPGM object with the arbrtrary ROI |
int |
r
radius of circular ROI |
boolean |
rect
Flag indicating whether the ROI is rectangular or not |
int |
ulx
x coordinate of upper left corner of rectangular ROI |
int |
uly
y coordinate of upper left corner of rectangular ROI |
int |
w
width of rectangular ROI |
int |
x
x coordinate of center of circular ROI |
int |
y
y coordinate of center of circular ROI |
Constructor Summary | |
ROI(int comp,
ImgReaderPGM maskPGM)
Constructor for ROI with arbitrary shape |
|
ROI(int comp,
int x,
int y,
int rad)
Constructor for circular ROIs |
|
ROI(int comp,
int ulx,
int uly,
int w,
int h)
Constructor for rectangular ROIs |
Method Summary | |
java.lang.String |
toString()
This function prints all relevant data for the ROI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public ImgReaderPGM maskPGM
public boolean arbShape
public boolean rect
public int comp
public int ulx
public int uly
public int w
public int h
public int x
public int y
public int r
Constructor Detail |
public ROI(int comp, ImgReaderPGM maskPGM)
comp
- The component the ROI belongs tomaskPGM
- ImgReaderPGM containing the ROIpublic ROI(int comp, int ulx, int uly, int w, int h)
comp
- The component the ROI belongs tow
- width of ROIh
- height of ROIpublic ROI(int comp, int x, int y, int rad)
comp
- The component the ROI belongs tox
- x-coordinate of center of ROIy
- y-coordinate of center of ROIMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |