|
Re: How to read the data in a ".txt" document and store the data in a matri: msg#01185lib.opencv
Use string functions to read and store the matrix. First, read the entire line, and then do strtok to separate the values. Convert every separate string into the required variable, for example using atoi or atof functions. Regards, :D Paramesh. --- In OpenCV@xxxxxxxxxxxxxxx, Ñô ÕÔ <zhaoyang820520@...> wrote: > > I want to read the data in a ".txt" document and store the data in a matrix.The data in the ".txt" is stored row by row,and in a row,the data are separated by a comma.Can someone help me? > Thank you very much! > > > --------------------------------- > ÑÅ»¢1GÃâ·ÑÓÊÏä°Ù·Ö°Ù·ÀÀ¬»øÐÅ > ÑÅ»¢ÖúÊÖ-ËÑË÷¡¢É±¶¾¡¢·ÀɧÈÅ > > [Non-text portions of this message have been removed] > Change settings: http://www.yahoogroups.com/mygroups, select Get Emails (get all posts) Daily Digest (one summary email per day) Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe@xxxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Save Mutiple Faces: 01185, Parameswaran |
|---|---|
| Next by Date: | Re: newbie running under windows xp, cxcore097.dll not found error: 01185, Parameswaran |
| Previous by Thread: | How to read the data in a ".txt" document and store the data in a matrix?i: 01185, 阳 赵 |
| Next by Thread: | Re: How to read the data in a ".txt" document and store the data in a matrix?: 01185, Luiz Curado |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |