Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

vector Mat

Is it possible to enter images of different formats to be inserted into vector<mat>? I created a struct as: struct MatImage { vector<mat> images; }; Inside main I create an object MatImage *obj; I try to insert 3 images into obj as: obj->images.push_back(res_32f1); obj->images.push_back(roi_cropped); obj->images.push_back(resizedTemplate1); where res_32f1 is CV_32FC3, roi_cropped and resizedTemplate1 is UC3. But on running im getting segmentation fault, as only the first image is getting inserted. Is it possible to insert images of different format in vector<mat>?

vector Mat

Is it possible to enter images of different formats to be inserted into vector<mat>? I created a struct as: as:

struct MatImage
{
vector<mat> vector<Mat> images;
};
Inside main I create an object MatImage *obj; I try to insert 3 images into obj as:
obj->images.push_back(res_32f1);
obj->images.push_back(roi_cropped);
obj->images.push_back(resizedTemplate1);

where res_32f1 is CV_32FC3, roi_cropped and resizedTemplate1 is UC3. But on running im getting segmentation fault, as only the first image is getting inserted. Is it possible to insert images of different format in vector<mat>?

vector Mat

Is it possible to enter images of different formats to be inserted into vector<mat>? I created a struct as:

struct MatImage
{
vector<Mat> images;
};
Inside main I create an object MatImage *obj; I try to insert 3 images into obj as:
obj->images.push_back(res_32f1);
obj->images.push_back(roi_cropped);
obj->images.push_back(resizedTemplate1);

where res_32f1 is CV_32FC3, roi_cropped and resizedTemplate1 is UC3. But on running im getting segmentation fault, as only the first image is getting inserted. Is it possible to insert images of different format in vector<mat>?

vector Mat

Is it possible to enter images of different formats to be inserted into vector<mat>? vector<Mat>?

I created a struct as:

struct MatImage
{
vector<Mat> images;
};
Inside main I create an object MatImage *obj; I try to insert 3 images into obj as:
obj->images.push_back(res_32f1);
obj->images.push_back(roi_cropped);
obj->images.push_back(resizedTemplate1);

where res_32f1 is CV_32FC3, roi_cropped and resizedTemplate1 is UC3. But on running im getting segmentation fault, as only the first image is getting inserted. Is it possible to insert images of different format in vector<mat>?inserted.

vector Mat

Is it possible to enter insert images of different formats to be inserted into format in vector<Mat>?

I created a struct as:

struct MatImage
{
vector<Mat> images;
};
Inside main I create an object MatImage *obj; I try to insert 3 images into obj as:
obj->images.push_back(res_32f1);
obj->images.push_back(roi_cropped);
obj->images.push_back(resizedTemplate1);

where res_32f1 is CV_32FC3, roi_cropped and resizedTemplate1 is UC3. But on running im getting segmentation fault, as only the first image is getting inserted.