Spatial Filtering Flashcards
What is image processing?
Image processing is a technique of applying a relevant mathematical operation or an algorithm on a digitized image to generate an enhanced image or extract features.
What are the different types of image processing?
- Image enhancement (Eg brightness reduction)
- Image Restoration
- Colour image processing (Green screens)
- Morphological operations
- Image segmentation
- Object detection
- Image blurring
- Edge detection
What is the purpose of spatial filtering?
Soothing, removal,
- Image smoothing
- Noise removal
- Image sharpening
- Edge detection
- Inpainting
- Pre-processing
What are the steps for spatial filtering?
- Define filter
- Identify the image neighbourhood
- Multiply each pixel value in the neighbourhood with the corresponding weight in the filter mask and sum the result.
- Shift one pixel to the right and repeat step 3.
- Repeat until done
Why in spatial filtering does the weight have to sum to 1?
To preserve the overall brightness
Why in spatial filtering does the weight have to sum to 1?
To preserve the overall brightness
What happens in spatial filtering if the weight is above 1?
The image will be brighter
For the averaging filter, what does a larger mask mean?
More blurring
What is the purpose of the unsharp mask?
- The idea is to improve the sharpness of the edges.
- The name is from the fact that the process involves blurring the original image.
What filter does the unsharp mask use?
Averaging filter
What is J?
Output image
What is I?
Original image
How do you determine J in terms of the unsharp mask?
J = I + A x [I - Iblur]
A = scaling factor
What are examples of linear spatial filters?
- Larger average filter (smoothing filter)
- Vertical difference (horizontal edge detection)
- Horizontal difference (vertical edge detection)
- Horizontal and vertical edge detection
- Diagonal difference filter
What is a median filter?
- Similar to linear filtering but instead of calculating a weighted sum of the pixels within each neighbourhood, the output pixel value is determined as the neighbourhood median.
- Very effective at removing a certain type of image noise