Overview
Glossary
- Bit Depth: Number of bits used to represent each pixel (e.g., 8-bit = 256 shades of gray).
- Contrast: Difference in intensity between light and dark areas of an image.
- Intensity: Brightness of a pixel in an image.
- Hue: Color attribute that distinguishes one color from another.
- Saturation: Color attribute that describes intensity of color.
- Luminance: Brightness of an image.
- Chrominance: Color information of an image.
Color Models
- Binary: Single bit representing black or white.
- Grayscale: Single channel representing intensity.
- RGB: (Red, Green, Blue) Additive color model
- CMYK: (Cyan, Magenta, Yellow, Black) Subtractive color model
- HSV: (Hue, Saturation, Value) Color model that separates intensity from color information.
- YCbCr: Color model used in video compression. Y represents luminance, Cb and Cr represent chrominance.
Image Enhancement
Improves the visual quality of an image.
Spatial Domain Methods
- Histogram Equalization: Improves contrast by redistributing intensity values.
- Smoothing Filters: Reduces noise (e.g., mean filter, median filter).
- Sharpening Filters: Highlight edges (e.g., Laplacian, Sobel, Prewitt).
Frequency Domain Methods
- Fourier Transform: Converts image from spatial to frequency domain.
- Low-Pass Filter (LPF): Removes high-frequency noise.
- High-Pass Filter (HPF): Enhances edges and fine details.
Image Restoration
Removes noise or degradation from an image.
Noise Models
Additive Noise: Noise added to image (e.g., Gaussian, salt-and-pepper).
- Gaussian Noise: Random variation in intensity values.
- Salt-and-Pepper Noise: Randomly scattered black and white pixels.
Multiplicative Noise: Noise multiplies image (e.g., speckle).
Restoration Filters
- Mean Filter: Replaces pixel with average of surrounding pixels.
- Median Filter: Replaces pixel with median of surrounding pixels. Better than mean filter for salt-and-pepper noise removal (preserves edges).
- Wiener Filter: Removes noise by estimating signal and noise power. Adapts to local image variations.
- Inverse Filter: Restores image by deconvolving blurred image with point spread function (PSF).
Image Segmentation
Divides image into meaningful regions.
Thresholding
Converts grayscale image to binary image.
- Global Thresholding: Single threshold for entire image. i.e., pixel value above threshold is considered object, below threshold is background.
- Adaptive Thresholding: Threshold varies based on local image properties.
Region-Based Segmentation
- Region Growing: Merges pixels with similar properties.
- Split and Merge: Divides image into smaller regions, then merges regions with similar properties.
Edge Detection
- Sobel Operator: Detects edges by calculating gradient magnitude.
- Canny Edge Detector: Detects edges by finding local maxima of gradient magnitude. Steps:
- Apply Gaussian filter to smooth image. (Smoothing)
- Calculate gradient magnitude and direction.
- Apply non-maximum suppression to thin edges.
- Apply hysteresis thresholding to detect strong and weak edges. (Edge tracking)
- Prewitt Operator: Detects edges by approximating gradient magnitude.
- Laplacian Operator: Detects edges by finding zero crossings.
Morphological Operations
Modifies image based on shape of objects. Shape-based analysis.
- Erosion: Shrinks objects in binary image. Removes pixels on object boundaries.
- Dilation: Expands objects in binary image. Adds pixels to object boundaries.
- Opening: Erosion followed by dilation. Removes small objects.
- Closing: Dilation followed by erosion. Fills small holes.
Image Compression
Reduces size of image data for storage or transmission.
Lossless Compression
Retains original quality (i.e., PNG, TIFF).
- Run-Length Encoding (RLE): Replaces consecutive pixels with count and value.
- Huffman Coding: Variable-length encoding based on frequency of symbols.
Lossy Compression
Sacrifices quality for smaller file size (i.e., JPEG).
- Discrete Cosine Transform (DCT): Converts image (spatial data) to frequency domain.
- Quantization: Reduces precision of DCT coefficients.
- Entropy Encoding: Variable-length encoding based on probability of symbols.
Quiz
Question 0x01
Approaches to image processing that work directly on the pixels of incoming image work in ____________.
- Spatial domain
- Inverse transformation
- Transform domain
- None of the Mentioned
Answer 0x01
Question 0x02
Which of the following is the primary objective of sharpening of an image?
- Decrease the brightness of the image
- Increase the brightness of the image
- Highlight fine details in the image
- Blurring the image
Answer 0x02
Question 0x03
Which of the following makes an image difficult to enhance?
- Dynamic range of intensity levels
- High noise
- Narrow range of intensity levels
- All the mentioned
Answer 0x03
Question 0x04
Which of the following is the application of Histogram Equalization?
- Blurring
- Contrast adjustment
- Image enhancement
- None of the Mentioned
Answer 0x04
Question 0x05
What is/are the resultant image of a smoothing filter?
- Image with reduced sharp transitions in gray levels
- Image with high sharp transitions in gray levels
- None of the mentioned
- All the mentioned
Answer 0x05
Question 0x06
___________ is/are the feature(s) of a highpass filtered image.
- An overall sharper image
- Have less gray-level variation in smooth areas
- Emphasized transitional gray-level details
- All of the mentioned
Answer 0x06
Question 0x07
Which of the following techniques is used for edge detection in images?
- Histogram equalization
- Fourier transform
- Sobel operator
- Dilation
Answer 0x07
Question 0x08
What is the purpose of the Fourier transform in image processing?
- To detect edges in an image
- To convert an image from the spatial domain to the frequency domain
- To compress an image
- To apply a filter to an image
Answer 0x08
Question 0x09
Which of the following is the correct definition of “morphological operations” in image processing?
- Operations based on the pixel values
- Operations based on the shape or structure of objects in the image
- Operations based on color histograms
- Operations based on frequency domain transformations
Answer 0x09
Question 0x0a
In the context of image segmentation, what is thresholding used for?
- To segment an image based on pixel intensity
- To detect edges
- To compress the image
- To apply filters to the image
Answer 0x0a
Question 0x0b
Which of the following techniques can be used for image resizing?
- Bilinear interpolation
- Sobel edge detection
- Fast Fourier Transform
- Median filtering
Answer 0x0b
Question 0x0c
Which of the following algorithms is commonly used for image compression?
- Canny edge detector
- Run-length encoding
- K-means clustering
- Gradient descent
Answer 0x0c
Question 0x0d
Which method is commonly used for removing salt-and-pepper noise from an image?
- Gaussian smoothing
- Median filtering
- Histogram equalization
- Edge detection
Answer 0x0d
Question 0x0e
What does the term “image thresholding” refer to?
- Converting a color image to grayscale
- Detecting edges in an image
- Converting an image into a binary image based on intensity levels
- Enhancing image contrast
Answer 0x0e
Question 0x0f
Which of the following techniques is used to obtain a sharper image by highlighting high-frequency components?
- Low-pass filtering
- High-pass filtering
- Median filtering
- Histogram equalization
Answer 0x0f
Question 0x10
In which of the following situations is a bilateral filter most useful?
- Reducing Gaussian noise
- Blurring an image
- Preserving edges while smoothing an image
- Detecting edges
Answer 0x10
Question 0x11
What is a common application of the Fast Fourier Transform (FFT) in image processing?
- Image compression
- Edge detection
- Frequency domain filtering
- Morphological transformation
Answer 0x11
Question 0x12
Which type of noise is best reduced using an adaptive filter?
- Gaussian noise
- Salt-and-pepper noise
- Speckle noise
- Periodic noise
Answer 0x12
Question 0x13
Which of the following is NOT an image restoration technique?
- Inverse filtering
- Wiener filtering
- Image thresholding
- Blind deconvolution
Answer 0x13
Question 0x14
Which of the following transforms is most commonly used for edge detection?
- Hough Transform
- Discrete Cosine Transform
- Wavelet Transform
- Laplacian Transform
Answer 0x14
Question 0x15
What is the purpose of a Gaussian filter in image smoothing?
- To enhance contrast
- To preserve edges while reducing noise
- To remove high-frequency components
- To segment objects in an image
Answer 0x15
Question 0x16
Which of the following is used for noise removal while preserving image details?
- High-pass filter
- Adaptive filter
- Histogram equalization
- Erosion
Answer 0x16
Question 0x17
Which of the following methods is most suitable for detecting circular objects in an image?
- Sobel edge detection
- Hough Transform
- Fourier Transform
- Laplacian filtering
Answer 0x17
Question 0x18
Which of the following is a common application of morphological operations in image processing?
- Edge detection
- Noise reduction
- Shape analysis
- Color correction
Answer 0x18
Recourses