After understanding the basics of an image, the first thing is to create a new image with specific parameters.
We can create an image by two different callings. Although it is possible to do it by calling
CvInvoke.cvCreateImage, like we did in Chapter 3, Hello World, it is suggested to construct an
Image<TColor, TDepth> object instead from now on. The advantages of using this object are as follows:
Now we are going to create a 320 x 240 image of Bgr (blue, green, and red) color with 8 bits for each color component. We want the background color to be blue. Start a new project and add the references. In the design ...