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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -