Lecture 4 - Filters Flashcards

(46 cards)

1
Q

What is Image Enhancement?

A

Process an image so that the result will be more suitable than the original image for a specific application. (Suitableness is up to each application)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is Image Enchancement used?

A

Common reasons for enhancement include
- Make images easier to interpret for the human eye (Improving visual quality)
- Generate better input for other image processing techniques (Improving recognition accuracy)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What can Image Enchancement be done in?

A

Spatial Domain : (image plane)
- Techniques are based on direct manipulation of pixels in an image
Frequency Domain :
- Techniques are based on modifying the Fourier transform of an image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are some Spatial Domain transformation?

A
  • Point operations
  • Filter (Mask) operations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Point Operation?

A
  • Point operation deals with pixel intensity values individually
  • Enhancement at any point depends only on the image value at that point and does not depend on any of the neighboring pixel value of the input image
  • Point Operation Examples:
    • Image Negative
    • Contrast Stretching
    • Thresholding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Intensity transformation: What are Image Negatives?

A
  • Reversing the intensity levels of an image.
  • Image negative is produced by subtracting each pixel from the maximum intensity value.
  • e.g. for an 8-bit image, the max intensity value is 2^8– 1 = 255
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the formula for Image Negatives?

A
  • Negative transformation : s = L – 1 – r
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the applications of Image Negatives?

A

Suitable for enhancing white or gray detail embedded in dark regions of an image.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are Log Transformations?

A

Used to expand the values of dark pixels in an image while compressing bright ones (higher-level values).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the formula for Log Transformations

A

s = c log(r + 1), where s is a constant and r is a pixel (+1 is because log(0) causes issues)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Power-Law (Gamma) Transformation?

A

Gamma correction function is used to correct image’s luminance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Power-Low (Gamma) Formula?

A

s=cr^gamma or s=c(r+ε)^gamma
- gamma symbol: is gamma, gamma correction
- if gamma <1 increases brightness
- gamma >1 increases darkness (darkens bright areas)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are some common Piecewise-Linear Transformation Functions?

A
  • Contrast Stretching
  • Gray-level Slicing
  • Clipping
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Contrast Stretching?

A
  • It is the difference between the intensity values of darker and brighter pixels
  • Contrast stretching expands the range of intensity levels in an image.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How does Contrast Stretching work

A
  • Contrast stretching is done in three ways:
    1. Multiplying each input pixel intensity value with a constant scalar.
      1. Using Histogram Equalization
    2. Applying a transform which makes dark portion darker by assigning slope of < 1 and bright portion brighter by assigning slope of > 1.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Gray-level Slicing?

A
  • Highlighting a specific range of gray levels in an image
  • Display a high value of all gray levels in the range of interest and a low value for all other gray levels
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is Clipping?

A
  • This function truncates all intensities outside the defined limits (ie anything outside min truncates to min and anything outside max truncates to max)
  • Clipping can be used to remove unwanted features, noise, or extraneous information from an image.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What are Advantages and Disadvantages of Piecewise-Linear Transformation Functions

A

Advantage:
- The form of piecewise functions can be arbitrarily complex.
- A Practical Implementation of some important transformations can be formulated only as piecewise functions.
===
Disadvantage:
- Their specification requires considerably more user input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is Histogram Equalization?

A

Enhances image contrast by redistributing pixel intensities to approximate a uniform histogram
REFER TO SLIDES FOR MATH WORKING OUT

20
Q

What is the Normalised Histrogram Function?

A

The normalized histogram function is the histogram function divided by the total number of the pixels of the image given as a probability:
- It gives a measure of how likely is for a pixel to have a certain intensity. That is, it gives the probability of occurrence the intensity.
===
- The sum of the normalized histogram function over the range of all intensities is 1.
REFER TO SLIDES

21
Q

What is Intensity Transformation Function?

A

We add the values of the normalized histogram function from 1 to k to find where the intensity will be mapped.
REFER TO SLIDE FOR EXAMPLE AND FORMULA

22
Q

What is Spacial Domain Filtering?

A
  • Capabilities of point operations are limited
  • Filters: combine pixel’s value + values of neighbors
23
Q

What cant Point Operations do?

A

Combining multiple pixels needed for certain operations:
- Enhance an image, e.g., denoise, Blurring, Sharpening.
- Extract information, e.g., texture, edges.
- Detect patterns, e.g., template matching.

24
Q

What is Image Noise?

A

Noise in image , is any degradation in an image signal , caused by external disturbance while an image is being sent from one place to another place via satellite , wireless and network cable .

25
What are souces of Noise?
– Light Variations – Camera Electronics – Surface Reflectance – Lens
26
What is Additive Noise and Multiplicative Noise?
– Additive noise: 𝑓 ̂(i,j) = f(i,j) + n(i,j) – Multiplicative noise: 𝑓 ̂(i,j) = f(i,j) * n(i,j)
27
What are the common types of noise
Salt and Pepper Gaussian Noise
28
What is Salt and Peper Noise?
Contains random occurrences of black and white pixels
29
What is Gaussian Noise?
Variations in intensity drawn from a Gaussian normal distribution
30
How do you remove Noise?
- Filtering: Use filters to remove noise - Filters (masks) operate on a neighborhood of pixels.
31
What are example of Neighbourhood Operations?
- Min: Set the pixel value to the minimum in the neighborhood - Max: Set the pixel value to the maximum in the neighborhood - Average: Set the pixel value to the average of the neighborhoods - Median: The median value of a set of numbers is the midpoint value in that set (e.g. from the set [1, 7, 15, 18, 24] 15 is the median). Sometimes the median works better than the average
32
What is Image Filtering used for?
- Remove noise - Sharpen contrast - Highlight contours - Detect edges Image filters - linear or nonlinear. - Linear filters are also know as convolution filters - Nonlinear operations such as median filter
33
What are properties of Linear Filters?
- Linearity: filter(f1 + f2) = filter(f1) + filter(f2) - Shift invariance: same behavior regardless of pixel location. - The value of the output depends on the pattern in the image neighborhood, not the position of the neighborhood - filter(shift(f)) = shift(filter(f)) - Any linear, shift-invariant operator can be represented as a convolution - Commutative: a * b = b * a - Associative: a * (b * c) = (a * b) * c - Often apply several filters one after another: (((a * b1) * b2) * b3) - This is equivalent to applying one filter: a * (b1 * b2 * b3) - Distributes over addition: a * (b + c) = (a * b) + (a * c) - Scalars factor out: ka * b = a * kb = k (a * b) - Identity: unit impulse e = [0, 0, 1, 0, 0], a * e = a - Differentiation
34
What is Average Filtering?
One of the simplest spatial filtering operations we can perform is a smoothing operation (remove sharp features) - Simply average all of the pixels in a neighborhood around a central value - Especially useful in removing noise from images - Also useful for highlighting gross detail REFER TO SLIDES FOR EXAMPLE
35
What is a Weighted Smooothing Filter?
More effective smoothing filters can be generated by assigning different pixels in the neighborhood different weights in the averaging function - Pixels closer to the central pixel are more important - Reduce smoothing effect - Often referred to as a weighted averaging REFER TO SLIDES FOR EXAMPLES
36
What is a Gaussian Filter?
Weights center pixels more heavily, effective for smoothing while retaining edge detail REFER TO SLIDES WITH FORMULA
37
What is Median Filters (non-linear)?
- A Median Filter operates over a window by selecting the median intensity in the window. - No new pixel values introduced - Removes spikes: good for impulse, salt & pepper noise - It is not as efficient at averaging away regular Gaussian noise REFER TO SLIDES FOR EXAMPLES
38
LINEAR FILTER EXAMPLES
REFER TO SLIDES FOR EXAMPLES
39
What are the properties of Gaussian Filter?
Linear filters Remove “high-frequency” components from the image (low-pass filter) – Images become more smooth ... Convolution of a Gaussian with a Gaussian is another Gaussian – So can smooth with small-width kernel, repeat, and get same result as larger-width kernel would have – Convolving two times with Gaussian kernel of width 𝜎 is same as convolving once with kernel of width 𝜎sqrt(2) ... Separable kernels – Factors into product of two 1D Gaussians
40
How do you filter in the Spacial Domain?
REFER TO SLIDES Low-pass filtering -> convolve the image with a box / Gaussian filter High-pass filtering -> result equals 0, given a box filter/average filter
41
What is High-Boost Filtering?
Here we take the original image and boost the high frequency components. Can think of HighPass = Original – LowPass. Thus HighBoost = b*Original – LowPass = (b-1)*Original + Original – LowPass = (b-1)*Original + HighPass b is the boosting factor. When b=1, HighBoost = HighPass
42
What is Sub-sampling?
* Reduces image size by discarding rows/columns. * Compresses image and improves efficiency.
43
How is Sub-sampling useful in multi-scale detection?
* Enables object detection at different scales. * Used in hierarchical object detection methods.
44
What is the Nyquist Criterion
* Sampling frequency must be at least twice the highest frequency in the image to avoid aliasing. * Violating this results in loss of original information.
45
What is the basic technique of detection/recognition in temple matching?
* Compares a template image to the input by sliding over it. * Detects locations with highest similarity.
46
What are the temple matching score?
* SSD (Sum of Squared Differences): ○ Lower values = better match * Normalized Correlation (NC): ○ Correlates intensity values, accounts for brightness variations * Normalized Cross-Correlation (NCC): ○ Normalized by mean and variance; robust to intensity scale