I was troubling with this operation. I can’t get it through. Where am I missing?
vector<Mat> blobC;
for(unsigned int i = 0; i < blobCFinal.size(); i++)
{
blobC.at(i) = blobCFinal.at(i);
}
where
vector<IplImage*> blobCFinal;
If I’m not mistaken usual way of converting normal type is like this,
IplImage* blobCFinal;
Mat blobC(blobCFinal);
Ans: Thanks to @rotating_image, probably this will work
vector<Mat> blobC;
for(unsigned int i = 0; i < blobCFinal.size(); i++)
{
Mat dummy = Mat(blobCFinal[i]);
blobC.push_back(dummy);
}
Try this…