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

 Respuesta aceptada

Jan
Jan el 13 de Feb. de 2021
Editada: Jan el 13 de Feb. de 2021
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 comentarios

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 el 13 de Feb. de 2021
Editada: Jan el 13 de Feb. de 2021
Again the documentation tells you, that exactly the same algorithm is used in rgb2gray also.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Preguntada:

el 13 de Feb. de 2021

Editada:

Jan
el 13 de Feb. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by