Examples of shapeToRoi()


Examples of ij.gui.ShapeRoi.shapeToRoi()

    GeneralPath path = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
    for (int i = 0; i < polygons.size(); i++)
      path.append((Polygon)polygons.get(i), false);

    ShapeRoi shape = new ShapeRoi(path);
    Roi roi = shape!=null?shape.shapeToRoi():null; // try to convert to non-composite ROI
    IJ.showProgress(1,1);
    if (roi!=null)
      return roi;
    else
      return shape;
View Full Code Here

Examples of ij.gui.ShapeRoi.shapeToRoi()

    GeneralPath path = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
    for (int i = 0; i < polygons.size(); i++)
      path.append((Polygon)polygons.get(i), false);

    ShapeRoi shape = new ShapeRoi(path);
    Roi roi = shape!=null?shape.shapeToRoi():null; // try to convert to non-composite ROI
    IJ.showProgress(1,1);
    if (roi!=null)
      return roi;
    else
      return shape;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.