Java Code Examples for ij.gui.Roi#POINT

The following examples show how to use ij.gui.Roi#POINT . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PointRoiPoint2fConverter.java    From IJ-OpenCV with GNU General Public License v3.0 5 votes vote down vote up
@Override
public boolean canConvert(Object src, Type dest) {
    if (!(src instanceof PointRoi)) {
        return false;
    }
    PointRoi pr = (PointRoi) src;
    if (pr.getType() != Roi.POINT) {
        return false;
    }
    return true;
}
 
Example 2
Source File: PointRoiPointConverter.java    From IJ-OpenCV with GNU General Public License v3.0 5 votes vote down vote up
@Override
public boolean canConvert(Object src, Type dest) {
    if (!(src instanceof PointRoi)) {
        return false;
    }
    PointRoi pr = (PointRoi) src;
    if (pr.getType() != Roi.POINT) {
        return false;
    }
    return true;
}
 
Example 3
Source File: PointRoiKeyPointConverter.java    From IJ-OpenCV with GNU General Public License v3.0 5 votes vote down vote up
@Override
public boolean canConvert(Object src, Type dest) {
    if(!(src instanceof PointRoi)){
        return false;
    }
    PointRoi pr =(PointRoi)src;
    if (pr.getType() != Roi.POINT) {
        return false;
    }
    return true;
}
 
Example 4
Source File: PointRoiPoint2dConverter.java    From IJ-OpenCV with GNU General Public License v3.0 5 votes vote down vote up
@Override
public boolean canConvert(Object src, Type dest) {
    if (!(src instanceof PointRoi)) {
        return false;
    }
    PointRoi pr = (PointRoi) src;
    if (pr.getType() != Roi.POINT) {
        return false;
    }
    return true;
}
 
Example 5
Source File: M.java    From TrakEM2 with GNU General Public License v3.0 5 votes vote down vote up
/** Returns true if the roi is of closed shape type like an OvalRoi, ShapeRoi, a Roi rectangle, etc. */
static public final boolean isAreaROI(final Roi roi) {
	switch (roi.getType()) {
		case Roi.POLYLINE:
		case Roi.FREELINE:
		case Roi.LINE:
		case Roi.POINT:
			return false;
	}
	return true;
}