How to combine vector of 2D mat into a 3D mat ? Or

asked 2016-11-15 08:03:13 -0600

Nbb gravatar image

How to combine vector of 2D mat into a 3D mat ? Or how can i directly fill up a 3d mat with 2d mats ?

This is my code but its not working

int planSize[] = { 48, 49, 49 };
cv::Mat voxel(3, planSize, CV_64FC1);
for (int i = 0; i < 48; i++)
    cv::filter2D(imageGray, voxel[i]), -1, texture[i]);
edit retag flag offensive close merge delete

Comments

2

my 2ct.: rather use a vector<Mat> , support for 3d Mat's is extremely sparse

berak gravatar imageberak ( 2016-11-15 09:11:33 -0600 )edit

got it ill use a vector<mat> then thanks !

Nbb gravatar imageNbb ( 2016-11-15 09:36:35 -0600 )edit