0
$\begingroup$

I have a 16-bit stack of images (428 x 684 pixels) in TIF format. The stack has 20,000 images, about ~780MB. When I import it to Mathematica in MacOS (i7, 16GB RAM, BigSur), it successfully imports the file. However, when I import it in a Windows machine (i7, 64GB RAM, Win Enterprise), the cell keeps running indefinitely. Both use Mathematica 12.1.1. The same thing happened when I tested with Mathematica 12.2.2 in another Windows machine (i7, 32GB RAM, WinPro).

To check if this is a file size issue, I modified the TIF file so it only has 2 images, and it managed to import in both Windows and MacOS.

Any insight on resolving this? Script used:

ClearAll["Global`*"]
NotebookDirectory[]; SetDirectory[NotebookDirectory[]]
imageraw = Import["sample.tif"];
Dimensions[imageraw]

Sample-image: sample.tif (~780 MB) and 2frame-sample-image: sample-short.tif

$\endgroup$
1
  • $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$
    – Michael E2
    Mar 9 at 3:21

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.