FEDRA emulsion software from the OPERA Collaboration
bscan_ds.h
Go to the documentation of this file.
1 #ifndef _BSCAN_DATA_STRUCTURES_
2 #define _BSCAN_DATA_STRUCTURES_
3 
4 #pragma pack(push)
5 #pragma pack(1)
6 
7 #include "id.h"
8 #include "Cluster.h"
9 #include "Track.h"
10 #include "FlatTrack.h"
11 #include "TVectors.h"
12 
13 #define BULK_TRACK_SECTION 1
14 #define BULK_FIELD_SECTION 3
15 #define BULK_CLUSTER_SECTION 4
16 #define BULK_IMAGE_SECTION 5
17 #define BULK_GRAIN_SECTION 6
18 #define BULK_IMAGEPRED_SECTION 7
19 #define BULK_CLUSTERPRED_SECTION 8
20 #define BULK_BLACKTRACK_SECTION 10
21 #define BULK_BLACKSTRIP_SECTION 11
22 
23 #define BULK_DATA_BYTES 0x20
24 #define BULK_HEADER_BYTES 0x40
25 
26 #define BULK_OLD_HEADER_TYPE 0X10
27 #define BULK_OLD2_HEADER_TYPE 0X20
28 #define BULK_HEADER_TYPE 0X40
29 
30 #define BULK_COMPRESSION_NULL 0
31 #define BULK_COMPRESSION_METHOD 0x100
32 
33 #define BULK_COMPRESSION_GRAINS_DIFF (BULK_COMPRESSION_METHOD + 1)
34 
35 typedef struct
36 {
39  int Frames;
40  float YPos, ZPos;
41  struct
42  {
43  float TopExt;
44  float TopInt;
45  float BottomInt;
46  float BottomExt;
47  } RelevantZs;
48  float ImageMat[2][2];
50  float YCenter, ZCenter;
52 
53 typedef struct
54 {
57  int Width, Height;
58  int Frames;
59  float YPos, ZPos;
60  struct
61  {
62  float TopExt;
63  float TopInt;
64  float BottomInt;
65  float BottomExt;
66  } RelevantZs;
67  float ImageMat[2][2];
68  float YCenter, ZCenter;
70 
71 typedef struct
72 {
75  float YPos, ZPos;
76  float YSlope, ZSlope;
81  int TCount[2];
82  int BTCount[2];
84  int FCount;
85  struct
86  {
87  float TopExt;
88  float TopInt;
89  float BottomInt;
90  float BottomExt;
91  } RelevantZs;
93 
94 typedef struct
95 {
96  float Z;
97  BYTE *pImage;
99 
100 typedef struct
101 {
102  float Z;
103  int Count;
106 
107 typedef struct
108 {
112 
113 typedef struct
114 {
118 
119 typedef struct
120 {
123  Track *pTracks[2];
124  FlatTrack *pFlatTracks[2];
125  } IO_BULK_Tracks;
126 
127 typedef struct
128 {
129  unsigned Size;
131 
132 typedef struct
133 {
138 
139 typedef struct
140 {
141  struct t_Coding
142  {
143  float Base;
145  unsigned char Bits;
146  } XCoding, YCoding, ZCoding;
148 
149 #pragma pack(pop)
150 
151 #endif
Definition: Track.h:10
Definition: bscan_ds.h:36
IO_Header Type
Definition: bscan_ds.h:37
float BottomExt
Definition: bscan_ds.h:46
int MaxClusters
Definition: bscan_ds.h:49
float TopInt
Definition: bscan_ds.h:44
float YCenter
Definition: bscan_ds.h:50
float TopExt
Definition: bscan_ds.h:43
Identifier ID
Definition: bscan_ds.h:38
int Frames
Definition: bscan_ds.h:39
float BottomInt
Definition: bscan_ds.h:45
float YPos
Definition: bscan_ds.h:40
Definition: bscan_ds.h:101
int Count
Definition: bscan_ds.h:103
float Z
Definition: bscan_ds.h:102
Cluster * pClusters
Definition: bscan_ds.h:104
Definition: bscan_ds.h:95
BYTE * pImage
Definition: bscan_ds.h:97
float Z
Definition: bscan_ds.h:96
Definition: bscan_ds.h:54
float TopExt
Definition: bscan_ds.h:62
float TopInt
Definition: bscan_ds.h:63
int Height
Definition: bscan_ds.h:57
int Frames
Definition: bscan_ds.h:58
Identifier ID
Definition: bscan_ds.h:56
float YCenter
Definition: bscan_ds.h:68
float BottomInt
Definition: bscan_ds.h:64
float BottomExt
Definition: bscan_ds.h:65
float YPos
Definition: bscan_ds.h:59
IO_Header Type
Definition: bscan_ds.h:55
Definition: bscan_ds.h:72
int CodingMode
Definition: bscan_ds.h:83
IO_Header Type
Definition: bscan_ds.h:73
float YPos
Definition: bscan_ds.h:75
float TopInt
Definition: bscan_ds.h:88
float BottomExt
Definition: bscan_ds.h:90
float GlobalSlopeTolerance
Definition: bscan_ds.h:78
float BottomInt
Definition: bscan_ds.h:89
int FitCorrectionDataSize
Definition: bscan_ds.h:80
Identifier ID
Definition: bscan_ds.h:74
float GoodSlopeTolerance
Definition: bscan_ds.h:79
float YSlope
Definition: bscan_ds.h:76
float SideSlopeTolerance
Definition: bscan_ds.h:77
float TopExt
Definition: bscan_ds.h:87
int FCount
Definition: bscan_ds.h:84
Definition: Cluster.h:8
Definition: FlatTrack.h:24
Definition: bscan_ds.h:114
BULK_ClustersPlaneInfo * pPlanes
Definition: bscan_ds.h:116
BULK_ClustersDumpHeader Hdr
Definition: bscan_ds.h:115
Definition: bscan_ds.h:128
unsigned Size
Definition: bscan_ds.h:129
unsigned char Bits
Definition: bscan_ds.h:145
Definition: bscan_ds.h:133
float TransversePrecision
Definition: bscan_ds.h:135
IO_BULK_Compressed_GrainSection_Header Hdr
Definition: bscan_ds.h:134
float DepthPrecision
Definition: bscan_ds.h:136
Definition: bscan_ds.h:108
BULK_PhotoSeqHeader Hdr
Definition: bscan_ds.h:109
BULK_PhotoInfo * pImages
Definition: bscan_ds.h:110
Definition: bscan_ds.h:120
BULK_TracksHeader Hdr
Definition: bscan_ds.h:121
BYTE * FieldHistory
Definition: bscan_ds.h:122
Definition: id.h:13
Definition: AcqPlateChanger.h:31