(Roi roi)
| 1012 | |
| 1013 | /* Returns a version of this PointRoi that only contains points inside 'roi'. */ |
| 1014 | public PointRoi crop(Roi roi) { |
| 1015 | PointRoi points = (PointRoi)clone(); |
| 1016 | Polygon p = points.getPolygon(); |
| 1017 | for (int i=points.size()-1; i>=0; i--) { |
| 1018 | if (!roi.contains(p.xpoints[i],p.ypoints[i])) { |
| 1019 | points.deletePoint(i); |
| 1020 | } |
| 1021 | } |
| 1022 | return points; |
| 1023 | } |
| 1024 | |
| 1025 | @Override |
| 1026 | public void copyAttributes(Roi roi2) { |
nothing calls this directly
no test coverage detected