- No images are attached
- In what way is it not working? Do you get an error? Or a different result than you expect (in which case what did you expect?)?
- What exact code did you use. It's going to be difficult to tell you what's wrong if you don't tell us.
2-D Convolution of two images
2 ビュー (過去 30 日間)
古いコメントを表示
I need to convolve two jpg images by using conv2 command but it's not working . Images are attached.
I am new to this field.
Plz help me
3 件のコメント
回答 (1 件)
Image Analyst
2015 年 2 月 19 日
Two points you may have overlooked.
- You need to do it on monochrome images, not color. So extract the color channels and do it one color channel at a time.
- You need to cast the uint8 to double before you pass the array into conv2.
3 件のコメント
Image Analyst
2015 年 2 月 21 日
windowSize = 9;
kernel = ones(windowSize)/windowSize^2;
blurredImage = conv2(double(grayImage), kernel, 'same');
surf(blurredImage);
colormap(gray(256));
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!