Image Processing Quiz-10

Q1. Which operator is this?

[[-1 0 1]
[-2 0 2]
[-1 0 1]]

  1. Sobel
  2. Scharr
  3. Prewitt
  4. Laplacian

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?

  1. cv2.threshold()
  2. cv2.thresh()
  3. cv2.Thresh()
  4. 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, _________?

  1. everything looks nearly of the same intensity (dull, washed-out grey look)
  2. 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?

  1. Sampling
  2. Interpolation
  3. Segmentation
  4. 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?

  1. cv2.getStructuringElement()
  2. cv2.createStructEl()
  3. cv2.createStructuringElement()
  4. 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?

  1. Mean of the pixel neighborhood
  2. Weighted Mean of the pixel neighborhood
  3. Median of the pixel neighborhood
  4. 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.

  1. Unsharp Masking
  2. Highboost filtering
  3. Laplacian of Gaussian
  4. 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?

  1. Union
  2. Intersection
  3. Difference
  4. All of the above

Answer: 4
Explanation: All of the above set operations can be used in Morphological image processing.

Leave a Reply