Bird
0
0

What will be the shape of the output image after applying scipy.ndimage.zoom(img, 2) if img.shape is (100, 100)?

medium📝 Predict Output Q13 of 15
SciPy - Image Processing (scipy.ndimage)
What will be the shape of the output image after applying scipy.ndimage.zoom(img, 2) if img.shape is (100, 100)?
A(50, 50)
B(100, 100)
C(200, 200)
D(100, 200)
Step-by-Step Solution
Solution:
  1. Step 1: Understand zoom factor effect

    A zoom factor of 2 doubles the size of each dimension of the image.
  2. Step 2: Calculate new shape

    Original shape is (100, 100). Doubling each dimension gives (200, 200).
  3. Final Answer:

    (200, 200) -> Option C
  4. Quick Check:

    Zoom 2x doubles shape [OK]
Quick Trick: Zoom factor multiplies each dimension [OK]
Common Mistakes:
  • Confusing zoom with cropping
  • Thinking zoom keeps shape same
  • Mixing width and height dimensions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SciPy Quizzes