필터 지우기
필터 지우기

Matrix dimensions must agree.error in t=r.*e;

조회 수: 1 (최근 30일)
Praveen  kumar
Praveen kumar 2016년 3월 11일
댓글: Walter Roberson 2016년 3월 11일
%Binarisation
e=im2bw(z);
figure,imshow(e);
title('binarized image');
r=im2bw(w);
t=r.*e;
figure,imshow(t);
k=bwmorph(~t,'thin','int');
figure,imshow(k);
title('morphological processed image');
  댓글 수: 2
Praveen  kumar
Praveen kumar 2016년 3월 11일
i am not knowing what to do.how to make the z and w the different sizw..?
Walter Roberson
Walter Roberson 2016년 3월 11일
Your z and w are currently different sizes. As you appear to be using images, you should imresize() the larger image to match the size of the smaller image.

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

채택된 답변

Walter Roberson
Walter Roberson 2016년 3월 11일
We have no reason to expect, given the code you show, that z and w were originally the same size. If they are not, then it will not be possible to multiply their binary equivalents.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by