Bird
0
0

How would you combine erosion and dilation to extract the boundary of white objects in a binary image using scipy?

hard📝 Application Q9 of 15
SciPy - Image Processing (scipy.ndimage)
How would you combine erosion and dilation to extract the boundary of white objects in a binary image using scipy?
ASubtract the dilated image from the original image.
BAdd the dilated image to the original image.
CSubtract the eroded image from the original image.
DAdd the eroded image to the original image.
Step-by-Step Solution
Solution:
  1. Step 1: Understand boundary extraction

    Boundary can be found by subtracting eroded image from original, leaving edge pixels.
  2. Step 2: Verify other options

    Addition or subtracting dilation does not isolate boundaries correctly.
  3. Final Answer:

    Subtract the eroded image from the original image. -> Option C
  4. Quick Check:

    Boundary = Original - Erosion [OK]
Quick Trick: Boundary = original minus eroded image [OK]
Common Mistakes:
  • Using dilation subtraction
  • Adding images instead of subtracting
  • Confusing erosion and dilation roles

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SciPy Quizzes