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

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