Filtering Flashcards
Sampling in 2D
Takes a function and returns a matrix
Resolution
DPI of an image, spatial pixel density
Quantization
8 bit-256 levels
4bit - 16 levels
2 bit- 4 levels
1 bit - 2 levels
How many different intensities (levels) can be used to create an image
Image types
Binary, grayscale, color
Point processing
Input is a single point, output is a single point
Filtering
Input is a kernel of some size, output is a single pixel
Darken using point processing
X-128
Invert using point processing
255-x
Lighten using point processing
X+128
Lower contrast, raise contrast
X/2, x* 2
Image histogram
Frequency of intensity value in an image
Histogram equalization
Good for fixing overexposed or dark images so that more object captured within the image can be seen. Though in some cases it can decrease the image quality
Histogram backprojection
Where in the image do the colors belong to the object being looked at
Linear filtering
Form new image by replacing each pixel with a weighted sum of its neighbors using the same weights at each point
Cross-Correlation
NEED MORE ONFO
Filtering- identity
000
010
000
No change
Filtering- shift
000
001
000
Shifted left by 1 pixel
Filtering - blur
111
111 * 1/9
111
Box filter blur
Filtering- sharpening
000 111
020 - 111 * 1/9
000 111
Sharpens images
Convolution
Flip the filter (h) about the center and translate it (i,j) where filter need be applied. Then do dot product
How to do deal with the filter “falling” off the edge
Clip filter (black) zero padding
Wrap around
Copy edge
Reflect across edge
Types of noise
Salt and pepper noise (random b&w pix) Impulse noise (Random white pixels) Gaussian noise (variations in intensity from a Gaussian distribution)
Box filter
1/9* 111
111
111
Gaussian filter
1/16 * 121
242
121