Opens the Roi at the specified path. Returns null if there is an error.
(String path)
| 154 | |
| 155 | /** Opens the Roi at the specified path. Returns null if there is an error. */ |
| 156 | public static Roi open(String path) { |
| 157 | Roi roi = null; |
| 158 | RoiDecoder rd = new RoiDecoder(path); |
| 159 | try { |
| 160 | roi = rd.getRoi(); |
| 161 | } catch (IOException e) { } |
| 162 | return roi; |
| 163 | } |
| 164 | |
| 165 | /** Returns the ROI. */ |
| 166 | public Roi getRoi() throws IOException { |