Bird
0
0

Which of the following is the correct syntax to apply a Gaussian filter using SciPy?

easy📝 Syntax Q3 of 15
SciPy - Image Processing (scipy.ndimage)
Which of the following is the correct syntax to apply a Gaussian filter using SciPy?
Ascipy.ndimage.gaussian_filter(image, sigma=1)
Bscipy.gaussian_filter(image, sigma=1)
Cscipy.ndimage.gaussian(image, sigma=1)
Dscipy.image.gaussian_filter(image, sigma=1)
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct SciPy module for Gaussian filter

    The Gaussian filter function is in scipy.ndimage and called gaussian_filter.
  2. Step 2: Match syntax to correct function call

    scipy.ndimage.gaussian_filter(image, sigma=1) correctly calls scipy.ndimage.gaussian_filter with image and sigma parameters.
  3. Final Answer:

    scipy.ndimage.gaussian_filter(image, sigma=1) -> Option A
  4. Quick Check:

    Correct function call = scipy.ndimage.gaussian_filter [OK]
Quick Trick: Gaussian filter is in scipy.ndimage module [OK]
Common Mistakes:
  • Using wrong module name
  • Missing 'filter' in function name
  • Using scipy.image which doesn't exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SciPy Quizzes