O'Reilly logo

Mastering openFrameworks: Creative Coding Demystified by Denis Perevalov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with ofxCv images

The main object of computer vision is the image. So before diving into image processing and analysis, we should learn how to work with OpenCV-related images freely. We will consider images of classes ofxCvColorImage, ofxCvGrayscaleImage, ofxCvFloatImage, and ofxCvShortImage. These class names have the prefix ofxCv, so we will call them ofxCv images. To be precise, we will assume that we have these image objects:

ofxCvColorImage image, image2;                //Color images
ofxCvGrayscaleImage grayImage, grayImage2;    //Grayscale images
ofxCvFloatImage floatImage;                   //Float-type image
ofxCvShortImage shortImage;  //Image with "unsigned short" pixels

It is convenient to group functions and operations into several groups.

Image initializing

You ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required