Login  Register

Making new arbitrarily-shaped ROI's in plugin

Posted by gibberfish on May 05, 2011; 3:30pm
URL: http://imagej.273.s1.nabble.com/Making-new-arbitrarily-shaped-ROI-s-in-plugin-tp3684667.html

Hello,

I'm writing an ImageJ plugin where at a certain point I have to split a ROI into two separate ROI's. This should be done along a certain splitting path. The problem I'm having is that I can't find a way to re-define the results as two new ROI's. When looking at the Roi and RoiManager class it seems all the constructors offer is defining ROI's with very basic shapes (rectangles,...).

Is there any way to create a ROI from a Polygon/list of pixels in a plugin?