Login  Register

Auto recognizing of shapes and measuring length and width

Posted by meir on Nov 10, 2014; 2:54pm
URL: http://imagej.273.s1.nabble.com/Auto-recognizing-of-shapes-and-measuring-length-and-width-tp5010355.html

I'm sure it must be pretty simple but I've been breaking my head over it in the last few days. Would be extremely grateful if someone could help me out with this.
Have a set of images with different straight-edged shapes lying in different orientations. What I need to end up with is the length and width of the rectangular shapes.
Running into three issues

1.After I threshold the image I select one of the shapes with the wand. But when I measure it I get the length and width of the bounding rectangle. Isn't there a way for ImageJ to straighten the object and measure it accurately?

2. When the objects are touching or overlapping, the analyze particles function will recognize them as one. (In second image) Is there a way to change the analyze particles function to only recognize particles that conform to a specific shape.

2.Is there a way to write a macro that will auto analyze all the images and recognize and measure each shape separately?

first image: http://postimg.org/image/yc78dkxmr/
second image: http://postimg.org/image/krtg9g0p9/

Thanks a lot!
Meir

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