# Difference of Gaussians

I use the following formula for DoG:

$$\frac{1}{\sigma} (\frac{x^2}{2\sigma^2}-1.0) e^{\frac{-x^2}{2\sigma^2}}$$

What is the relationship between this formula and the difference of two Gaussian functions?

Can someone show me how to apply DoG on a 1D signal in MATLAB? My input can be considered as a 1D real-valued function, and I applied the above formula to detect blobs. The results make sense except that I don't know why I get many local minima in a relatively flat region (i.e., function values at points in the region almost stay constant). Since I don't have enough signal processing/image processing background, I want to see what a constant signal look like after being convolved with a DoG filter.

-

2
I suggest you to look for "difference-of-gaussians" in Google IMAGES. The graphical representation of these abstract concepts sometimes can be very enlightening, specially regarding detection and other signal processing applications related to "the real world" (instead of pure mathematical formulas). – heltonbiker Nov 24 '12 at 16:05
Let me try to answer my first question. DoG is known to be an approximation of Laplacian of Gaussian(LoG). The formula is very close to the second-order derivative of a Gaussian function. Still hope someone who can share some matlab code which would allow me to play with convolution with DoG. – user11869 Nov 24 '12 at 20:57

1
@user11869 Welcome to dsp.SE ! You are allowed to edit you own questions, so, as a general rule you'll want to add all additional information about the problem as well as all the major explanations in to your question, instead of leaving them in the comments -- like you did (any new information / things you try should also be added that arise through your own research while waiting for an answer). Comments are usually for short explanations and remarks. In any case, have fun here :) – penelope Nov 26 '12 at 15:01
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9443878531455994, "perplexity_flag": "middle"}