public class ROI extends Object
ROIMaskGenerator
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
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
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 tox
- x-coordinate of upper left corner of ROIy
- y-coordinate of upper left corner of ROIw
- 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 ROIw
- radius of ROICopyright © 2015–2022 SCIFIO. All rights reserved.