MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Antw: Binary File Read in Mathematica 5 for Mac OSX

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46962] Antw: Binary File Read in Mathematica 5 for Mac OSX
  • From: "Thomas Manz" <thomasmanz at web.de>
  • Date: Thu, 18 Mar 2004 01:24:44 -0500 (EST)
  • References: <c387r9$bip$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi!

I had the same problem in Windows because I didn´t know anything about a "experimental binary import function".
My solution was programming a tiny program in C# and using this with Netlink (Mathlink for .net). With a little help from this forum (some weeks ago: "Mathlink and C#") it was really easy and didn´t make much effort.

Now reading a 1024 x 1024 x 16bit picture (if anyone knows WincamD from DataRay??) in binary format takes less than 3 seconds.

I´m not sure if you can use C# on a Mac but C or C++ should work!

Best regards
Thomas Manz

>>> bcd<bcdetterich at socal.rr.com> 17.03.2004 01:58:17 >>>
Extremely long read time for binary files using the Utilities Standard
Package.  In this case I'm reading signed 16 bit integers.  The command s and
syntax work as advertised, but it's SLOOOOOOOOOOOOOW, and I have big files.

Can't find the Experimental binary import function ... error message seems
to indicate it doesn't exist for Unix based systems.

Looks like it will be faster for me to do a regular ReadList in Byte format
then piece everything together myself.  It's not that bad in this case, but
still, YUK!

I sure hope I'm missing something obvious.

Any help appreciated.

Bruce D.





  • Prev by Date: Re: Creating a symmetric matrix
  • Next by Date: Re: How to get non-printing heads?
  • Previous by thread: cubic equation
  • Next by thread: Left/right justifying rotated text [ corrected ]