| java.lang.Object jj2000.j2k.roi.encoder.ROI
ROI | public class ROI (Code) | | This class contains the shape of a single ROI. In the current
implementation only rectangles and circles are supported.
See Also: ROIMaskGenerator |
Constructor Summary | |
public | ROI(int comp, ImgReaderPGM maskPGM) | public | ROI(int comp, int ulx, int uly, int w, int h) | public | ROI(int comp, int x, int y, int rad) |
arbShape | public boolean arbShape(Code) | | Where or not the ROI shape is arbitrary
|
comp | public int comp(Code) | | The components for which the ROI is relevant
|
h | public int h(Code) | | height of rectangular ROI
|
r | public int r(Code) | | radius of circular ROI
|
rect | public boolean rect(Code) | | Flag indicating whether the ROI is rectangular or not
|
ulx | public int ulx(Code) | | x coordinate of upper left corner of rectangular ROI
|
uly | public int uly(Code) | | y coordinate of upper left corner of rectangular ROI
|
w | public int w(Code) | | width of rectangular ROI
|
x | public int x(Code) | | x coordinate of center of circular ROI
|
y | public int y(Code) | | y coordinate of center of circular ROI
|
ROI | public ROI(int comp, ImgReaderPGM maskPGM)(Code) | | Constructor for ROI with arbitrary shape
Parameters: comp - The component the ROI belongs to Parameters: maskPGM - ImgReaderPGM containing the ROI |
ROI | public ROI(int comp, int ulx, int uly, int w, int h)(Code) | | Constructor for rectangular ROIs
Parameters: comp - The component the ROI belongs to Parameters: x - x-coordinate of upper left corner of ROI Parameters: y - y-coordinate of upper left corner of ROI Parameters: w - width of ROI Parameters: h - height of ROI |
ROI | public ROI(int comp, int x, int y, int rad)(Code) | | Constructor for circular ROIs
Parameters: comp - The component the ROI belongs to Parameters: x - x-coordinate of center of ROI Parameters: y - y-coordinate of center of ROI Parameters: w - radius of ROI |
toString | public String toString()(Code) | | This function prints all relevant data for the ROI
|
|
|