Octave: error 'rgb2gray' undefined

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,

+4
source share
2 answers

, . pkg list, , . pkg load image.

, , , Python, Perl ++, , import, use #include , ? . .

+10

, grey_image = rgb2gray (input_image);

: 'rgb2gray' Octave Forge, , , .

, http://www.octave.org/missing.html, , . : 'rgb2gray' 1, 12

https://octave.sourceforge.io/packages.php .

0

All Articles