Ask Your Question

Revision history [back]

About Mat to normalized float array, you can use first use convertto and second use normalize

About Mat to normalized float array, you can use first use convertto and second use normalize

then you can use : vector<double> vec; Mat v = (Mat_<double>(1,6) << 0, 1.1, 2, 10, 11, 12); v.copyTo(vec); for (auto i : vec) cout << i << "\t"; cout << " <- vec : vector<double>\n";

About Mat to normalized float array, you can use first use convertto and second use normalize

then you can use : :

  vector<double> vec;
   Mat v = (Mat_<double>(1,6) << 0, 1.1, 2, 10, 11, 12);
   v.copyTo(vec);
   for (auto i : vec)
       cout << i << "\t";
    cout << " <- vec : vector<double>\n";

vector<double>\n";