Package jj2000.j2k.roi.encoder
Class ROI
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhere or not the ROI shape is arbitraryintThe components for which the ROI is relevantintheight of rectangular ROIImgReaderPGM object with the arbrtrary ROIintradius of circular ROIbooleanFlag indicating whether the ROI is rectangular or notintx coordinate of upper left corner of rectangular ROIinty coordinate of upper left corner of rectangular ROIintwidth of rectangular ROIintx coordinate of center of circular ROIinty coordinate of center of circular ROI -
Constructor Summary
ConstructorsConstructorDescriptionROI(int comp, int x, int y, int rad) Constructor for circular ROIsROI(int comp, int ulx, int uly, int w, int h) Constructor for rectangular ROIsROI(int comp, ImgReaderPGM maskPGM) Constructor for ROI with arbitrary shape -
Method Summary
-
Field Details
-
maskPGM
ImgReaderPGM object with the arbrtrary ROI -
arbShape
public boolean arbShapeWhere or not the ROI shape is arbitrary -
rect
public boolean rectFlag indicating whether the ROI is rectangular or not -
comp
public int compThe components for which the ROI is relevant -
ulx
public int ulxx coordinate of upper left corner of rectangular ROI -
uly
public int ulyy coordinate of upper left corner of rectangular ROI -
w
public int wwidth of rectangular ROI -
h
public int hheight of rectangular ROI -
x
public int xx coordinate of center of circular ROI -
y
public int yy coordinate of center of circular ROI -
r
public int rradius of circular ROI
-
-
Constructor Details
-
ROI
Constructor for ROI with arbitrary shape- Parameters:
comp- The component the ROI belongs tomaskPGM- ImgReaderPGM containing the ROI
-
ROI
public ROI(int comp, int ulx, int uly, int w, int h) Constructor for rectangular ROIs- Parameters:
comp- The component the ROI belongs toulx- x-coordinate of upper left corner of ROIuly- y-coordinate of upper left corner of ROIw- width of ROIh- height of ROI
-
ROI
public ROI(int comp, int x, int y, int rad) Constructor for circular ROIs- Parameters:
comp- The component the ROI belongs tox- x-coordinate of center of ROIy- y-coordinate of center of ROIrad- radius of ROI
-
-
Method Details