Undefined function 'meann2' for input arguments of type 'uint8

rgbImage = getsnapshot(videoObject);
imwrite(rgbImage, fullFileName);
grayImage = rgb2gray(rgbImage);
meanGL = meann2(grayImage);
if meanGL < 20 % or whatever.
warningMessage = sprintf('Something is wrong.\nThe image is too dark.\nThe mean intensity is
only %.1f gray levels', meanGL);
uiwait(warndlg(warningMessage));
end ---------------------------------------------------------------------------- my error is
Undefined function 'meann2' for input arguments of type 'uint8
Error in InProcessing (line 21)
meanGL = meann2(grayImage);

답변 (1개)

the cyclist
the cyclist 2014년 2월 16일

0 개 추천

You didn't actually ask a question, but I'm going to guess.
It looks like you might have a simple typo. Did you want to use the function mean2() rather than meann2()?

카테고리

도움말 센터File Exchange에서 Just for fun에 대해 자세히 알아보기

태그

질문:

2014년 2월 16일

답변:

2014년 2월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by