public double getUncalibratedLength() { ImagePlus saveImp = imp; imp = null; double length = getLength(); imp = saveImp; return length; }
public double getUncalibratedLength() { ImagePlus saveImp = imp; imp = null; double length = getLength(); imp = saveImp; return length; }
smooth_perimeter += new PolygonRoi(pol, PolygonRoi.POLYGON).getLength(); continue;
/** * Calculates the perimeter of the convex hull * @return The perimeter of the convex hull */ public double getPerimeterConvexHull() { if(perimeterConvexHull!=-1){ return perimeterConvexHull; } PolygonRoi convexRoi = null; Polygon hull = getConvexHull(); perimeterConvexHull = 0; try { convexRoi = new PolygonRoi(hull, Roi.POLYGON); ImagePlus dummy = new ImagePlus(); dummy.setCalibration(cal); convexRoi.setImage(dummy); perimeterConvexHull = convexRoi.getLength(); }catch(Exception e){ perimeterConvexHull = getPerimeter(); IJ.log("Blob ID: "+ getLabel() +" Error calculating the perimeter of the convex hull. Returning the regular perimeter"); } return perimeterConvexHull; }
int type = roi.getType(); int n = roi.getNCoordinates(); double len = roi.getLength(); roi.fitSplineForStraightening(); if (roi.getNCoordinates()<2)
int type = roi.getType(); int n = roi.getNCoordinates(); double len = roi.getLength(); roi.fitSplineForStraightening(); if (roi.getNCoordinates()<2)