Store index from array in matrix -
hi want store matrix of [480][320] elements convert coordinates of real world. need save elements , display in .txt this: [numrow][numcol][depth].
i'm using c++
for(int y=0; y<depthmap.rows; y++) { for(int x=0; x<depthmap.cols; x++) { dist = sqrt(dx*dx + dy*dy + dz*dz); file << x << " " << y << " " << dist << endl; } } i want store matrix put input in next method , way convert xyz not 1 value if values
vec3f depthtoxyz(int x, int y, int depthvalue)
Comments
Post a Comment