Hi i have being able to write a Mat object in to a text file. As follows,
std::fstream outputFile; outputFile.open( \"myFile.txt\", std::ios::out ) ;
try something like this:
initialize these two outside the while loop
while
int k=0; int l=0;
and instead of using the for loop
for
if(j(k,l) = ::atof(str.c_str()); }else{ k=0; l++; des_object1.at(k,l) = ::atof(str.c_str()); } j++;