how to convolved two image ?
显示 更早的评论
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
采纳的回答
更多回答(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 个评论
SAM
2013-10-13
Image Analyst
2013-10-14
They both have to be gray scale images, not color. What does this say:
whos a whos b
Taimoor Zafar
2015-2-19
0 个投票
Mahfuj
2015-11-4
0 个投票
The code works fine. But how we can reconstruct two images from the convolved image ?
1 个评论
Image Analyst
2015-11-4
You'd have to know one of them, and then use an "inverse filter".
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!