Convolution Theorem I
Building the Cantata Workspace
Images
- Input: lenina.viff
- Kernel: roberts_y.ascii
First process the image in the spatial domain using
Linear Operator.
Since the kernel has negative values, convert the input image to float
in order to support negative values in the resultant image.
Do the same processing in the frequency domain
- Take the DFT of the input image.
- Extend the kernel to the size of the input image. Use the
Pad operator.
- Take the DFT of the padded kernel.
- Multiply both DFTs using
Multiply.
- Take the inverse DFT of the result of the multiplication.
- Due to numerical roundoff, the resultant image should be a real
image. Verify that the imaginary part is very small. Discard
the imaginary part of the resultant image using
Complex to Real.
Compare the results of both processings using the
Absolute Diff.
Exercises
- Repeat the same experiment using other convolution kernel, e.g.
3x3 average kernel.
DIP Feedback Form