Wiki source code of ImageJ plugins
Version 3.1 by fwilde on 2016/05/27 11:55
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
3.1 | 1 | {{layout}} |
2 | {{layout-section ac:type="two_right_sidebar"}} | ||
3 | {{layout-cell}} | ||
![]() |
1.1 | 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 | |||
6 | = {{id name="AccessdatawithImageJ-Importrawdata"/}}Import raw data = | ||
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. | ||
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 | |=((( | ||
13 | suffix | ||
14 | )))|=((( | ||
15 | data type | ||
16 | )))|=((( | ||
17 | header tag | ||
18 | ))) | ||
19 | |((( | ||
20 | |||
21 | )))|((( | ||
22 | 8 bit integer | ||
23 | )))|((( | ||
24 | B | ||
25 | ))) | ||
26 | |((( | ||
27 | .img .dar .ref | ||
28 | )))|((( | ||
29 | 16 bit unsigned integer | ||
30 | )))|((( | ||
31 | U | ||
32 | ))) | ||
33 | |((( | ||
34 | |||
35 | )))|((( | ||
36 | 16 bit integer | ||
37 | )))|((( | ||
38 | I | ||
39 | ))) | ||
40 | |((( | ||
41 | |||
42 | )))|((( | ||
43 | 32 bit integer | ||
44 | )))|((( | ||
45 | L | ||
46 | ))) | ||
47 | |((( | ||
48 | .sli .sin .sis | ||
49 | )))|((( | ||
50 | 32 bit float | ||
51 | )))|((( | ||
52 | F | ||
53 | ))) | ||
54 | |||
55 | = {{id name="AccessdatawithImageJ-UsetheImageJplugins"/}}Use the ImageJ plugins = | ||
56 | |||
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 | |||
![]() |
3.1 | 59 | |
![]() |
1.1 | 60 | |
![]() |
2.1 | 61 | {{panel titleBGColor="blue" title="ImageJ Plugins" borderColor="blue" titleColor="white"}} |
62 | [[attach:HandleExtraFileTypes.jar]] | ||
63 | |||
64 | [[attach:read_dat.class]] | ||
65 | {{/panel}} | ||
![]() |
3.1 | 66 | {{/layout-cell}} |
67 | |||
68 | {{layout-cell}} | ||
69 | |||
70 | |||
71 | {{toc/}} | ||
72 | {{/layout-cell}} | ||
73 | {{/layout-section}} | ||
74 | {{/layout}} |