As of 2017, all images are stored in TIFF format. These can be easily viewed with many image viewers including ImageJ.
Until 2017 at P05 a generic data format was used to store raw and reconstructed data. This is a binary format in little endian byte order with different data types (uint16, real32, ...) and a header which describes the dataset (rows and columns, data format). This data can either be imported directly in ImageJ or loaded with our plugins.
Read the file header
Each image contains a header consisting of the information needed to open the binary raw file. To read the header open the first line of the dataset (e.g. with the
head command in Linux or in an editor). The header information is subdivided with underscore symbols, like e.g.
PC_2_U_2000_2000_. The first item describes on what kind of computer the data was generated. The second item shows the dimensionailty of the data (2 for an image). The next item is a letter (either B U I L or F ) and describes the data type. A list of te data types can be found in the table below. The last items give the length of the dataset in each dimension. The total header length is not fixed and generally depends on the image dimensions.and count all letters until the carriage return. Add 2 to this number (carriage return has two letters) and this is the header length - e.g.
PC_2_U_2000_2000_ has 17 letters ansd thus results in a header length of 19.
|suffix||ImageJ data type||header tag|
|.img .dar .ref||16 bit Unsigned||U|
|16 bit Signed||I|
|32 bit Signed||L|
|.sli .sin .sis||32 bit Real||F|
Import raw data directly
With ImageJ you can import binary data directly using
File > Import > Raw.... To import the raw data directly, read the header of the file you want to open, enter the values:
- Image type (see table ImageJ data type)
- Width and height (last two numbers in header)
- Offset to first image (i.e. header length)
and check the box
Little-endian byte order. You can choose to
Open all files in folder if you want to open a stack with all file in a folder. Attention:
Use virtual stack does not work with this kind of import. To open a virtual stack you need to use our plugins.
Use the ImageJ plugins
In order to read the P05 data with our plugin, you have at least to install the
read_dat.class. Simply copy the file into your local ImageJ plugins folder. If you want to be able to open the data with the standard
File -> Open... Menu button, you addtionally have to install the
HandeExtraFileTypes.class. With this plugin you can also import an image stack as a virtual stack.
There appear to be some issues with our plugins using Fiji (ImageJ with extended plugins). If you are using Fiji and encounter problems with our plugins try using ImageJ instead.
- No labels