forked from bartvdbraak/blender
d279e8891f
=========================== - ColaMD moved from OpenNL to extern/. It'll be needed for libmv. Also, it's a bit updated from year 1999 to 2007. Need to be tested for regressions. - Updated bundling script for libmv. Now it uses fuller subset of this library. - Bundled new libmv. - Request from Keir: add command line argument to toggle logging stuff on. Currently, if Blender is launched with -d argument libmv would start printing logging messages. There's no argument to increase verbosity, but there's API in libmv-capi, so it'll be easy to add. - Finally fixed crash when ibuf is acquiring with user=NULL. - Added ActiveClip property to the scene. This clip is used as default value for new match-moving constraints. - Added some flags to Display panel of View3D. Related on displaying match-moving stuff. - Internal change: bundles data moved inside to MovieTrackingTrack. - Initial implementation of 3d reconstruction. - Added constraint "Camera Solver". This constraint is supposed to be used to make camera follow the reconstructed camera path. - Added "reference" property to "Follow Track" constraint. Now object could be "parented" to 2D track position or to 3D bundle position. The very quick guide: To use reconstruction you should have footage with tracked markers, choose two keyframes in "Tracking settings" panel. There should be quite noticeable parallax effect between this two frames. This is used to initialize reconstruction stuff. Camera data (focal length and optical center) should be filled in "Camera Data" panel. Optical center is often the center of image, so it'll be filled in automatically. You should also set values for undistortion (K1, K2 and K3). Currently, there's no any visualization for this parameters and approach of "change value -> reconstruct -> see what've changed" is the only way for now. Libmv team is working on auto-calibration tool, so it should be easier to gather this coefficients in nearest (i hope) future. There's also no scene orientation stuff. Basic workflow: - Open footage. - Set markers and track them. - Fill in camera data and keyframes. - Hit "Solve Camera" button. - Add "Camera Solver" constraint to camera in scene. - Choose movieclip in that constraint. - To see bundles in 3D viewport active clip should be set in scene buttons.
105 lines
3.8 KiB
C
105 lines
3.8 KiB
C
/* ========================================================================== */
|
|
/* === ldl.h: include file for the LDL package ============================= */
|
|
/* ========================================================================== */
|
|
|
|
/* LDL Copyright (c) Timothy A Davis,
|
|
* University of Florida. All Rights Reserved. See README for the License.
|
|
*/
|
|
|
|
#include "UFconfig.h"
|
|
|
|
#ifdef LDL_LONG
|
|
#define LDL_int UF_long
|
|
#define LDL_ID UF_long_id
|
|
|
|
#define LDL_symbolic ldl_l_symbolic
|
|
#define LDL_numeric ldl_l_numeric
|
|
#define LDL_lsolve ldl_l_lsolve
|
|
#define LDL_dsolve ldl_l_dsolve
|
|
#define LDL_ltsolve ldl_l_ltsolve
|
|
#define LDL_perm ldl_l_perm
|
|
#define LDL_permt ldl_l_permt
|
|
#define LDL_valid_perm ldl_l_valid_perm
|
|
#define LDL_valid_matrix ldl_l_valid_matrix
|
|
|
|
#else
|
|
#define LDL_int int
|
|
#define LDL_ID "%d"
|
|
|
|
#define LDL_symbolic ldl_symbolic
|
|
#define LDL_numeric ldl_numeric
|
|
#define LDL_lsolve ldl_lsolve
|
|
#define LDL_dsolve ldl_dsolve
|
|
#define LDL_ltsolve ldl_ltsolve
|
|
#define LDL_perm ldl_perm
|
|
#define LDL_permt ldl_permt
|
|
#define LDL_valid_perm ldl_valid_perm
|
|
#define LDL_valid_matrix ldl_valid_matrix
|
|
|
|
#endif
|
|
|
|
/* ========================================================================== */
|
|
/* === int version ========================================================== */
|
|
/* ========================================================================== */
|
|
|
|
void ldl_symbolic (int n, int Ap [ ], int Ai [ ], int Lp [ ],
|
|
int Parent [ ], int Lnz [ ], int Flag [ ], int P [ ], int Pinv [ ]) ;
|
|
|
|
int ldl_numeric (int n, int Ap [ ], int Ai [ ], double Ax [ ],
|
|
int Lp [ ], int Parent [ ], int Lnz [ ], int Li [ ], double Lx [ ],
|
|
double D [ ], double Y [ ], int Pattern [ ], int Flag [ ],
|
|
int P [ ], int Pinv [ ]) ;
|
|
|
|
void ldl_lsolve (int n, double X [ ], int Lp [ ], int Li [ ],
|
|
double Lx [ ]) ;
|
|
|
|
void ldl_dsolve (int n, double X [ ], double D [ ]) ;
|
|
|
|
void ldl_ltsolve (int n, double X [ ], int Lp [ ], int Li [ ],
|
|
double Lx [ ]) ;
|
|
|
|
void ldl_perm (int n, double X [ ], double B [ ], int P [ ]) ;
|
|
void ldl_permt (int n, double X [ ], double B [ ], int P [ ]) ;
|
|
|
|
int ldl_valid_perm (int n, int P [ ], int Flag [ ]) ;
|
|
int ldl_valid_matrix ( int n, int Ap [ ], int Ai [ ]) ;
|
|
|
|
/* ========================================================================== */
|
|
/* === long version ========================================================= */
|
|
/* ========================================================================== */
|
|
|
|
void ldl_l_symbolic (UF_long n, UF_long Ap [ ], UF_long Ai [ ], UF_long Lp [ ],
|
|
UF_long Parent [ ], UF_long Lnz [ ], UF_long Flag [ ], UF_long P [ ],
|
|
UF_long Pinv [ ]) ;
|
|
|
|
UF_long ldl_l_numeric (UF_long n, UF_long Ap [ ], UF_long Ai [ ], double Ax [ ],
|
|
UF_long Lp [ ], UF_long Parent [ ], UF_long Lnz [ ], UF_long Li [ ],
|
|
double Lx [ ], double D [ ], double Y [ ], UF_long Pattern [ ],
|
|
UF_long Flag [ ], UF_long P [ ], UF_long Pinv [ ]) ;
|
|
|
|
void ldl_l_lsolve (UF_long n, double X [ ], UF_long Lp [ ], UF_long Li [ ],
|
|
double Lx [ ]) ;
|
|
|
|
void ldl_l_dsolve (UF_long n, double X [ ], double D [ ]) ;
|
|
|
|
void ldl_l_ltsolve (UF_long n, double X [ ], UF_long Lp [ ], UF_long Li [ ],
|
|
double Lx [ ]) ;
|
|
|
|
void ldl_l_perm (UF_long n, double X [ ], double B [ ], UF_long P [ ]) ;
|
|
void ldl_l_permt (UF_long n, double X [ ], double B [ ], UF_long P [ ]) ;
|
|
|
|
UF_long ldl_l_valid_perm (UF_long n, UF_long P [ ], UF_long Flag [ ]) ;
|
|
UF_long ldl_l_valid_matrix ( UF_long n, UF_long Ap [ ], UF_long Ai [ ]) ;
|
|
|
|
/* ========================================================================== */
|
|
/* === LDL version ========================================================== */
|
|
/* ========================================================================== */
|
|
|
|
#define LDL_DATE "Nov 1, 2007"
|
|
#define LDL_VERSION_CODE(main,sub) ((main) * 1000 + (sub))
|
|
#define LDL_MAIN_VERSION 2
|
|
#define LDL_SUB_VERSION 0
|
|
#define LDL_SUBSUB_VERSION 1
|
|
#define LDL_VERSION LDL_VERSION_CODE(LDL_MAIN_VERSION,LDL_SUB_VERSION)
|
|
|