I’m having a problem using vector,
I am hoping to use vector only instead of array. Eg. below shows the usage of an array.
IplImage* bdrInt[a] = cvCreateImage(cvSize(cImg.at(a)->width+2*left,
cImg.at(a)->height+2*top), IPL_DEPTH_8U, 1);
- The image size varies.
- If I’m planning to use vector instead of array. Is it possible? (cvCreateImage do not allow conversion from IplImage to vector type)Is there any workaround for this type?
I think what you need is to save the
IplImagepointers invector<IplImage *>. The vector just stores the pointer, and it doesn’t care about the image size.