1. Terminators

    Hasta la vista, baby!


  2. Polymorphism Polymorphism

    C++17 gives us std::variant<> which allows for a new form of runtime polymorphism. …


  3. Default Constructed Return Value: return {}

    It is common for C/C++ functions to return default values, for example, if some internal condition fails.
    This is straightforward for native return types, as in: …


  4. Drawing Arrows with OpenCV

    Here’s a little OpenCV gem I found.
    OpenCV has a (relatively) new function (post-2.4.9) called cv::arrowedLine() that let’s you draw a one directional arrow between 2 points. …


  5. Horizontal Matrix Concatenation in OpenCV

    Here’s a little undocumented function to horizontally concatenate two cv::Mat matrices (with the same number of rows). …