Home My Page Projects MPTK: The Matching Pursuit ToolKit
Summary Activity Forums Tracker Lists Docs News SCM Files

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: Book format for mpd and mptk-gui [ Reply ]
By: Dillion Tan on 2008-10-08 09:30
[forum:98612]
Thank you, both methods solved my problem immediately

RE: Book format for mpd and mptk-gui [ Reply ]
By: RĂ©mi Gribonval on 2008-10-08 07:55
[forum:98605]
Hi,

When you run the mpd command, you can specify either book.bin or '-' (stdout) for the output book. With the second option, you obtain the book in XML-like human readable format, and you can store it to a file using the shell syntax:

mpd ... your options here ... - > book.xml

If you have an existing file in binary format, you can convert it to XML-like with the mpf command, by specifying no filtering option and choosing stdout as the output method

mpf book.bin - > book.xml

I hope this helps,

Remi.

Book format for mpd and mptk-gui [ Reply ]
By: Dillion Tan on 2008-10-08 06:14
[forum:98604]
Hi,

Using the precompiled binary of MPTK 0.5.6 on winXP, I've noticed that the book file format produced by command line mpd differs from that produced by mptk-gui. The former is raw binary while the latter is human readable xml in binary format. Both are valid and produce the same result with mpr. However I need the second format for parsing and analysis of the book. Is there any way to call mpd from command line and produce the same format from mptk-gui? Or any way I can convert between the 2 forms?

Regards,
Dillion