Tagged: C++

0

Function Templates and Operator Overloading

std::cout << “Hello Readers!” << std::endl;In this blog post I’m going to show you a short example of a function template by using a struct and operator overloading. Function templates are blueprints of your function, it plugging-in the type that’s needed. Compiler generates the functions in compile time. The trick is if you use an operator, your type must support it! Otherwise, you have to overload that operator. Right now...

0

Camera Calibration with OpenCV

This post is about distortions and to undistort them and calibrating your camera with matrices. OpenCV has many great weapons in it’s own arsenal one of them is calib3d. My intent is to share a block of code and explain it to you. May be I feed this post with my own repository for you. I’m listing general steps in my own flow: Printing a chessboard image is a must....