How to calculate entropy for 1D?

조회 수: 8 (최근 30일)
nur aqila
nur aqila 2018년 4월 20일
댓글: nur aqila 2018년 4월 20일
Hi, I have 1D data which I got after encoding an image, the data only have value 0 and 1. How can I calculate the entropy of the resulted 1D data? please help me

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 4월 20일
편집: KALYAN ACHARJYA 2018년 4월 20일
 % Not for logical data
% Entropy calculation is only for gray or other formats
en=entropy(I);
  댓글 수: 1
nur aqila
nur aqila 2018년 4월 20일
is that means it is impossible for me to calculate entropy for my data ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by