Highpass and lowpass filter could be used for edge detection, sharpen image, hybrid images and blend images.
To detect the edge of a cameraman image, it is first convolve with finite difference operators D_x and D_y.

Then, we use below formula to compute gradient magnitude image. And set threshold=0.14 to change it into edge image.
21
However, we could see that the edge image is rather noisy. Using Gaussian filter to blur the image first is a effective way to make it better, because it flite the high frquency noise. The edge of DoG is more distinct and thicker than previous one.

Except blur the image first, we could convolve gaussian filter with D_x and D_y first, and use it to filte the image. The result is same.

.png)
Based on the formula below, we can create a sharpen core. f is the original image, e is an unit impulse, g is a gaunssian core.



To hybrid images, we use low-pass filter to one image, high-pass filter the second image, and add the two images.
Baby vs elder





man vs cat









Harris vs Trump





Multiresolution blending is a technique used to seamlessly blend two images by utilizing Gaussian and Laplacian pyramids. The method allows for smooth transitions between images by blending them at multiple frequency bands.
apple vs orange





Sky vs Ship




UCB vs Stanford
![]()
![]()
![]()
![]()