how to convolved two image ?
Mostrar comentarios más antiguos
hi
i want to convolved 2 images.
i tried with conv2 but its not working.
i have 2 images one is Gaussian filterd image and other is sharped image. and i would like to convolved this 2 image. i write a code
im = imread('my original.jpg');
myfilter = fspecial('gaussian',[3 3], 0.5);
a = imfilter(image, myfilter);
b = imsharpen(image,'Radius',0.5);
c=conv2(a,b);
plz help me
Respuesta aceptada
Más respuestas (3)
You didn't show your error messages, so I'm just guessing, but this
im = imread('my original.jpg');
should probably be this
image = double(imread('my original.jpg'));
2 comentarios
SAM
el 13 de Oct. de 2013
Image Analyst
el 14 de Oct. de 2013
They both have to be gray scale images, not color. What does this say:
whos a whos b
Taimoor Zafar
el 19 de Feb. de 2015
0 votos
Mahfuj
el 4 de Nov. de 2015
0 votos
The code works fine. But how we can reconstruct two images from the convolved image ?
1 comentario
Image Analyst
el 4 de Nov. de 2015
You'd have to know one of them, and then use an "inverse filter".
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!