-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathlibics_data.c
182 lines (160 loc) · 6.04 KB
/
libics_data.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/*
* libics: Image Cytometry Standard file reading and writing.
*
* Copyright 2015-2019:
* Scientific Volume Imaging Holding B.V.
* Hilversum, The Netherlands.
* https://www.svi.nl
*
* Contact: [email protected]
*
* Copyright (C) 2000-2013 Cris Luengo and others
*
* Large chunks of this library written by
* Bert Gijsbers
* Dr. Hans T.M. van der Voort
* And also Damir Sudar, Geert van Kempen, Jan Jitze Krol,
* Chiel Baarslag and Fons Laan.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* FILE : libics_data.c
*
* This file declares some data structures used when reading and
* writing the ICS headers.
*/
#include "libics_intern.h"
Ics_Symbol G_CatSymbols[] =
{
{ "source", ICSTOK_SOURCE},
{ "layout", ICSTOK_LAYOUT},
{ "representation", ICSTOK_REPRES},
{ "parameter", ICSTOK_PARAM},
{ ICS_HISTORY, ICSTOK_HISTORY}, /* Don't want duplicate strings... */
{ "sensor", ICSTOK_SENSOR},
{ "end", ICSTOK_END }
};
Ics_Symbol G_SubCatSymbols[] =
{
{"file", ICSTOK_FILE},
{"offset", ICSTOK_OFFSET},
{"parameters", ICSTOK_PARAMS},
{"order", ICSTOK_ORDER},
{"sizes", ICSTOK_SIZES},
{"coordinates", ICSTOK_COORD},
{"significant_bits", ICSTOK_SIGBIT},
{"format", ICSTOK_FORMAT},
{"sign", ICSTOK_SIGN},
{"compression", ICSTOK_COMPR},
{"byte_order", ICSTOK_BYTEO},
{"origin", ICSTOK_ORIGIN},
{"scale", ICSTOK_SCALE},
{"units", ICSTOK_UNITS},
{"labels", ICSTOK_LABELS},
{"SCIL_TYPE", ICSTOK_SCILT},
{"type", ICSTOK_TYPE},
{"model", ICSTOK_MODEL},
{"s_params", ICSTOK_SPARAMS},
{"s_states", ICSTOK_SSTATES}
};
Ics_Symbol G_SubSubCatSymbols[] =
{
{"Channels", ICSTOK_CHANS},
{"Detectors", ICSTOK_DETECTORS},
{"ImagingDirection", ICSTOK_IMDIR},
{"NumAperture", ICSTOK_NUMAPER},
{"ObjectiveQuality", ICSTOK_OBJQ},
{"RefrInxMedium", ICSTOK_REFRIME},
{"RefrInxLensMedium", ICSTOK_REFRILM},
{"PinholeRadius", ICSTOK_PINHRAD},
{"IllPinholeRadius", ICSTOK_ILLPINHRAD},
{"PinholeSpacing", ICSTOK_PINHSPA},
{"ExcitationBeamFill", ICSTOK_EXBFILL},
{"LambdaEx", ICSTOK_LAMBDEX},
{"LambdaEm", ICSTOK_LAMBDEM},
{"ExPhotonCnt", ICSTOK_PHOTCNT},
{"InterFacePrimary", ICSTOK_IFACE1},
{"InterFaceSecondary", ICSTOK_IFACE2},
{"Description", ICSTOK_DESCRIPTION},
{"DetectorMagnif", ICSTOK_DETMAG},
{"DetectorPPU", ICSTOK_DETPPU},
{"DetectorBaseline", ICSTOK_DETBASELINE},
{"DetectorLineAvgCnt", ICSTOK_DETLNAVGCNT},
{"DetectorNoiseGain", ICSTOK_DETNOISEGAIN},
{"DetectorOffset", ICSTOK_DETOFFSET},
{"DetectorSensitivity", ICSTOK_DETSENS},
{"DetectorRadius", ICSTOK_DETRADIUS},
{"DetectorScale", ICSTOK_DETSCALE},
{"DetectorStretch", ICSTOK_DETSTRETCH},
{"DetectorRot", ICSTOK_DETROT},
{"DetectorMirror", ICSTOK_DETMIRROR},
{"DetectorModel", ICSTOK_DETMODEL},
{"DetectorReduceHist", ICSTOK_DETREDUCEHIST},
{"STEDDeplMode", ICSTOK_STEDDEPLMODE},
{"STEDLambda", ICSTOK_STEDLAMBDA},
{"STEDSatFactor", ICSTOK_STEDSATFACTOR},
{"STEDImmFraction", ICSTOK_STEDIMMFRACTION},
{"STEDVPPM", ICSTOK_STEDVPPM},
{"SPIMExcType", ICSTOK_SPIMEXCTYPE},
{"SPIMFillFactor", ICSTOK_SPIMFILLFACTOR},
{"SPIMPlaneNA", ICSTOK_SPIMPLANENA},
{"SPIMPlaneGaussWidth", ICSTOK_SPIMPLANEGAUSSWIDTH},
{"SPIMPlanePropDir", ICSTOK_SPIMPLANEPROPDIR},
{"SPIMPlaneCenterOff", ICSTOK_SPIMPLANECENTEROFF},
{"SPIMPlaneFocusOff", ICSTOK_SPIMPLANEFOCUSOF},
{"ScatterModel", ICSTOK_SCATTERMODEL},
{"ScatterFreePath", ICSTOK_SCATTERFREEPATH},
{"ScatterRelContrib", ICSTOK_SCATTERRELCONTRIB},
{"ScatterBlurring", ICSTOK_SCATTERBLURRING}
};
Ics_Symbol G_ValueSymbols[] =
{
{"uncompressed", ICSTOK_COMPR_UNCOMPRESSED},
{"compress", ICSTOK_COMPR_COMPRESS},
{"gzip", ICSTOK_COMPR_GZIP},
{"integer", ICSTOK_FORMAT_INTEGER},
{"real", ICSTOK_FORMAT_REAL},
{"float", ICSTOK_FORMAT_REAL}, /* CAUTION: this makes this list
one longer than expected */
{"complex", ICSTOK_FORMAT_COMPLEX},
{"signed", ICSTOK_SIGN_SIGNED},
{"unsigned", ICSTOK_SIGN_UNSIGNED},
{"default", ICSTOK_STATE_DEFAULT},
{"estimated", ICSTOK_STATE_ESTIMATED},
{"reported", ICSTOK_STATE_REPORTED},
{"verified", ICSTOK_STATE_VERIFIED},
};
Ics_SymbolList G_Categories =
{
ICSTOK_LASTMAIN,
G_CatSymbols
};
Ics_SymbolList G_SubCategories =
{
ICSTOK_LASTSUB - ICSTOK_FIRSTSUB - 1,
G_SubCatSymbols
};
Ics_SymbolList G_SubSubCategories =
{
ICSTOK_LASTSUBSUB - ICSTOK_FIRSTSUBSUB - 1,
G_SubSubCatSymbols
};
Ics_SymbolList G_Values =
{
ICSTOK_LASTVALUE - ICSTOK_FIRSTVALUE - 1 + 1, /* See above: this list is one
longer than expected. */
G_ValueSymbols
};