필터 지우기
필터 지우기

How to calculate entropy of color image in matlab?

조회 수: 6 (최근 30일)
Aarach Sap
Aarach Sap 2017년 2월 22일
댓글: Image Analyst 2017년 8월 19일
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
KSSV
KSSV 2017년 2월 22일
It accepts RGB matrix i.e 3D matrix too. But I am not sure of the value.

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

답변 (1개)

Walter Roberson
Walter Roberson 2017년 2월 22일
reshape() the image to a vector and call entropy on that.
  댓글 수: 4
Walter Roberson
Walter Roberson 2017년 8월 19일
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 2017년 8월 19일
entropyWithinMask = entropy(grayImage(mask));

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

카테고리

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