Login  Register

Re: Isolate line in binary image

Posted by dscho on Jul 22, 2013; 4:13pm
URL: http://imagej.273.s1.nabble.com/Isolate-line-in-binary-image-tp5004064p5004072.html

Hi Jen,

On Sun, 21 Jul 2013, JenIrl wrote:

> I'm writing a macro to automate line length measurements. I need a way
> to remove the noise from this image so only the squiggley line is left.
> I can manually cut the area out, but this is not efficient. Any ideas on
> a filter I could use would be very much appreciated

Possibly a good way would be to preprocess the image with the linear
kuwahara filter:

        http://fiji.sc/Linear_Kuwahara

followed by a simple threshold (you will have to determine which automatic
threshold method gives the best result) and then simulating the length
measurement by measuring the area of the skeletonized result.

Good luck!
Johannes

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