Clear Filters
Clear Filters

how to set generalised threshold values in histogram eqivalent to get a clear image

1 view (last 30 days)
I have a grayscale image. I've performed histeq() function on it. I have to write a generalised code by comparing pixels with its neighbouring pixels for different images to find threshold values to make the image much clearer. Ive attached grayscale image and its histeq image. I have to give threshold values for histeq function to get image much more clearer to detect tumour.

Answers (1)

Image Analyst
Image Analyst on 18 Jan 2018
Histogram equalization does not help with determining a threshold. Plus it gives crummy looking images. Don't waste your time.
  2 Comments
rohith bharadwaj
rohith bharadwaj on 18 Jan 2018
Edited: rohith bharadwaj on 18 Jan 2018
Is there a better way to make the image clear in grayscale representation. So that I can easily distinguish tumour . It should be easy for me to do contour segmentation later.
Image Analyst
Image Analyst on 18 Jan 2018
Some kind of spatial filtering may help, but just a global readjusting of graylevels like a histogram equalization does is useless. All that does is make the threshold at a different value than it would otherwise be at but it doesn't give you any different binary image than if you hadn't done equalization.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!