필터 지우기
필터 지우기

how to reach amount of entropy of image in between the range [0,1] ?

조회 수: 2 (최근 30일)
fred bnm
fred bnm 2016년 7월 1일
댓글: fred bnm 2016년 7월 1일
Hi, Usually the amount of entropy is between the range [0,1]. but after run
E = entropy(I)
E is a scalar value representing the entropy of grayscale image I that E>1.i want E between [0,1]. please guide me or suggest an another function.

채택된 답변

Thorsten
Thorsten 2016년 7월 1일
You can scale the output by the maximum entropy for this image
H = entropy(I);
N = numel(I);
maxH = entropy([1:N]/N);
Hscaled = H/maxH;
  댓글 수: 3
Thorsten
Thorsten 2016년 7월 1일
If it's double, the values have to be in the range [0,1], and if its unit8, the values have to be in the range [0, 255], as far as I understood.
fred bnm
fred bnm 2016년 7월 1일
N is number of element in matrix.i cant understand the maxH.please explain more.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by