error occuring
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
 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 .......
댓글 수: 0
답변 (1개)
  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
      
      
 2012년 2월 28일
				For example, you may need to use im2bw() to convert a color image to black and white.
참고 항목
카테고리
				Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!