Extract co-ordinates from a vector of co-ordinates and save to file

Posted by barsil sil on Stack Overflow See other posts from Stack Overflow or by barsil sil
Published on 2012-10-04T09:34:30Z Indexed on 2012/10/04 9:37 UTC
Read the original article Hit count: 253

Filed under:
|
|
|
|

I have a vector which contains a list co-ordinates ...x1,y1 ; x2,y2....xn,yn

I am trying to extract each individual element which is a co-ordinate and then save them to file as a nice delineated co-ord pair which can be easily read. Or what would be nice i to save them so I can plot something in excel e.t.c (as cols of x and y values).

My original vector size is 31, and was originally constructed as

vector<vector<Point> > myvector( previous vector.size() );

Thanks !

© Stack Overflow or respective owner

Related posts about c++

Related posts about opencv