Image Processing Quiz-2

Q1. Which of the following Morphological operations closes the holes/gaps present in the object while keeping the initial object size the same?

  1. Dilation
  2. Erosion
  3. Closing
  4. Opening

Answer: 3
Explanation: As clear from the name, Dilation dilates or expands the object region so for bridging/closing the holes Dilation can be used but to keep the initial object size same we need Erosion. Since Closing is Dilation followed by Erosion so this can also be used.

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. Difference between the image and its opening is known as __________?

  1. Black top-hat transform
  2. White top-hat transform
  3. Hit or Miss
  4. Closing

Answer: 2
Explanation: Difference between the image and its opening is known as White top-hat transform. Refer to this link to know more.

Q4. What is the contrast in image processing?

  1. the difference in luminance or color that makes an object distinguishable from other objects within the same field of view.
  2. the difference in the resolution that makes an object distinguishable from other objects within the same field of view.
  3. same as brightness
  4. There is no such term in image processing!!!

Answer: 1
Explanation: In image processing, contrast refers to the difference in luminance or color that makes an object distinguishable from other objects within the same field of view. To know more about contrast, refer to this link.

Q5. Which of the following refers to a type of noise in an image?

  1. Gaussian
  2. Salt and Pepper
  3. Speckle
  4. All of the above

Answer: 4
Explanation: All of the above refers to a type of noise in an image.

Q6. Which of the following Morphological operations can be used for shape detection or finding particular patterns in the given image?

  1. Morphological Gradient
  2. Hit-or-Miss Transform
  3. Top-hat Transform
  4. Opening

Answer: 2
Explanation: Hit-or-Miss Transform can be used for shape detection or finding particular patterns in the given image. In this, we use two structuring elements (say B1 and B2) and ask a simple question of does B1 fits the object while, simultaneously, B2 misses the object, i.e. fits the background. Refer to this link to know more.

Q7. Which of the following matplotlib functions can be used to calculate the image histogram? Suppose we import as “import matplotlib.pyplot as plt”

  1. plt.hist()
  2. plt.calcHist()
  3. plt.showHist()
  4. plt.histCalc()

Answer: 1
Explanation: In matplotlib, plt.hist() can be used to calculate the image histogram. Refer to this link to know more about this function.

Q8. In Perspective Transformation, what is the minimum number of points to select to obtain the transformation matrix?

  1. 1
  2. 2
  3. 3
  4. 4

Answer: 4
Explanation: In Perspective Transformation, the transformation matrix (M) is defined by 8 constants, thus to find this matrix we need 4 points. Refer to this link to know more.

Leave a Reply