MATLAB: How to take a Difference of gussian image when 2d vector is given

difference of gaussianimage processingImage Processing Toolbox

I am new to matlab and image processing. I need to get a DoG image of a given image. The mask given is a 7*7 vector.
Thanks

Best Answer

out = imfilter(yourImage, your7x7DoGfilter);