0
0
Computer Visionml~20 mins

Stereo vision concept in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Stereo Vision Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the main purpose of stereo vision in computer vision?
Stereo vision uses two cameras to mimic human eyes. What is the main goal of using stereo vision?
ATo improve image brightness
BTo estimate the depth of objects in a scene
CTo detect edges more accurately
DTo increase the color resolution of images
Attempts:
2 left
💡 Hint
Think about what having two slightly different views helps us understand about the scene.
Predict Output
intermediate
2:00remaining
Output of disparity map calculation code snippet
Given the following Python code using OpenCV to compute a disparity map, what is the shape of the output disparity map?
Computer Vision
import cv2
left_img = cv2.imread('left.png', 0)
right_img = cv2.imread('right.png', 0)
stereo = cv2.StereoBM_create(numDisparities=16, blockSize=15)
disparity = stereo.compute(left_img, right_img)
print(disparity.shape)
A(height, width)
B(width, height)
C(height, width, 3)
D(width, height, 3)
Attempts:
2 left
💡 Hint
The disparity map is a single-channel image matching the input image size.
Model Choice
advanced
2:00remaining
Choosing the best stereo matching algorithm for real-time depth estimation
You want to implement stereo vision on a mobile robot that needs real-time depth estimation. Which stereo matching algorithm is best suited for this task?
ASemi-Global Matching (SGM) algorithm
BGraph Cuts algorithm
CBlock Matching (BM) algorithm
DDynamic Programming algorithm
Attempts:
2 left
💡 Hint
Consider the trade-off between speed and accuracy for real-time use.
Hyperparameter
advanced
2:00remaining
Effect of increasing numDisparities in stereo matching
In stereo vision, what happens if you increase the numDisparities parameter in the block matching algorithm?
AThe disparity search range increases, allowing detection of farther objects but increasing computation time
BThe image resolution increases, improving depth accuracy
CThe block size increases, improving noise resistance but reducing detail
DThe number of cameras needed increases
Attempts:
2 left
💡 Hint
numDisparities controls how far the algorithm looks for matching points horizontally.
Metrics
expert
2:30remaining
Evaluating stereo vision depth accuracy with error metrics
You have ground truth depth data and predicted depth from stereo vision. Which metric best measures the average absolute difference between predicted and true depth values?
APeak Signal-to-Noise Ratio (PSNR)
BRoot Mean Squared Error (RMSE)
CStructural Similarity Index (SSIM)
DMean Absolute Error (MAE)
Attempts:
2 left
💡 Hint
Look for the metric that averages absolute differences without squaring.