Spatial filtering Flashcards
The kernel is a spacial filter
True
Local operations are defined based on a
filter/kernel.
The kernel defines–A neighborhood
A weight associated with eachpixel involved in the computation.
Local operations are performed in the spatial domain of the image
The kernel is AKA spatial filter
convolution and correlation are equal
True
In the CV context, convolution and correlation are often used as synonyms– Usually, correlation is evaluated
* But it is called convolution!
* Filters are usually symmetric– Convolution and correlation are equal
In convolution filter
the filter weights cannot change the image brightness if the sum of the weights is <1
False
The filter weights can change the image
brightness
* Brightness is unchanged if: the sum of weights of i = 1. where i belongs to I.
- This is obtained by a normalization factor
which of the following are non spatial filters
1)average
2)derivative
3)min
4)single pixel operatiors
which of the following are non spatial filters
1)average
2)derivative
3)min
4)single pixel operators
A: all are spatial filters
Consider the following statements about averaging filter
-The size of the filter can be
increased
-Larger filters: stronger smoothing
Consider the following statements about averaging filter
-The size of the filter can be
increased
-Larger filters: stronger smoothing
both are True
averaging filters are non separable
2d convolution is possible in both vertical and horizontal manner
2d convolution filter doesn’t have to be a square
averaging filters are non separable- False
2d convolution is possible in both vertical and horizontal manner - true
2d convolution filter doesn’t have to be a square - true
A square filter of size 𝑛 × 𝑛 may be separated
in– A filter of size 𝑛 × 1– A filter of size 1 × 𝑛
* Separable filters: 𝑤
𝑥, 𝑦 →𝑤𝑥
𝑦– Can be applied on rows, then columns (or vv)– O(MN(a+b)) instead of O(MNab) – faster
separating the averaging filter makes it faster
True
A square filter of size 𝑛 × 𝑛 may be separated
in– A filter of size 𝑛 × 1– A filter of size 1 × 𝑛
* Separable filters: 𝑤
𝑥, 𝑦 →𝑤𝑥
𝑦– Can be applied on rows, then columns (or vv)– O(MN(a+b)) instead of O(MNab) – faste
Consider following statements about the first order derivative
- Is zero in flat segments
- Is zero on the onset of a step/ramp
- Is zero along ramps
- Is zero in flat segments - true
- Is zero on the onset of a step/ramp-false
- Is zero along ramps-true
- Is zero in flat segments
- Is non-zero on the onset of a step/ramp
- Is non-zero along ramps
Consider following statements about the second order derivative
1.Is zero in flat segments
2. Is non-zero on the onset and at the end
of a step/ramp
3. Is non - zero along ramps of constant slope
1.Is zero in flat segments -true
2. Is non-zero on the onset and at the end - true
of a step/ramp
3. Is non - zero along ramps of constant slope - false
- Is zero in flat segments
- Is non-zero on the onset and at the end
of a step/ramp - Is zero along ramps of constant slope
Consider following statements about the first order derivative
-they all have a scalar output
-they are all non linear
- they are non isotropic
Consider following statements about the first order derivative
there are 3 operators: gradient, gradient module, approx grad module
-they all have a scalar output - false: gradient has a 2d vector output
-they are all non linear- false - only gradient is linear
- they are non isotropic - false . only gradient module is non isotropic non ideally.
The sum of elements in roberts and sobel is 0
The sum of elements in roberts and sobel is 0
true
Sobel gradient can be used to get the boundary of a transparent lens
Sobel gradient can be used to get the boundary of a transparent lens
True
1)Laplacian is a second order derivative
2)Laplacian is always subtracted
3)Laplacian is used for sharpening
4) it can enhance transitions in an image
1)Laplacian is a second order derivative :true
2)Laplacian is always subtracted : false;
Laplacian is subtracted if the center weight is negative
3)Laplacian is used for sharpening : true
4) it can enhance transitions in an image: true
Linear filters suppress components
Linear filters suppress components:False
Non-linear filters can suppress components– Ex: a median filter can remove a spike (a single element that is strongly different from the others)– In our context: an element is a pixel
A corrupted image may be restored using
a)averaging filter
b)sobel filter
c) non linear filters
d) derivative filters
A corrupted image may be restored using
a)averaging filter: true: is a convolution filter used for restoring and smoothening
b)sobel filter: false: sobel and roberts are first order derivatives; they sharpen the image; they are also convolutional filters. therefore linear.
c) non linear filters: true: min,max,median
d) derivative filters : false:it sharpens the image.