Isolate line in binary image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Isolate line in binary image

JenIrl
Hi,

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

JenSingle line with noise
Reply | Threaded
Open this post in threaded view
|

Re: Isolate line in binary image

dscho
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
Reply | Threaded
Open this post in threaded view
|

Re: Isolate line in binary image

Michael Schmid
In reply to this post by JenIrl
Hi Jen,

you can try to get the line by 'Analyze particles', with suitable values for the size and circularity ranges.
Select the line in a few images with the Wand, do 'Measure' with 'Area' and 'Shape descriptors' enabled in 'Set Measurements' and find out suitable ranges.

In 'Analyze particles', Show=Mask should give you the pruned image.

Michael
________________________________________________________________
On Jul 22, 2013, at 06:56, JenIrl wrote:

> Hi,
>
> 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
>
> Jen <http://imagej.1557.x6.nabble.com/file/n5004064/NoisyLine.jpg>
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Isolate-line-in-binary-image-tp5004064.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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