MATLAB: I need to wirte a MATLAB program that employs MA filterto an image, then display the original image, the filtered image and the difference of the images. How to go around doing this, I have no idea

image processingma filtermoving average

No idea

Best Answer

I don't know what an MA filter is, but let's say that you have a function that does it. Then you do this
filteredImage = ma_filter(originalImage);
differenceImage = double(filteredImage) - double(originalImage);
% Now display
subplot(2,2,1);
imshow(originalImage, []);
title('Original Image', 'FontSize', 15);
subplot(2,2,2);
imshow(filteredImage, []);
title('Filtered Image', 'FontSize', 15);
subplot(2,2,3);
imshow(differenceImage, []);
title('Difference Image', 'FontSize', 15);