اگر همچین چیزی منظورتونه که به صورت زیر انجام میشه.
grayImage = imread('Cameraman.tif');
grayImage = imresize(grayImage,[100,100]);
grayImage = double(grayImage);
subplot(1,3,1);
imshow(grayImage, []);
axis on;
title('Original Image', 'FontSize', 15);
myfilter = fspecial('gaussian',[100 100], 30);
subplot(1,3,2);
imshow(myfilter, []);
axis on;
title('myFilter', 'FontSize', 15);
c= (grayImage.*myfilter);
subplot(1,3,3);
imshow(c, []);
title('c', 'FontSize', 15);
axis on;