SAMPLE CODE
This page includes Matlab code and test programs for the algorithms described in the book. All the functions needed to run the sample programs and sample images can be obtained by downloading the
examples-code.zip
file.
MASKS code
Algorithm 4.1 - Basic feature tracking/flow computation
(sampleFlow.m)
Algorithm 4.2 - Harris corner detector
(harrisCorner.m,
test_4_1.m)
Algorithm 4.3 - Edge detection
(edgeDetection.m)
Algorithm 5.1 - The eight-point algorithm + 3D reconstruction
(essentialDiscrete.m,
,
compute3Dstructure.m,
test_5_1.m)
Algorithm 5.2 - The four-point algorithm for planar scene
(homography2Motion.m,
test_5_2.m)
Projetive reconstruction - fundamental matrix, projective reconstruction
(dfundamental.m,
compute3Dstructure.m,
,
test_6_1.m)
Affine upgrade using vanishing points (from projective to affine)
( test_6_2.m)
Algorithm 8.1 Factorization algorithm for multiview reconstruction using points
(sfm_points.m
)
Algorithm 9.1 Factorization algorithm for multiview reconstruction using points and lines
(sfm_mixed.m
)
Projective rectification
(projRectify.m,
Hwarp.m,
test_11_9.m)
Step-by-step reconstruction
(quadric_linear_f.m
,
step_by_step.m)
An Invitation to 3D Vision
Y. Ma, S. Soatto, J. Kosecka, S. Sastry
THE CODE ON THIS PAGE IS DISTRIBUTED FREE FOR NON-COMMERCIAL USE.
Copyright (c) MASKS, 2003.