Local Thresholding defined by a binary mask

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

Local Thresholding defined by a binary mask

jumpfunky
Dear ImageJ-Community,

is there a plugin which allows me to use the threshold methods locally
whereas the locations are defined by a binary mask? The Auto Local
Threshold plugin seems not allow something like this.

If this is not available, I have to develop such a plugin...

Cheers,
Thorsten

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Local Thresholding defined by a binary mask

Gabriel Landini
On Monday 24 Mar 2014 14:00:50 you wrote:
> is there a plugin which allows me to use the threshold methods locally
> whereas the locations are defined by a binary mask? The Auto Local
> Threshold plugin seems not allow something like this.

With the original Auto Threshold plugin (in my page), you can "ignore black"
and/or "ignore white".
So (here I am assuming that you want to segment bright regions) you could add
1 to your image (no black=0 pixels now), paint in black all the regions you do
not want to influence the thresholding and apply the plugin with "ignore
black". That is a global threshold based on the histogram of the non-black
pixels.

The Auto Local Threshold is different. It uses circular masks to decide every
central pixel based on the local properties in the mask. Since a few of the
local methods are not histogram-based, you will have to modify each method to
ignore pixels masked by an another bitmap.

Cheers

Gabriel

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