title: OpenCV vector creation in C++ and storing to text file
body: <p>I have a very basic query about storing vectors in OpenCV, but since I've always worked in MATLAB, I am finding it really difficult to perform the same vector operations in C++.</p>
  
  <p>So here's my problem, I have computed optical flow using the basic cvGoodFeaturesToTrack() and  cvCalcOpticalFlowPyrLK() functions and find the flow lines' end points and show them on the image as lines of optical flow. </p>
  
  <p>However, I want to store these flow line end points in a vector and then save it as a text file which I can then send to MATLAB for reading.</p>
  
  <p>I really don't know how I can create these vectors that store these points and save them on a text file.</p>
  
  <p>Can anyone help?</p>
  
  <p>Thanks,</p>
  
  <p>Yash</p>