Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Praveen  kumar
Praveen kumar el 11 de Mzo. de 2016
Comentada: Walter Roberson el 11 de Mzo. de 2016
%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 comentarios
Praveen  kumar
Praveen kumar el 11 de Mzo. de 2016
i am not knowing what to do.how to make the z and w the different sizw..?
Walter Roberson
Walter Roberson el 11 de Mzo. de 2016
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.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Mzo. de 2016
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.

Más respuestas (0)

Categorías

Más información sobre Denoising and Compression en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by