Borrar filtros
Borrar filtros

How to calculate entropy of color image in matlab?

6 visualizaciones (últimos 30 días)
Aarach Sap
Aarach Sap el 22 de Feb. de 2017
Comentada: Image Analyst el 19 de Ag. de 2017
I want to calculate entropy of color image. I found the command entropy(img) for the grayscale image. I dont know how to find entropy for a color image in matlab. Please help me.
  1 comentario
KSSV
KSSV el 22 de Feb. de 2017
It accepts RGB matrix i.e 3D matrix too. But I am not sure of the value.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 22 de Feb. de 2017
reshape() the image to a vector and call entropy on that.
  4 comentarios
Walter Roberson
Walter Roberson el 19 de Ag. de 2017
If you have a binary mask, then use it to index the image, and the result will be a vector; you can calculate the entropy of the vector.
Image Analyst
Image Analyst el 19 de Ag. de 2017
entropyWithinMask = entropy(grayImage(mask));

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox 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!

Translated by