Skip to content

Instantly share code, notes, and snippets.

//Eigen::MatrixXd src = pointsToMatrix(pointsA[i]);
//Eigen::MatrixXd dst = pointsToMatrix(pointsB[j]);
//Eigen::Matrix4d cR_t = Eigen::umeyama(src, dst, true);
//Eigen::Matrix4d R_t = Eigen::umeyama(src, dst, false);
//Eigen::Matrix3d R = R_t.block(0,0,3,3);
//Eigen::Vector3d t = R_t.block(0,3,3,1);
@bertbalcaen
bertbalcaen / Extract all frames from a 24 fps movie using ffmpeg
Last active April 6, 2021 09:02
Extract all frames from a 24 fps movie using ffmpeg
ffmpeg -i shame-run.mov -r 24/1 test/output%03d.jpg
@hrldcpr
hrldcpr / tree.md
Last active January 6, 2025 22:43
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!