フィルターのクリア

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 Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by