1
$\begingroup$

I am new to signal processing, and was reading about filters. I came upon the sobel filter which has the following forms,

Taken from Wikipedia

From what I understand to apply this filter to a 2-d signal, place the filter's center on the correct point and multiply the coefficients with the signal at the points of overlap and add them together. So for the following example signal, applying the horizontal sobel filter from above would give:

Signal                 Output (edges are left alone)
|100|100|100|100|      |100| 100| 100|100|
| 10| 10| 10| 10|      | 10| 360| 360| 10|
| 10| 10| 10| 10|      | 10|-360|-360| 10|
|100|100|100|100|      |100| 100| 100|100|

Separable filters are more computationally efficient and the sobel filter is one of them. My problem is I can't figure out how the separable filter is applied. So, what I want to ask is how would the sobel filter be applied separably?

http://upload.wikimedia.org/math/6/0/a/60ab2094b6bb4ecbd9c16815d75a35da.png

$\endgroup$
3
$\begingroup$

Steve Eddins has a nice page that explains it.

It comes down to being able to do a separate 1-D filters in each direction (requiring $MN(P + Q)$ multiplies and adds), rather than a single 2-D convolution ($MNPQ$ multiplies and adds). Here the image is assumed to be $M \times N$ and the convolution kernel $P \times Q$.

Of course, this assumes you're doing everything in the time domain, and not using FFTs.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.