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

2 ビュー (過去 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 件のコメント
BV
BV 2013 年 4 月 14 日
ok thanks.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by