Changes for page Access data with ImageJ

Last modified by fwilde on 2018/12/18 12:01

From version 7.1
edited by fwilde
on 2016/07/26 08:23
Change comment: There is no comment for this version
To version 8.1
edited by fwilde
on 2016/07/28 08:40
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -3,12 +3,10 @@
3 3  {{layout-cell}}
4 4  Currently, at P05 a generic data format is used to store raw and reconstructed data. Generally, 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.
5 5  
6 -= {{id name="AccessdatawithImageJ-Importrawdata"/}}Import raw data =
6 += {{id name="AccessdatawithImageJ-Readthefileheader"/}}Read the file header =
7 7  
8 -With ImageJ you can either import binary data directly, if you know the header length and format of of your image or you can use our plugins to open the file.
8 +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 {{code language="none"}}head{{/code}} command in Linux or in an editor). The header information is subdivided with underscore symbols, like e.g. {{code language="none"}}PC_2_U_2000_2000_{{/code}}. 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. {{code language="none"}}PC_2_U_2000_2000_{{/code}} has 17 letters ansd thus results in a header length of 19.
9 9  
10 -The header length is not fixed and generally depends on the image dimensions. Open the first line of the dataset (e.g. with the {{code language="none"}}head{{/code}} command in Linux) and count all letters until the carriage return. Add 2 to this number and this is the header length - e.g. {{code language="none"}}PC_2_U_2000_2000_{{/code}} results in a header length of 19.
11 -
12 12  |=(((
13 13  suffix
14 14  )))|=(((
... ... @@ -52,10 +52,23 @@
52 52  F
53 53  )))
54 54  
53 += {{id name="AccessdatawithImageJ-Importrawdatadirectly"/}}Import raw data directly =
54 +
55 +With ImageJ you can import binary data directly using {{code language="none"}}File > Import > Raw...{{/code}}. To import the raw data directly, read the header of the file you want to open, enter the according values and check the box {{code language="none"}}Little-endian byte order{{/code}}. You can choose to {{code language="none"}}Open all files in folder{{/code}} if you want to open a stack with all file in a folder. **Attention**: {{code language="none"}}Use virtual stack{{/code}} does not work with this kind of import. To open a virtual stack you need to use our plugins.
56 +
57 +[[image:attach:imagej_raw_import.png||height="250"]]
58 +
55 55  = {{id name="AccessdatawithImageJ-UsetheImageJplugins"/}}Use the ImageJ plugins =
56 56  
57 57  In order to read the P05 data with our plugin, you have at least to install the {{code language="none"}}read_dat.class{{/code}}. Simply copy the file into your local ImageJ plugins folder. If you want to be able to open the data with the standard {{code language="none"}}File -> Open...{{/code}} Menu button, you addtionally have to install the ##(% style="color: rgb(0,0,0);" %)HandeExtraFileTypes.jar(%%)##(% style="color: rgb(0,0,0);" %). With this plugin you can also import an image stack as a virtual stack.
58 58  
63 +{{info}}
64 +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.
65 +{{/info}}
66 +
67 +(% style="color: rgb(0,0,0);" %)
68 +
69 +
59 59  = {{id name="AccessdatawithImageJ-Downloads"/}}Downloads =
60 60  
61 61  {{panel titleBGColor="blue" title="ImageJ Plugins" borderColor="blue" titleColor="white"}}
... ... @@ -63,7 +63,7 @@
63 63  
64 64  [[attach:HandleExtraFileTypes.jar]]
65 65  
66 -[[read_dat.class>>attach:read_dat.class]]
77 +[[attach:read_dat.class]]
67 67  
68 68  **Source code:**
69 69  
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -37489284
1 +37489288
URL
... ... @@ -1,1 +1,1 @@
1 -https://confluence.desy.de/spaces/P5I/pages/37489284/Access data with ImageJ
1 +https://confluence.desy.de/spaces/P5I/pages/37489288/Access data with ImageJ