int type = length/x.length>10?Roi.POLYGON:Roi.FREEROI;
if (allIntegers)
roi = new PolygonRoi(Roi.toIntR(x), Roi.toIntR(y), height, type);
else roi = new PolygonRoi(x, y, height, type);
int type = length/x.length>10?Roi.POLYGON:Roi.FREEROI;
if (allIntegers)
roi = new PolygonRoi(Roi.toIntR(x), Roi.toIntR(y), height, type);
else roi = new PolygonRoi(x, y, height, type);