필터 지우기
필터 지우기

Error : while finding histogram for gray scale image (uint8)

조회 수: 1 (최근 30일)
BV
BV 2013년 4월 14일
Can anyone tell me how to rrecvtify this error?? I have
Undefined function or variable 'originalImage'.
Error in blobs (line 15) [pixelCount grayLevels] = imhist(originalImage);

채택된 답변

Image Analyst
Image Analyst 2013년 4월 14일
Your image variable is not named originalImage. What is it named? Looks like you took some demo code of mine and modified it but forgot to change the name everywhere. Where does the result of your imread() function go to? Chances are that is what you need to send into imhist(). For example
grayImage = imread(fullFileName);
[pixelCount grayLevels] = imhist(grayImage);
  댓글 수: 4
Image Analyst
Image Analyst 2013년 4월 14일
It seems, according to the documentation, that if you don't specify the 'holes' option, it puts you into an interactive mode where you must click on the image to edit/remove things or finish. I never want that interactive mode so I always specify the 'holes' option.
BV
BV 2013년 4월 14일
ok thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by