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 would I go around doing this, I have no idea?

1 view (last 30 days)
No idea

Accepted Answer

Image Analyst
Image Analyst on 25 Jan 2014
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);

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!