vector 1次元配列をvector 2次元配列に格納したいです。
std::vector<float> depthData に画像データを入力し、
std::vector<std::vector<float>> depthDataArrayに画像データdepthDataを追加したいのですが、
以下のようなメッセージが出力され、格納できません。
方法をご存知でしたらご教授いただきたく思います。
C++
1std::vector<float> depthData; 2std::vector<std::vector<float>> depthDataArr; //デプスデータ格納用 3//-------------- 4//ここでdepthDataに値を格納する処理 5//-------------- 6depthDataArray[0].push_back(depthData); //error 7depthDataArray[1].push_back(depthData); //error
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。