Undefined function 'rgb2gray' for input arguments of type 'uint8'.

조회 수: 6 (최근 30일)
Leonardo Wayne
Leonardo Wayne 2016년 3월 16일
답변: Walter Roberson 2016년 3월 16일
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

답변 (1개)

Walter Roberson
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.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by