Approximate Entropy Calculation for an Image

 Respuesta aceptada

Thorsten
Thorsten el 29 de Jun. de 2015
function E = entropy(I)
% Assume I in the range 0..1
p = hist(I(:), linspace(0,1,256)); % create histogram
p(p==0) = []; % remove zero entries that would cause log2 to return NaN
p = p/numel(I); % normalize histogram to unity
E = -sum(p.*log2(p)); % entropy definition

3 comentarios

shishir
shishir el 29 de Jun. de 2015
This is for computing the ENTROPY. But I want to compute SAMPLE ENTROPY and APPROXIMATE ENTROPY of an IMAGE.
So if you give me something regarding the described entropies, it would be great help.
Thank You Sir,
Marcus Tan
Marcus Tan el 25 de Jul. de 2021
Can someone guide me also how to calculate the approximate entropy of an Spectrogram image transformed from EEG signal? I have seen number of file exchange but none of them work.

Iniciar sesión para comentar.

Más respuestas (1)

Maria da Luz
Maria da Luz el 29 de Abr. de 2024

0 votos

Como recortar a região de interrese dessa imagem que neste caso é a mandibula.só a parte branca

Preguntada:

el 29 de Jun. de 2015

Respondida:

el 29 de Abr. de 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by