1
$\begingroup$

I have a lot of binary images I would like to import into mathematica.

Each of them is 132kB (1024x1024) big. Like the following:binary image

As soon as I import it into Mathematica however and call ByteCount[image] the size increases to 1MB (8bit?). How can I prevent this? I do not have enough RAM to import that many 1MB images.

Best, Max

$\endgroup$
  • 1
    $\begingroup$ your 132k files are compressed. Since they are almost all black you might store the data as a SparseArray,but then you wont be able to view or process as an image. $\endgroup$ – george2079 May 19 '17 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.