error occuring

4 vues (au cours des 30 derniers jours)
prem preet
prem preet le 28 Fév 2012
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 .......

Réponses (1)

Kevin Holst
Kevin Holst le 28 Fév 2012
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 commentaires
Walter Roberson
Walter Roberson le 28 Fév 2012
For example, you may need to use im2bw() to convert a color image to black and white.
prem preet
prem preet le 28 Fév 2012
thanxxxxx

Connectez-vous pour commenter.

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by