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

1 次查看(过去 30 天)
%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