Saves the specified ROI as a file, returning 'true' if successful.
(Roi roi, String path)
| 59 | |
| 60 | /** Saves the specified ROI as a file, returning 'true' if successful. */ |
| 61 | public static boolean save(Roi roi, String path) { |
| 62 | RoiEncoder re = new RoiEncoder(path); |
| 63 | try { |
| 64 | re.write(roi); |
| 65 | } catch (IOException e) { |
| 66 | return false; |
| 67 | } |
| 68 | return true; |
| 69 | } |
| 70 | |
| 71 | /** Save the Roi to the file of stream. */ |
| 72 | public void write(Roi roi) throws IOException { |