blImageShifting — Shift images by any desired amount in any direction for any purporse

This entry is part 12 of 17 in the series blImageAPI -- BarbatoLabs Image API

Table of contents1 Introduction2 List of functions2.1 ShiftImageByMRowsAndNCols Introduction In this very short article I will collect all the different functions I have and will develop to shift images by any number of pixels in any direction using the blImageAPI. Shifting images can come up in many occasions, although in…

Continue reading

blImageTiling — Algorithms to augment opencv images in various ways

This entry is part 11 of 17 in the series blImageAPI -- BarbatoLabs Image API

Table of contents1 Introduction2 List of functions2.1 AugmentTwoMatricesRowWise2.2 AugmentTwoMatricesColumnWise Introduction In this article I will collect all the different algorithms I have and will develop for ways to augment multiple images together using the blImageAPI. List of functions Here I list the current functions I have include so far. The…

Continue reading

blImagePencilSketch — A quick algorithm to turn an image or video into pencil sketch using opencv

This entry is part 10 of 17 in the series blImageAPI -- BarbatoLabs Image API

Introduction This is a very short post showing how we can turn an image or a video into a pencil sketch using the blImageAPI. The algorithm The idea is simple and looks as follows: Read in an image or video frame Copy the read image Invert the copied image Blur…

Continue reading

blRigidBodyAPI — A simple rigid body API in c++

This entry is part 1 of 1 in the series blRigidBodyAPI -- BarbatoLabs Rigid Body API

Introduction Rigid body dynamics is the body of knowledge that deals with the motion of rigid, non-flexible bodies. As it turns out, there are many things that look rigid in our daily human experiences. Because of that, there are literally hundreds of rigid body APIs for c++ out there, commercial…

Continue reading

blImageBlending — Emulating photoshop’s blending modes in opencv

This entry is part 9 of 17 in the series blImageAPI -- BarbatoLabs Image API

Introduction When playing with images or videos, we often need to blend multiple images together, whether it’s for changing the color of an object, or if we’re experimenting with some fancy masking, blending is our friend. Photoshop offers several ways to blend two images, which they call: blending modes. As…

Continue reading

blShapeSuperToroid — Construct and render super toroid shapes and height maps in opengl

This entry is part 6 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction To continue with the super quadrics theme, this article presents a simple class to construct and render super toroids shapes and height maps. As an example, the following snippet, which uses sfml for the windowing part and the blImageAPI for the webcam part, generates two super toroids, and shows…

Continue reading

blShapeSuperEllipsoid — Construct and render super ellipsoid shapes and height maps in opengl

This entry is part 5 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction How can a shape API be taken seriously if it doesn’t provide an easy way to generate super quadrics and super quadrics height maps. So as part of my blShapeAPI series, in this article, I introduce a very simple but powerful class that can generate super ellipsoids and super…

Continue reading

blShapeCylinder and blShapeSphere — Construct and render static or dynamic conical and spherical surfaces in opengl

This entry is part 4 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction As part of the blShapeAPI series, in this article I present blShapeCylinder and blShapeSphere, which are derived from blShapeQuadric and build conical and spherical surfaces. Just like blShapeQuadric, these shapes can be static or dynamic, and with only a few lines of code can produce astonishing results.

Continue reading

blShapePartialDisk — Construct and render static or dynamic partial disk shapes in opengl

This entry is part 3 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction As part of the blShapeAPI series, in this article I present blShapePartialDisk, which is derived from blShapeQuadric and builds a partial disk. Just like blShapeQuadric, this shape can be static or dynamic, and with only a few lines of code can produce astonishing results. Here’s a simple example that…

Continue reading

blShapeQuadric — Construct and render static or dynamic Quadrics shapes in opengl

This entry is part 2 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction As part of the blShapeAPI series, in this article I present blShapeQuadric, a class which will serve as the basic framework with which to build Quadric shapes. Quadric shapes are simple shapes that have a virtually unlimited number of applications. Not only are they used in all the modern…

Continue reading