[Date Index] [Thread Index] [Author Index]
Antw: Binary File Read in Mathematica 5 for Mac OSX
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.