Browsed by
Category: Uncategorized

C++11/14 – Lambdas

C++11/14 – Lambdas

Introduction “Lambda” expressions are a part of an effort in C++11 to introduce more “functional programming“-like features to the C++ language. Normally when we write shared code that needs to take advantage of slightly different, specific behavior we would do one of a few things: Inheritance – Define the common functionality in the base class, and implement the specific behavior in the derived class as a virtual function. Callback function – Write the common functionality, and invoke a callback (c-style…

Read More Read More

Geometric Transformation Fitting

Geometric Transformation Fitting

Problem Definition Given the following equation and an arbitrary number of point correspondence determine scale, rotation, and translation. (1)   Introduction Imagine you are sitting at home doing a bit of programming. Suddenly a rogue mathematician kicks in your door, and presents you with two sets of point data (spanning millions of points), demanding that you find a sufficient relative transformation between them. He assures you that: The points are linearly independent. You will have beforehand the correspondence of points…

Read More Read More