Please advise what needs to be done to do the rgb2graywork in Octave. I found this thread , but still I would like to use functionality instead of manually calculating for each color channel. rgb2gray
The code I run is:
I = imread('smile.jpg');
G = rgb2gray(I);
The error I am getting is:
error: 'rgb2gray' is undefined near line 10 column6
Optional:
Octave version: 3.6.4
Installed image package. Version: 2.0.0.
"Rgb2gray.m" is installed in C: \ Octave \ share \ octave \ packages \ image-2.0.0
Thanks,
source
share