Error using rgb2array and gpuArray
조회 수: 2 (최근 30일)
이전 댓글 표시
I ran the given commands as directed in rgb2gray help, but got errors.
I = gpuArray(imread('board.tif')); % this worked fine
J = rgb2gray(I); % error in this line
figure, imshow(I), figure, imshow(J);
Errors.
Error using imapplymatrix>checkOutputClass (line 145)
The output class must be a valid numeric datatype.
Error in imapplymatrix (line 69)
checkOutputClass(outputClass);
Error in rgb2gray (line 62)
I = imapplymatrix(coef, X, class(X));
Please help me with this
댓글 수: 0
답변 (1개)
Edric Ellis
2014년 4월 28일
You need to be using at least R2013b for RGB2GRAY to operate on gpuArray data. See the Image Processing Toolbox release notes.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!