hi i have mean and standard deviation in one image now i want to find entropy for RGB color and skewness..
Ältere Kommentare anzeigen
how to find entropy and skewness for RGB in one image?
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 16 Mai 2014
Bearbeitet: Image Analyst
am 16 Mai 2014
For entropy you can use entropy(). If you want a local entropy to give an image of how much the entropy is around the image, you can use entropyfilt(). If you want image moments, see the attached demo of mine.
A color image is three color channels. You can take the entropy of each.
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
redEntropy = entropy(redChannel);
greenEntropy = entropy(greenChannel);
blueEntropy = entropy(blueChannel);
3 Kommentare
zack
am 16 Mai 2014
Image Analyst
am 16 Mai 2014
Was this comment posted before you used Youssef's code and accepted it? He only did entropy and you accepted it so I assume that it does what you need.
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!