Find Edges then fill those edges with black

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

Find Edges then fill those edges with black

jfishbac
This post was updated on .
Hi all,

Brand Newbie here, so please understand my lack of terminology as I try to convey my goal.

I have the following image.

I convert this image to 8-bit.

I then Process >> Find Edges.

I then Crop the image and Threshold the edges and then press "apply".
     Lower Threshold Level: 40
     Upper Threshold Level: 255

 I want to essentially FILL these edged regions with black and then analyze the particles. How do I fill the edges?

Thanks!

John
Reply | Threaded
Open this post in threaded view
|

Re: Find Edges then fill those edges with black

Michael Schmid
Hi John,

if you threshold the edges between 0 and 40, you can use the Versatile Wand in 4-connected mode: just click somewhere on the background, and the background will be selected.
You can also do this in a macro, but you need a coordinate of a starting point that lies in the background.

The Versatile Wand plugin is at
http://imagejdocu.tudor.lu/doku.php?id=plugin:segmentation:versatile_wand:start

Michael
________________________________________________________________
On 2012-Sep-27, at 21:50, jfishbac wrote:

> <http://imagej.1557.n6.nabble.com/file/n5000232/7075-1_pt3_8bit_edges_thresh.png>
> Hi all,
>
> Brand Newbie here, so please understand my lack of terminology as I try to
> convey my goal.
>
> I have the following image.
> <http://imagej.1557.n6.nabble.com/file/n5000232/7075-1_pt3.png>
>
> I convert this image to 8-bit.
> <http://imagej.1557.n6.nabble.com/file/n5000232/7075-1_pt3_8bit.png>
>
> I then Process >> Find Edges.
> <http://imagej.1557.n6.nabble.com/file/n5000232/7075-1_pt3_8bit_edges.png>
>
> I then Crop the image and Threshold the edges and then press "apply".
>     Lower Threshold Level: 40
>     Upper Threshold Level: 255
>
> I want to essentially FILL these edged regions with black and then analyze
> the particles. How do I fill the edges?
>
> Thanks!
>
> John
>
>
>
> --
> View this message in context: http://imagej.1557.n6.nabble.com/Find-Edges-then-fill-those-edges-with-black-tp5000232.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