MathGroup Archive 2000

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

Search the Archive

binary import

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25939] binary import
  • From: "Bruyndonckx P." <pbruynd at vub.ac.be>
  • Date: Fri, 10 Nov 2000 02:40:17 -0500 (EST)
  • Organization: VUB/ULB Computing Centre
  • Sender: owner-wri-mathgroup at wolfram.com

I would like to use mathemtica to do some image processing.  I have 2D images stored in a file as binary 16 bit data.  When I
try to use the binaryimport, I seem to have two problems : 

1) to read 100,000 binary 16 bit numbers, it takes about 255 seconds, only 392 numbers/s.  Why is this so terribly slow ???
2) When I compare the memory in use (MemoryInUse[] command) before and after I use the BinaryImport command, it seems that I
need about 892,000 bytes to store these 100,000 number, ie nearly 9 bytes per 16 bit number.  Why is MAthematica so
inefficient in storing a list of binary numbers ?  Or does it use memory for some other purpose.

When I used the command ReadListBinary it takes 320  seconds to read 100,000 16 bit numbers. 

Does anybody have a workable solution, memory wise as well as time wise ?

Thanks


  • Prev by Date: Re: Ordering polynomials from highest to lowest order
  • Next by Date: LeafCount
  • Previous by thread: Re: how to differentiate a list?
  • Next by thread: Re: binary import