public class ROI
extends java.lang.Object
| Constructor and Description |
|---|
ROI()
Class constructor
|
ROI(int minX,
int maxX,
int minY,
int maxY)
Class constructor with initial values
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIn(int x,
int y)
Gets whether the specified point lies in the ROI.
|
boolean |
isIn(java.awt.Point p)
Gets whether the specified point lies in the ROI.
|
void |
updateROI(int minX,
int maxX,
int minY,
int maxY)
Extend the ROI to reach new borders
|
public ROI()
public ROI(int minX,
int maxX,
int minY,
int maxY)
minX - the minimum x coordinate of the ROI (top left pixel)maxX - the maximum x coordinate of the ROI (top right pixel)minY - the minimum y coordinate of the ROI (bottom left pixel)maxY - the maximum y coordinate of the ROI (bottom right pixel)public void updateROI(int minX,
int maxX,
int minY,
int maxY)
minX - the minimum x coordinate of the ROI (top left pixel)maxX - the maximum x coordinate of the ROI (top right pixel)minY - the minimum y coordinate of the ROI (bottom left pixel)maxY - the maximum y coordinate of the ROI (bottom right pixel)public boolean isIn(int x,
int y)
x - y - public boolean isIn(java.awt.Point p)
p -