Processing images with real-valued Gabor filters

In this recipe, you will learn how to construct a Gabor filter kernel (useful for detecting edges in images) and apply it to an image.