title: Pixel coordinates opencv, c++
body: <p>I need to know how to extract all pixels locations for the frame and put them in a matrix in order to make some operations on them. 2D frames, so it will be (x,y) coordinates. </p>
  
  <p>I Have obtained a rotation matrix and translation matrices of features between 2 frames in captured video, now I wanna use these matrices to multiply it by the image in order to correct the video frames</p>
  
  <p>I prefer to use opencv functions.</p>