Computer Vision Interview
60 Q&A
Chapter 12
3D Vision & Depth — Interview Q&A
3D vision introduction, camera calibration, and stereo depth from disparity.
60 questions
Chapter 12
3D Vision Introduction: 20 Essential Q&A
1
What is 3D computer vision?
⚡ easy
Answer: Reasoning about geometry of the scene—depth, shape, pose, and 3D structure—from images, video, or range sensors.
2
Depth from stereo?
📊 medium
Answer: Triangulate corresponding points in two calibrated views—baseline provides parallax; disparity inversely related to depth.
3
Define disparity.
📊 medium
Answer: Horizontal shift between conjugate pixels in rectified stereo pair—larger disparity means closer object (for standard forward stereo).
4
What is the epipolar constraint?
🔥 hard
Answer: Corresponding point in second image lies on a line (epipolar line)—reduces matching from 2D search to 1D after rectification.
5
Monocular depth?
📊 medium
Answer: Uses cues (perspective, texture, learned priors) or supervised/self-supervised CNNs—scale ambiguous without extra info.
6
What is a point cloud?
⚡ easy
Answer: Set of 3D points (x,y,z), often with color/normal—raw output of LiDAR/stereo fusion or depth cameras.
7
Voxel vs mesh?
📊 medium
Answer: Voxel grid discretizes 3D space—good for conv nets; mesh stores vertices+faces—compact for graphics and surface reasoning.
8
Pinhole camera model?
📊 medium
Answer: Projects 3D X to image x via similar triangles: x = K [R|t] X (homogeneous)—basis for calibration and triangulation.
9
Intrinsic matrix K?
📊 medium
Answer: Maps camera coordinates to pixels: focal lengths f_x,f_y and principal point c_x,c_y; may include skew in general form.
10
Extrinsics?
📊 medium
Answer: Rotation R and translation t from world to camera frame—pose of camera in scene.
11
RGB-D cameras?
⚡ easy
Answer: Structured light or time-of-flight provides registered depth + color (Kinect, RealSense)—no stereo baseline needed but range/artifact limits.
12
LiDAR?
📊 medium
Answer: Active ranging by laser pulses—sparse accurate 3D, widely used in autonomy; different noise profile than passive stereo.
13
Structure from motion?
📊 medium
Answer: Estimate sparse 3D points and camera poses from many images—basis of photogrammetry pipelines.
14
SLAM in one line?
📊 medium
Answer: Simultaneously localize sensor and build map of environment—needs data association and loop closure.
15
What is NeRF?
🔥 hard
Answer: Neural radiance field represents scene as MLP of density+color in 5D (x,y,z,θ,φ)—novel view synthesis; hot research direction.
16
Scale ambiguity?
📊 medium
Answer: Monocular SfM/SLAM recovers geometry up to similarity transform without metric scale—IMU or known object fixes scale.
17
What is ICP?
📊 medium
Answer: Iterative Closest Point aligns two point clouds by minimizing distances between correspondences—registration and tracking.
18
BEV representation?
📊 medium
Answer: Top-down grid of scene used in driving—fuses multi-view or LiDAR into 2D bird’s-eye feature maps for detection/planning.
19
Applications?
⚡ easy
Answer: AR overlay needs 6-DoF pose; robotics needs grasp planning collision checking—both need reliable 3D perception.
20
Example datasets?
⚡ easy
Answer: KITTI, nuScenes, ScanNet, ShapeNet—each emphasizes driving, multi-sensor, indoor scans, or CAD models respectively.
Camera Calibration: 20 Essential Q&A
21
What is camera calibration?
⚡ easy
Answer: Estimating intrinsic (focal length, principal point, distortion) and often extrinsic (pose) parameters so pixel measurements map correctly to 3D rays.
22
What are intrinsics?
📊 medium
Answer: Properties of the camera/lens fixed w.r.t. the sensor—encoded in K and distortion coeffs—independent of where the camera sits in the world.
23
What are extrinsics?
📊 medium
Answer: Rigid transform [R|t] from world (or calibration object) frame to camera frame—changes when the camera moves.
24
What is the intrinsic matrix K?
📊 medium
Answer: 3×3 upper-triangular mapping normalized camera coordinates to pixels: focal lengths f_x,f_y, principal point c_x,c_y, optional skew γ.
25
What is radial distortion?
📊 medium
Answer: Lens bends rays—barrel (outward) or pincushion (inward); modeled as r-dependent scaling of image radius from optical center.
26
What is tangential distortion?
📊 medium
Answer: Lens not perfectly parallel to sensor—modeled with extra parameters (p1,p2) shifting points tangentially; common in OpenCV 5-coeff model.
27
Brown–Conrady model?
🔥 hard
Answer: Classic polynomial radial + tangential distortion used in OpenCV
calibrateCamera—may use k1–k3, p1,p2; fisheye uses different high-FOV model.
28
How does Zhang’s method work?
🔥 hard
Answer: Uses multiple views of a planar calibration pattern; each view gives a homography constraining intrinsics; closed-form init then non-linear refinement minimizing reprojection error.
29
Why checkerboards?
📊 medium
Answer: Corner intersections are easy to detect sub-pixel; known 3D layout on plane gives 2D–3D correspondences per image.
30
What is reprojection error?
📊 medium
Answer: Distance between detected image points and projection of 3D model points with estimated parameters—lower is better; report RMS in pixels.
31
OpenCV pipeline?
⚡ easy
Answer:
findChessboardCorners → calibrateCamera → get K, distCoeffs; optional stereoCalibrate for two cameras.
ret, K, dist, rvecs, tvecs = cv2.calibrateCamera(obj_pts, img_pts, image_size, None, None)
32
Stereo calibration?
🔥 hard
Answer: Estimate intrinsics per camera plus relative pose (R,T) between cameras and often rectify so epipolar lines align—needed for triangulation.
33
When use fisheye module?
📊 medium
Answer: Very wide FOV where polynomial model breaks—OpenCV
fisheye:: namespace uses different distortion and projection.
34
Principal point?
⚡ easy
Answer: Optical axis intersection with image plane (c_x,c_y)—often near image center but not exactly; important for undistortion and 3D.
35
Skew γ?
🔥 hard
Answer: Non-orthogonal pixel axes—often assumed 0 for modern sensors; included in full K for completeness.
36
World frame choice?
📊 medium
Answer: Usually attach to calibration board plane (Z=0 on pattern)—extrinsics are board-to-camera per capture.
37
Calibrate from homography only?
📊 medium
Answer: Single plane gives partial constraints—need multiple orientations/distances to fix intrinsics uniquely (Zhang’s multi-view idea).
38
Why calibrate for AR?
⚡ easy
Answer: Overlay virtual objects requires accurate projection and undistortion—wrong K causes “swimming” augmentations.
39
When recalibrate?
⚡ easy
Answer: Zoom/focus change, different camera, temperature extremes, or new lens—intrinsics are not universal across devices.
40
Link to bundle adjustment?
🔥 hard
Answer: Joint non-linear refinement of many cameras and 3D points—structure-from-motion and SLAM extend calibration ideas to large scenes.
Stereo Vision: 20 Essential Q&A
41
What is stereo vision?
⚡ easy
Answer: Using two (or more) calibrated views with known baseline to recover depth via triangulation of corresponding points.
42
Define disparity.
📊 medium
Answer: Horizontal shift between corresponding pixels in a rectified stereo pair—larger disparity means closer surface (inverse relation to depth).
43
Depth from disparity?
📊 medium
Answer: Z ≈ f × B / d (f focal length, B baseline, d disparity)—assumes rectified parallel cameras and pinhole model.
44
Baseline tradeoff?
📊 medium
Answer: Larger B increases depth precision (more parallax) but worsens occlusions and matching in narrow scenes; small B reduces measurable disparity range.
45
What is rectification?
🔥 hard
Answer: Warp both images so epipolar lines are horizontal scanlines—reduces correspondence search to 1D and simplifies disparity.
46
Epipolar constraint?
📊 medium
Answer: Without rectification, match for a point lies on a line in the other image—comes from epipolar geometry of two views.
47
What is stereo matching?
📊 medium
Answer: For each pixel (or patch), find best match along epipolar line using photometric cost (SAD, census, CNN features).
48
Cost volume?
🔥 hard
Answer: 3D array H×W×D of matching costs over disparity levels—winner-take-all or global optimization (SGC, belief propagation) picks disparities.
49
What is SGM?
🔥 hard
Answer: Semi-Global Matching aggregates costs along many paths with smoothness penalties—good quality/speed tradeoff in OpenCV StereoSGBM.
50
Occlusion regions?
📊 medium
Answer: Pixels visible in only one view have undefined disparity—detected by consistency checks or left-right validation.
51
Sub-pixel disparity?
📊 medium
Answer: Parabolic fit around discrete minimum or phase-based methods—needed for smooth surfaces and accurate 3D.
52
Common errors?
📊 medium
Answer: Calibration errors, textureless regions, repetitive patterns, specular highlights, and motion if scene moves between exposures.
sgm = cv2.StereoSGBM_create(minDisparity=0, numDisparities=128, blockSize=5)
disp = sgm.compute(imgL, imgR)
53
StereoBM vs SGBM?
⚡ easy
Answer: BM: fixed small block, fast, blocky. SGBM: semi-global, slower, smoother—preferred when quality matters.
54
Monocular depth?
📊 medium
Answer: Single image lacks scale without priors—learned networks predict relative depth; stereo gives metric depth with calibration.
55
vs RGB-D?
⚡ easy
Answer: Structured light / ToF gives depth directly—no correspondence problem but range/resolution limits; stereo passive but needs texture.
56
Multi-view stereo?
🔥 hard
Answer: Fuse many images (MVS) for dense point clouds—used in photogrammetry beyond two-camera stereo.
57
Stereo in driving?
📊 medium
Answer: Wide-baseline camera pairs on vehicles for obstacle depth; often fused with radar/LiDAR and learned refinement.
58
Fuse with LiDAR?
🔥 hard
Answer: Sparse accurate LiDAR anchors depth map from stereo; learning-based fusion common in autonomy stacks.
59
Learned stereo?
📊 medium
Answer: CNNs build cost volumes or regress disparity directly (e.g. PSMNet)—strong on benchmarks when enough training data.
60
Need calibration?
⚡ easy
Answer: Yes for metric depth—need K, distortion, and stereo extrinsics; rectification matrices derived from them.
Full tutorial chapter
Pair these interview notes with the matching CV tutorial chapter.