How to get the histogram features of an RGB image? and can use it as color extraction? i want to find the mean, variance ,skewness, energy ,kurtosis, and entropy .. please help
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
jerome liwanag
el 26 de Feb. de 2019
Respondida: Image Analyst
el 28 de Feb. de 2019
I have this project that need to extact the color features . I already know how to get the average RGB but i want to add more feautes .
0 comentarios
Respuesta aceptada
Niti K
el 26 de Feb. de 2019
you can either convert rgb image to grayscale using rgb2gray or plot histograms for individual channel using indexing.
for example red channel for an RGB image can be accessed by I(:,:,1) where I is the rgb image.
5 comentarios
Bjorn Gustavsson
el 27 de Feb. de 2019
For colour extraction you could first convert the image from RGB to HSV, HSI (though that has wrapping/branch-cut issues in the hue) or Lab space. Those image formats might give more meaningful colour histograms. Also have a look at the file exchange contributions that does this task well:
Más respuestas (1)
Image Analyst
el 28 de Feb. de 2019
Not sure you really need all those, but for what it's worth, attached is my code for finding central spatial moments of an image.
0 comentarios
Ver también
Categorías
Más información sobre Histograms 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!