Answer: 1 Explanation: This is a Sobel filter. Refer to this link to know more.
Q2. Which of the following OpenCV functions can be used to threshold an image?
cv2.threshold()
cv2.thresh()
cv2.Thresh()
cv2.Threshold()
Answer: 1 Explanation: In OpenCV, cv2.threshold() can be used to threshold an image. Refer to this link to know more.
Q3. In a high contrast image, _________?
everything looks nearly of the same intensity (dull, washed-out grey look)
everything looks clear to us
Answer: 2 Explanation: In a low contrast image, it is difficult to identify details because everything looks nearly of the same intensity (dull, washed-out grey look) as compared to a high contrast image where everything looks crisp clear. Refer to this link that has examples of both low and high contrast images.
Q4. Which technique is used to construct a color image from a Bayer image?
Sampling
Interpolation
Segmentation
Quantization
Answer: 2 Explanation: Because Bayer filter uses 1 channel containing 25%-Red, 50%-Green, and 25%-Blue pixels instead of 3 channels, so to form a color image we use interpolation to find the missing information. To know more about Bayer filter, refer to this link.
Q5. Which of the following OpenCV functions can be used to create a structuring element?
cv2.getStructuringElement()
cv2.createStructEl()
cv2.createStructuringElement()
cv2.getStructEl()
Answer: 1 Explanation: In OpenCV, cv2.getStructuringElement() can be used to create a structuring element. Refer to this link to know more.
Q6. How to calculate the threshold value for adaptive Thresholding?
Mean of the pixel neighborhood
Weighted Mean of the pixel neighborhood
Median of the pixel neighborhood
Can be any of the above three
Answer: 4 Explanation: We can use any of the above mentioned statistics to calculate the threshold value for adaptive Thresholding.
Q7. In the expression g(x,y) = (k+1)*f(x,y) – k*b(x,y), if we set k=1 what is this technique called? Suppose f(x,y) is the input image, b(x,y) is its blurred version and g(x,y) is the output image.
Unsharp Masking
Highboost filtering
Laplacian of Gaussian
Difference of Gaussian
Answer: 1 Explanation: This is known as Unsharp Masking. Refer to this link to know more.
Q8. Which of the following set operations are generally used in Morphological image processing?
Union
Intersection
Difference
All of the above
Answer: 4 Explanation: All of the above set operations can be used in Morphological image processing.