Login  Register

Re: finding polygons in an image

Posted by ctrueden on Oct 20, 2014; 9:12pm
URL: http://imagej.273.s1.nabble.com/finding-polygons-in-an-image-tp5010114p5010129.html

Hi Sudheshna,

> I have images with roughly many sided polygons, like in thermocol
> which is closely packed polygons touching each other. I need to find
> - the sides of the polygons and
> - the angles at all vertices.

If the polygons are at a different intensity from the background (or you
can perform image preprocessing to coerce them somehow to a different
intensity), then you can:

- Threshold the image with Shift+T
- Create a selection (L, create selection)
- Press T to add the selection to the ROI Manager
- Click the ROI in the ROI manager, then press More > Split
- Delete the original ROI in favor of the split ones
- And then loop over the ROIs in the Manager to interrogate their
characteristics

You can determine the macro commands for doing this by using the Macro
Recorder (L, Record...)

Regards,
Curtis

On Mon, Oct 20, 2014 at 5:38 AM, Sudheshna Moka Muttana <
[hidden email]> wrote:

> Hi,
>
> Can someone tell me how to find polygons in an image using imagej.
>
> I have images with roughly many sided polygons, like in thermocol which is
> closely packed polygons touching each other.
>  I need to find
>   - the sides of the polygons and
>   - the angles at all vertices.
>
> I want to do this in a macro, as there are many images.
> Are there any plugins/ protocols in imagej for this?
>
> thanks
> Sudheshna
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html