hi i have mean and standard deviation in one image now i want to find entropy for RGB color and skewness..
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
zack
el 16 de Mayo de 2014
Comentada: zack
el 19 de Mayo de 2014
how to find entropy and skewness for RGB in one image?
0 comentarios
Respuesta aceptada
Youssef Khmou
el 16 de Mayo de 2014
To find the entropy, you have two ways, using predefined function or by programming :
H=imread('autumn.tif'); % RGB sample
E1=entropy(H)
Using program here is way :
H=im2double(H(:));
P=hist(H,length(H));
P(P==0)=[];
P=P/sum(P);
E2=-sum(P.*log2(P));
9 comentarios
Youssef Khmou
el 16 de Mayo de 2014
Editada: Youssef Khmou
el 16 de Mayo de 2014
H=imread('autumn.tif');
r=im2double(H(:));
Más respuestas (1)
Image Analyst
el 16 de Mayo de 2014
Editada: Image Analyst
el 16 de Mayo de 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 comentarios
Image Analyst
el 16 de Mayo de 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.
Ver también
Categorías
Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!