Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
highlighting
folder is configured to do syntax
highlighting in code blocks such as the one below.
%example code showing how to use my_imfilter to create a hybrid image
image1 = im2single(imread('../data/dog.bmp'));
image2 = im2single(imread('../data/cat.bmp'));
filter = fspecial('Gaussian', cutoff_frequency*4+1, cutoff_frequency);
low_frequencies = my_imfilter(image1, filter);
high_frequencies = image2 - my_imfilter(image2, filter);
hybrid_image = low_frequencies + high_frequencies;
This my_imfilter
method implemented is capable of performing filtering operations
on a wide variety of images and filters. In the examples above, we are performing
Gaussian blurs on each original image (and subtracting it for the high frequency image).
When we add the high and low frequency image, we get a hybrid image that appears differently
depending on how far away the viewer is from the image.
my_imfilter
is also capable of performing filtering on a wide variety of filters
so long as the widths are the odd.