Calculate Image Entropy
Versión 1.0.0 (2,27 KB) por
Royi Avital
The function `CalcImgEntropy()` calculates the entropy of the colors of a `UINT8` image with single or multiple (Up to 8) channels.
The function CalcImgEntropy() calculates the entropy of the colors of a `UINT8` image with single or multiple (Up to 8) channels.
It supports 2 modes:
- Calculation per Channel: It averages the entropy calculated on each channel seperatly.
- Calculation per Image (Vector): Concatentae each pixel to have a single value representation.
The current implementation uses the arguments block both for the input and the output. Hence it requires MATLAB R2022b. In case you have an earlier version one might remove those blocks and the code should be compatible with earlier versions.
The function was created as an answer to the question StackExchnage - Signal Processing - What Measure to Compare the Color Depth (Distribution of Colors) of Images.
Citar como
Royi Avital (2024). Calculate Image Entropy (https://www.mathworks.com/matlabcentral/fileexchange/118893-calculate-image-entropy), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2022b
Compatible con cualquier versión desde R2022b
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |