error occuring

2 次查看(过去 30 天)
prem preet
prem preet 2012-2-28
bw3=bwmorph(bw2,'dilate');
figure,imshow(bw3);
??? Error using ==> iptcheckinput Function BWMORPH expected its first input, BW, to be two-dimensional.
Error in ==> bwmorph at 77 iptcheckinput(a,{'numeric' 'logical'},{'real' 'nonsparse' '2d'}, ...
how to remove this error .......

回答(1 个)

Kevin Holst
Kevin Holst 2012-2-28
I'll go ahead and throw out the obvious, ensure that 'bw2' is a 2-dimensional numeric matrix. http://www.mathworks.com/help/toolbox/images/ref/bwmorph.html
  2 个评论
Walter Roberson
Walter Roberson 2012-2-28
For example, you may need to use im2bw() to convert a color image to black and white.
prem preet
prem preet 2012-2-28
thanxxxxx

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Modify Image Colors 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by