2D convolution in in Matlab.
Show older comments
I = imread ("lena.jpg");
%imshow(I);
K = I;
C = conv2(I, K);
imshow(C);

But, my output is blank:

What could be the possible reason?
And, how can I obtain the expected output?
Accepted Answer
More Answers (1)
Matt J
on 10 Jul 2018
I = im2double( rgb2gray( imread("lena.jpg") ) );
1 Comment
Ba Ba Black Sheep!
on 10 Jul 2018
Categories
Find more on Images in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!