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!