()
| 34 | } |
| 35 | |
| 36 | public Plot getPlot() { |
| 37 | Roi roi = imp.getRoi(); |
| 38 | if (roi==null || !(roi.isLine()||roi.getType()==Roi.RECTANGLE||(roi instanceof RotatedRectRoi))) { |
| 39 | if (firstTime) |
| 40 | IJ.error("Plot Profile", "Line or rectangular selection required"); |
| 41 | return null; |
| 42 | } |
| 43 | ProfilePlot pp = new ProfilePlot(imp, plotVertically); |
| 44 | return pp.getPlot(); |
| 45 | } |
| 46 | |
| 47 | public ImagePlus getSourceImage() { |
| 48 | return imp; |