blImageSerialization — Simple functions to serialize/unserialize an IplImage using opencv

Introduction Whenever working with any type of data, especially images or videos, we usually run into the need of having to save the data to then load it back up for later use. The images can either be saved in binary format or text format.  The process of saving/loading data…

Continue reading

blEncodeAndDecode — Simple functions to encode and decode images in memory using OpenCV without having to save/read to disk

Introduction I have seen many of these questions pop up everywhere on the web, like this stackoverflow.com question. But as it turns out, there are two very easy to use functions in opencv that allow us to encode/decode to/from several formats such as jpeg, png, pxm and many more. In…

Continue reading

blVideoThread2 — Another way to capture video using opencv in a parallel thread

Introduction Just as I mentioned in my previous blVideoThread article, when capturing video, our programs can be limited by the slow speeds of the capturing hardware.  One way around this, is to obviously separate the capturing process from the main program flow. In this very short article I derive from…

Continue reading

blVideoThread — A simple class to capture video using opencv in a parallel thread

Introduction This is a super short post about a simple class I made to capture video in a parallel thread. Usually, the problem is that the video capturing hardware, like webcams, is limited to thirty frames per second. If we were to capture video in series with the main program,…

Continue reading

Using OpenCV 2.2 within QTCreator in Windows

UPDATE:  If you’re trying to compile opencv look at this article. This is an update to my “Using OpenCV within QTCreator in Windows” post, that will show you how to quickly setup OpenCV 2.2 for QTCreator in Windows. (This of course will work for any IDE, not just QTCreator). So, let’s get down…

Continue reading

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

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

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

blTexture — Load an IplImage into an opengl texture and create webcam and video textures using the blImageAPI

Introduction Today I introduce a simple class that will help us load IplImage images into opengl textures. This simple class, as I will continue to show you in later posts, provides us with a very easy and powerful method to intermix images, videos and 3d graphics. In the end, you’ll…

Continue reading