Lecture 4 - Filters Flashcards

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.
  • The transformed output pixel value 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

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
  • An image with gray level in the range - [0, L-1] where L = 2^n; n = 1, 2…
  • Negative transformation : s = L – 1 – r
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the application 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
8
Q

What are Log Transformations?

A
  • Log curve maps a narrow range of low gray level values in the input image into a wider range of output levels.
  • 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
9
Q

What is the application of Log Transformation?

A

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

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

What is Power-Law (Gamma) Transformation?

A
  • Gamma correction function is used to correct image’s luminance.
  • Power-law transformations: s=cr^gamma or s=c(r+ε)^gamma
  • gamma symbol: gamma, gamma correction
  • gamma <1 maps a narrow range of dark input values into a wider range of output values [increase brightness]
  • gamma >1 maps a narrow range of bright input values into a wider range of output values [increase darkness]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an example of Power-Law (Gamma)?

A

A magnetic resonance image (MRI) of an upper thoracic human spine with a fracture dislocation and spinal cord impingement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
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
13
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.
  • Contrast stretching is done in three ways:
    1. Multiplying each input pixel intensity value with a constant scalar. - Example: s=2*r
    2. Using Histogram Equalization
    3. 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
14
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
  • (a) transformation highlights range [A,B] of gray level and reduces all others to a constant
  • (b) transformation highlights range [A,B] but preserves all other levels
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Clipping?

A
  • This function truncates all intensities below the optional value Min to Min and all intensities above the optional value Max to Max.
  • Clipping can be used to remove unwanted features, noise, or extraneous information from an image.
    REFER TO SLIDES
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
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
17
Q

What is Histogram Equalization?

A
  • Stretch out the histogram to produce a more uniform distribution
  • In a process called histogram equalization, this information is used to compute a contrast increasing intensity transformation function.
  • Histogram equalization transforms the intensity values so that the histogram of the output image approximately matches the flat (uniform) histogram.
    REFER TO SLIDES FOR EXAMPLES
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
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:
  • 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 FOR EXAMPLE
19
Q

What is Intensity Transformation Function?

A
  • That is, 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
20
Q

What is Spacial Domain Filtering?

A
  • Capabilities of point operations are limited
  • Filters: combine pixel’s value + values of neighbors
21
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.

22
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 .

23
Q

What are souces or Noise?

A

– Light Variations
– Camera Electronics
– Surface Reflectance
– Lens

24
Q

What is Additive Noise and Multiplicative Noise?

A

– Additive noise: 𝑓 ̂(i,j) = f(i,j) + n(i,j)
– Multiplicative noise: 𝑓 ̂(i,j) = f(i,j) * n(i,j)

25
Q

What is Salt and Peper Noise?

A

Salt and pepper noise: contains random occurrences of black and white pixels

26
Q

What is Gaussian Noise?

A

Variations in intensity drawn from a Gaussian normal distribution

27
Q

How do you remove Noise?

A
  • Filtering: Use filters to remove noise
  • Filters (masks) operate on a neighborhood of pixels.
  • The sub-image is called a filter (or mask, kernel, template, window).
  • The values in a filter sub-image are referred to as coefficients, rather than pixels.
28
Q

What are example of Neighbourhood Operations?

A
  • 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
29
Q

What is Image Filtering used for?

A
  • 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

30
Q

What are properties of Linear Filters?

A
  • 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
31
Q

What is Average Filtering?

A

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

32
Q

What is a Weighted Smooothing Filter?

A

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

33
Q

What is a Gaussian Filter?

A

REFER TO SLIDES WITH FORMULA

34
Q

What is Median Filters (non0linear)?

A
  • 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
35
Q

LINEAR FILTER EXAMPLES

A

REFER TO SLIDES FOR EXAMPLES

36
Q

What are the properties of Gaussian Filter?

A

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

37
Q

FORMULA FOR GAUSSIAN FILTERS

A

REFER TO SLIDES (SHOWS 1D AND 2D)

38
Q

How do you filter in the Spacial Domain?

A

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

39
Q

What is High_Boost Filtering?

A

Here we take the original image and boost the high frequency components.
Can think of HighPass = Original – LowPass. Thus
HighBoost = bOriginal – LowPass
= (b-1)
Original + Original – LowPass
= (b-1)*Original + HighPass
b is the boosting factor.
When b=1, HighBoost = HighPass

40
Q

What is Sub-sampling?

A

– to build an image pyramid, or
– simply to reduce the resolution for efficient storage, transmission, processing

41
Q

What is Aliasing

A

1.Sample more often
2.Get rid of all frequencies that are greater than half the new sampling frequency (Nyquist frequency)
Disadvantage:
Will lose information, But it’s better than aliasing

42
Q

How do you do Aliasing?

A

Apply a smoothing filter

43
Q

What is the Image Pyramid?

A
  • Key component of many high level computer vision tasks
  • How to create an image pyramid?
  • Represent each image as a layer
    1. Convolve layer 𝑖 with a Gaussian filter
    2. Subsample layer 𝑖 by a factor of two (remove all even-numbered rows and columns) to get layer 𝑖 + 1
  • Repeat steps 1 and 2 until a stopping criteria is satisfied
44
Q

What is Template Matching?

A
  • Finding object of known shape and appearance in an image
    To identify the object, we have to compare the template image against the source image by sliding it.
  • At each location, we find the matching score between the image and the template
  • Sum of Squared Difference (SSD) in pixel values
  • (Normalized) Correlation coefficient
  • (Normalized) Cross-correlation