logo       

Re: using cvFileStorages: msg#01247

lib.opencv

Subject: Re: using cvFileStorages

Didnt notice any of your previous mails about filestorages,.

I figured it out from the documentation:
For storing and retrieving floating point raw data:

Storing data onto file:
==================================================================
CvFileStorage *fs;
fs = cvOpenFileStorage( "Data.xml", 0, CV_STORAGE_WRITE);
cvWriteRawData( fs, data_ptr, data_length, "f");
cvReleaseFileStorage (&fs);
==================================================================


Retrieving data from file:
==================================================================
CvFileStorage *fs;

fs = cvOpenFileStorage( "Data.xml", 0, CV_STORAGE_READ);
cvReadRawData( fs, cvGetRootFileNode( fs ), data_ptr, "f" );
cvReleaseFileStorage (&fs);
==================================================================

Refer docs for more information and option on filestorages.

Regards, :D
Paramesh.

--- In OpenCV@xxxxxxxxxxxxxxx, Indika Bandara Udagedara
<indikabandara19@...> wrote:
>
> hello,
> can somebody help me with howto save and retrieve multiple
matrices/arrays using cvFileStorage object. posted this couple of
times but nobody responded? does nobody saves matrices in files ???
>
> TIA
>
>
> indika
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and
30+ countries) for 2¢/min or less.
>
> [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