[]
Constructor for ROI with arbitrary shape
public ROI(int comp, ImgReaderPGM maskPGM)
| Type | Name | Description |
|---|---|---|
| int | comp | The component the ROI belongs to |
| ImgReaderPGM | maskPGM | ImgReaderPGM containing the ROI |
Constructor for rectangular ROIs
public ROI(int comp, int ulx, int uly, int w, int h)
| Type | Name | Description |
|---|---|---|
| int | comp | The component the ROI belongs to |
| int | ulx | |
| int | uly | |
| int | w | width of ROI |
| int | h | height of ROI |
Constructor for circular ROIs
public ROI(int comp, int x, int y, int rad)
| Type | Name | Description |
|---|---|---|
| int | comp | The component the ROI belongs to |
| int | x | x-coordinate of center of ROI |
| int | y | y-coordinate of center of ROI |
| int | rad |