local thresholding for image binarization.

i am working on local thresholding fir image binarization. where i need to calculate intensity I(x,y) of a pixel position (x,y). How to calalulate this value? Please help

Answers (1)

Try nlfilter(). Demo attached.
I'm also attaching a demo where I used local thresholding.
An alternative is to flatten the image by using adapthisteq() and then using a global threshold.

Asked:

on 27 Oct 2017

Answered:

on 27 Dec 2017

Community Treasure Hunt

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

Start Hunting!