Getting Error while using "im2gray" function. I'm using Matlab 2020.

 採用された回答

Jan
Jan 2021 年 2 月 13 日
編集済み: Jan 2021 年 2 月 13 日

0 投票

Which Matlab version are you using?
Introduced in R2020b
You find the applied algorithm in the documentation also:
gs = 0.2989 * I(:, :, 1) + 0.5870 * I(:, :, 2) + 0.1140 * I(:, :, 3)

2 件のコメント

Md. Mahadi Hasan
Md. Mahadi Hasan 2021 年 2 月 13 日
I'm using MATLAB 2020a;
I may fixed it by using "rgb2gray' function instead of "im2gray" function.
I hope both functions are work for same output doesn't it?
Jan
Jan 2021 年 2 月 13 日
編集済み: Jan 2021 年 2 月 13 日
Again the documentation tells you, that exactly the same algorithm is used in rgb2gray also.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Images についてさらに検索

質問済み:

2021 年 2 月 13 日

編集済み:

Jan
2021 年 2 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by