how can use otsu's method as a local thresholding?

hi all
how can use otsu's method as a local thresholding?
and which differences between these codes?
I=graythresh(Img)
and
I=multithresh(Img)
when I use each of this code, the result is same. I can not understand the diffrences between graythresh and multithresh:(.
thanks

Answers (2)

I use a local Otsu in this locally adaptive document background correction demo, attached.

6 Comments

jack nn
jack nn on 30 Oct 2015
Edited: jack nn on 30 Oct 2015
Really thanks for your help!
if I want to used this code how can I reference to this?
are you author? if yes,how can I reference to your paper? :)
The algorithm is, as best as I can remember, one I saw presented at the Color Imaging Conference in San Francisco about 2 or 3 years ago. I didn't have the paper so I just had to go by memory. You don't need to reference me - I give tons of demos here and people are free to use them or adapt them.
Shel
Shel on 17 Sep 2018
Edited: Shel on 17 Sep 2018
Hi, I have seen the code and thanks a lot for that, but can I ask how it is possible to use it for dicom images ? Thanks
Use dicomread() instead of imread().
Thanks, but can you please tell me what is the function fun = @(x) LocalOtsu(x)? as it is not recognized by the program.Thank you
That function is included in the file I attached. How could it not be recognized? It's right in there. Did you only copy part of it? Or delete it by accident? Click on document_threshold.m above and scroll to the bottom and you'll see it.

Sign in to comment.

Hello, Did you find the answer to your question? if so, can you please share it with me?

Asked:

on 30 Oct 2015

Commented:

on 26 Sep 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!