Undefined function 'rgb2gray' for input arguments of type 'uint8'.
9 次查看(过去 30 天)
显示 更早的评论
I am using MATLAB 2013 b. It gives the error: Undefined function 'rgb2gray' for input arguments of type 'uint8'
when I am loading an image to do some processing. Help?
A= imread('Saturn.jpg');
image(A); %show image loaded
B=rgb2gray(A); % RGB to Gray Level image conversion
0 个评论
回答(1 个)
Walter Roberson
2016-3-16
rgb2gray() is part of the Image Processing Toolbox. If you have a Student Version license, you probably have a license for it, but you might not have installed it yet.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!