logo       

Re: How to read the data in a ".txt" document and store the data in a matri: msg#01185

lib.opencv

Subject: Re: How to read the data in a ".txt" document and store the data in a matrix?

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>
Google Custom Search

News | FAQ | advertise