1

I am very new to OpenCV and I have the following question:

I understand that I can create an image using:

IplImage  *img

What i want is making a database of images. For example:

img[0]: will have image 1,
img[1]: will have image 2,
img[2]: will have image 3,
 etc...

How can i do such a thing ?

1 Answer 1

2

One IplImage is use for one image. So you can create a IplImage *img = NULL then allocate or fill it with different sources of images with for example:

img[0] = cvLoadImage(...);

Do not forget to release your images:

cvReleaseImage(img[0] );

You can see the documenation here and some example here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.