rgb2ind function not working

조회 수: 4 (최근 30일)
Sez S
Sez S 2012년 3월 29일
A script I have calls up the rgb2ind function. The error message is 'Undefined function or method 'rgb2ind' for input arguments of type uint8'. However I've checked the function script and it says you should use uint8 and the input arguments that are used are uint8 with a map of 256. Am I missing something? I am fairly new to Matlab. There seems to be some problems with this function as at first it could not recognise it even though the function script is in the pathway. I'm using Matlab 2008b and this script has worked on the same version on other computers previously. Here is the section using the function: inimg = imread(imname); [img,imap] = rgb2ind(inimg,256);
Thanks in advance

채택된 답변

Jonathan Sullivan
Jonathan Sullivan 2012년 3월 29일
That's odd. Make sure something screwy didn't happen with you path. What happens when you type
which rgb2ind
It should print the path to rgb2ind. If it says "'rgb2ind' not found." we may have to reset your paths.

추가 답변 (1개)

Sez S
Sez S 2012년 3월 29일
Hi, Many thanks for your response. The pathway is under the Matlab list of functions under the image toolbox under /ja. But at the end it says 'has no license available'. This Matlab just had it's license reactivated with a new user (me). So it's very strange. The rgb2ind function script is also located in the folder above '/ja' as well. When I open the version under '/ja' it is a mess and basically 'gobbledygoop'!!! When I open the other version it works fine.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by