Open Binary Files

Tutorial on how to open binary files in ImageJ

  1. Get to know your file
    1. Say the file name is “recon1_724x724x193_float.dat”.
    2. It means the data is arranged in a 3-D matrix with a width of 724 elements, a height of 724 elements, and depth of 193 elements
    3. “float” means each element is a single-precision floating point number which is 4 bytes in length (or 32 bit).
  2. Go to ImageJ. From the drop down menu of “File”, select “Import”, and then select “Raw”

3. In the pop-up menu

    1. Image Type: choose 32-bit Real for single-precision floating point number
    2. Fill in the width
    3. Fill in the Height
    4. If there is an offset, please fill in; otherwise, leave 0
    5. Number of image is the depth of your 3-D matrix
    6. If there is a gap, please fill in; otherwise, leave 0
    7. Please check little-endian byte order. There are many conventions. Little-endian is used more often.