Save the Roi to the file of stream.
(Roi roi)
| 70 | |
| 71 | /** Save the Roi to the file of stream. */ |
| 72 | public void write(Roi roi) throws IOException { |
| 73 | if (f!=null) { |
| 74 | write(roi, f); |
| 75 | } else { |
| 76 | f = new FileOutputStream(path); |
| 77 | write(roi, f); |
| 78 | f.close(); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | /** Saves the specified ROI as a byte array. */ |
| 83 | public static byte[] saveAsByteArray(Roi roi) { |
no test coverage detected