for texture classification i have taken lbp as a feature..after applying lbp i have taken histogram..how to normalise the bins of histogram..and what is meant by normalise bins of histogram?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
for texture classification i have taken lbp as a feature..after applying lbp i have taken histogram..how to normalise the bins of histogram..and what is meant by normalise bins of histogram?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 27 Okt. 2012
Bearbeitet: Image Analyst
am 27 Okt. 2012
Normalization would mean that you either divide by the max value of the counts, or that you divide by the sum of all the counts.
[pixelCounts grayLevels] = imhist(lbpImage, 256);
normalizedHist1 = pixelCounts / max(pixelCounts(:));
normalizedHist2 = pixelCounts / sum(pixelCounts(:));
It means that either the max value of any count will be 1.0, or that the sum of all counts would now be 1.0, depending on which method you use.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!