How to get the value fo the two peaks of a histogram

조회 수: 4 (최근 30일)
Twilighter
Twilighter 2012년 7월 19일
How to get the value of the two peaks of a histogram
I have a program which do some calculations on an image by getting the membership value of pixels using fuzzy logic
this is not the part I'm asking about
the program is calculating this between (what it said ) the two peaks after getting the Image histogram
and for the cameraman Image it concidered the two peaks are 20 & 160 from the look at the histogram it seems that it's the value of the two obvious peaks there
what i need to know is how to get the two peaks using matlab ??
the two peaks of a Histogram ? if my interpretation is correct

채택된 답변

Image Analyst
Image Analyst 2012년 7월 19일
Look here http://fiji.sc/wiki/index.php/Auto_Threshold for a wide variety of autothresholding methods. There is no one single method that will be best for any and all types of histograms, that's why there are so many. Pick the one that works best for your types of images.
  댓글 수: 7
Image Analyst
Image Analyst 2012년 7월 21일
Well when I referred you to a bunch of auto threshold routines that you could try (to pick a value of p automatically), you acted like I didn't understand you because I was directing you to autothresholding methods when you really wanted the location of the peaks. So I gave you code to find the peaks, assuming you already had a thresholding method. So now I've given you both, but I'm still not sure why neither of those meets your needs.
Twilighter
Twilighter 2012년 8월 1일
Maybe my lack of knowledge to some concepts, I thank you Image Analyst & I'm testing the solutions you gave to me

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by