Changes for page Access data with ImageJ
Last modified by fwilde on 2018/12/18 12:01
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -3,10 +3,12 @@ 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- Readthefileheader"/}}Readthefile header=6 += {{id name="AccessdatawithImageJ-Importrawdata"/}}Import raw data = 7 7 8 - Eachimage contains aheaderconsisting of the information neededto open the binaryraw file. Toread the header open the first line of the dataset (e.g. with the {{code language="none"}}head{{/code}}commandin Linux or in aneditor). Theheader information is subdivided with underscore symbols, like e.g. {{code language="none"}}PC_2_U_2000_2000_{{/code}}. The firstitem describes on what kind of computer the data was generated. The second item shows the dimensionailtyof thedata(2 for animage). The next item is a letter(either B U I L or F ) and describesthe data type.A list ofte data types can be foundinthe table below.The lastitems give thelengthof thedataset in eachdimension. The total header lengthis not fixedandgenerallydependsonthe image dimensions.andcount all lettersuntil the carriage return.Add 2 tothis number(carriage returnhastwoletters)and this is the headerlength - e.g. {{code language="none"}}PC_2_U_2000_2000_{{/code}} has17 lettersansdthus resultsin a headerlength of 19.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. 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 + 10 10 |=((( 11 11 suffix 12 12 )))|=((( ... ... @@ -50,23 +50,10 @@ 50 50 F 51 51 ))) 52 52 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 - 59 59 = {{id name="AccessdatawithImageJ-UsetheImageJplugins"/}}Use the ImageJ plugins = 60 60 61 61 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. 62 62 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 - 70 70 = {{id name="AccessdatawithImageJ-Downloads"/}}Downloads = 71 71 72 72 {{panel titleBGColor="blue" title="ImageJ Plugins" borderColor="blue" titleColor="white"}} ... ... @@ -74,7 +74,7 @@ 74 74 75 75 [[attach:HandleExtraFileTypes.jar]] 76 76 77 -[[attach:read_dat.class]] 66 +[[read_dat.class>>attach:read_dat.class]] 78 78 79 79 **Source code:** 80 80
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -3748928 81 +37489284 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://confluence.desy.de/spaces/P5I/pages/3748928 8/Access data with ImageJ1 +https://confluence.desy.de/spaces/P5I/pages/37489284/Access data with ImageJ