GoWebScan API
GoWebScanCalNode.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanCalNode.h
3 * @brief Declares a GoWebScanCalNode object.
4 *
5 * @internal
6 * Copyright (C) 2017-2026 by LMI Technologies Inc.
7 * Licensed under the MIT License.
8 * Redistributed files must retain the above copyright notice.
9 */
10 
11 #ifndef GO_WEB_SCAN_CAL_NODE_H
12 #define GO_WEB_SCAN_CAL_NODE_H
13 
15 
16 /**
17 * @class GoWebScanCalNode
18 * @extends kObject
19 * @ingroup GoWebScanSdk-Calibration
20 * @brief Represents a container for node-level system calibration data. Refer to GoWebScanCal
21 * for a description of system calibration.
22 * @see GoWebScanCal
23 */
25 
26 // Forward declaration
27 typedef kObject GoWebScanCal;
28 
29 /**
30  * Constructs a GoWebScanCalNode object.
31  *
32  * @public @memberof GoWebScanCalNode
33  * @param node Receives the constructed GoWebScanCalNode object.
34  * @param cal System calibration object that the node is part of.
35  * @param allocator Memory allocator (or kNULL for default).
36  * @return Operation status.
37  */
38 GoWebScanFx(kStatus) GoWebScanCalNode_Construct(GoWebScanCalNode* node, GoWebScanCal cal, kAlloc allocator);
39 
40 /**
41  * Gets the system plane the node is located in.
42  *
43  * @public @memberof GoWebScanCalNode
44  * @param node GoWebScanCalNode object.
45  * @return System plane.
46  */
48 
49 /**
50 * Gets the column the node is located in.
51 *
52 * @public @memberof GoWebScanCalNode
53 * @param node GoWebScanCalNode object.
54 * @return Column index of node.
55 * @see GoWebScanConfigNode_Column
56 */
58 
59 /**
60 * Gets the sensor ID of the node. For systems with vision sensors, this will be the ID
61 * of the connected profile sensor.
62 *
63 * @public @memberof GoWebScanCalNode
64 * @param node GoWebScanCalNode object.
65 * @return Device ID of node.
66 */
68 
69 /**
70 * Gets the bank ID of the node. This is the index with respect to the sensor.
71 *
72 * @public @memberof GoWebScanCalNode
73 * @param node GoWebScanCalNode object.
74 * @return Bank ID of node.
75 */
77 
78 /**
79  * Sets the X offset of the node in mils. This is only used when detection of locators is
80  * enabled during vision calibration, otherwise the offset is 0.
81  *
82  * @public @memberof GoWebScanCalNode
83  * @param node GoWebScanCalNode object.
84  * @param xOffset X offset (mils).
85  * @return Operation status.
86  */
87 GoWebScanFx(kStatus) GoWebScanCalNode_SetXOffset(GoWebScanCalNode node, k32s xOffset);
88 
89 /**
90 * Gets the X offset of the node in mils. This is only used when detection of locators is
91 * enabled during vision calibration, otherwise the offset is 0.
92 *
93 * @public @memberof GoWebScanCalNode
94 * @param node GoWebScanCalNode object.
95 * @return X offset (mils).
96 */
98 
99 /**
100  * Gets the array of profile Y offsets, which represents alignment offsets in Y per spot.
101  *
102  * @public @memberof GoWebScanCalNode
103  * @param node GoWebScanCalNode object.
104  * @return Array of profile Y offsets. Type k32s.
105  */
107 
108 /**
109  * Gets the array of profile Z offsets, which represents alignment offsets in Z per spot.
110  *
111  * @public @memberof GoWebScanCalNode
112  * @param node GoWebScanCalNode object.
113  * @return Array of profile Z offsets. Type k16s.
114  */
116 
117 /**
118  * Gets the array of vision Y offsets, which represents alignment offsets in Y per column of
119  * the vision image.
120  *
121  * @public @memberof GoWebScanCalNode
122  * @param node GoWebScanCalNode object.
123  * @return Array of vision Y offsets. Type k32s.
124  */
126 
127 /**
128  * Gets the array of vision red gains, which represent correction gains to produce a balanced
129  * white image. Gains are for each pixel of the vision image.
130  *
131  * @public @memberof GoWebScanCalNode
132  * @param node GoWebScanCalNode object.
133  * @return Array of vision red gains. Type k64f.
134  */
136 
137 /**
138  * Gets the array of vision green gains, which represent correction gains to produce a balanced
139  * white image. Gains are for each pixel of the vision image.
140  *
141  * @public @memberof GoWebScanCalNode
142  * @param node GoWebScanCalNode object.
143  * @return Array of vision green gains. Type k64f.
144  */
146 
147 /**
148  * Gets the array of vision blue gains, which represent correction gains to produce a balanced
149  * white image. Gains are for each pixel of the vision image.
150  *
151  * @public @memberof GoWebScanCalNode
152  * @param node GoWebScanCalNode object.
153  * @return Array of vision blue gains. Type k64f.
154  */
156 
157 /**
158  * Sets the array of profile Y offsets, which represents alignment offsets in Y per spot.
159  *
160  * @public @memberof GoWebScanCalNode
161  * @param node GoWebScanCalNode object.
162  * @param offsets Array of profile Y offsets. Type k32s.
163  * @return Operation status.
164  */
166 
167 /**
168  * Sets the array of profile Z offsets, which represents alignment offsets in Z per spot.
169  *
170  * @public @memberof GoWebScanCalNode
171  * @param node GoWebScanCalNode object.
172  * @param offsets Array of profile Z offsets. Type k16s.
173  * @return Operation status.
174  */
176 
177 /**
178  * Sets the array of vision Y offsets, which represents alignment offsets in Y per column of
179  * the vision image.
180  *
181  * @public @memberof GoWebScanCalNode
182  * @param node GoWebScanCalNode object.
183  * @param offsets Array of vision Y offsets. Type k32s.
184  * @return Operation status.
185  */
187 
188 /**
189  * Update the array of vision red gains, which represent correction gains to produce a balanced
190  * white image. Gains are for each pixel of the vision image. The gains are compressed to 8 bit
191  * values on a logarithmic scale, and therefore may not match the input values directly.
192  *
193  * @public @memberof GoWebScanCalNode
194  * @param node GoWebScanCalNode object.
195  * @param gains Array of vision red gains. Type k64f.
196  * @return Operation status.
197  */
199 
200 /**
201  * Update the array of vision green gains, which represent correction gains to produce a balanced
202  * white image. Gains are for each pixel of the vision image. The gains are compressed to 8 bit
203  * values on a logarithmic scale, and therefore may not match the input values directly.
204  *
205  * @public @memberof GoWebScanCalNode
206  * @param node GoWebScanCalNode object.
207  * @param gains Array of vision green gains. Type k64f.
208  * @return Operation status.
209  */
211 
212 /**
213  * Update the array of vision blue gains, which represent correction gains to produce a balanced
214  * white image. Gains are for each pixel of the vision image. The gains are compressed to 8 bit
215  * values on a logarithmic scale, and therefore may not match the input values directly.
216  *
217  * @public @memberof GoWebScanCalNode
218  * @param node GoWebScanCalNode object.
219  * @param gains Array of vision blue gains. Type k64f.
220  * @return Operation status.
221  */
223 
224 /**
225  * Gets the color filter array type of the node (for vision only).
226  *
227  * @public @memberof GoWebScanCalNode
228  * @param node GoWebScanCalNode object.
229  * @return Color filter array type.
230  */
231 GoWebScanFx(kCfa) GoWebScanCalNode_Cfa(GoWebScanCalNode node);
232 
233 /**
234  * Sets the color filter array type of the node (for vision only).
235  *
236  * @public @memberof GoWebScanCalNode
237  * @param node GoWebScanCalNode object.
238  * @param cfa Color filter array type.
239  * @return Operation status.
240  */
241 GoWebScanFx(kStatus) GoWebScanCalNode_SetCfa(GoWebScanCalNode node, kCfa cfa);
242 
243 #include <GoWebScanSdk/GoWebScanCalNode.x.h>
244 
245 #endif
kCfa GoWebScanCalNode_Cfa(GoWebScanCalNode node)
Gets the color filter array type of the node (for vision only).
kArray2 GoWebScanCalNode_VisionBGains(GoWebScanCalNode node)
Gets the array of vision blue gains, which represent correction gains to produce a balanced white ima...
k32s GoWebScanCalNode_BankId(GoWebScanCalNode node)
Gets the bank ID of the node.
k32s GoWebScanCalNode_XOffset(GoWebScanCalNode node)
Gets the X offset of the node in mils.
k32s GoWebScanCalNode_Column(GoWebScanCalNode node)
Gets the column the node is located in.
Essential GoWebScan declarations.
kStatus GoWebScanCalNode_UpdateVisionGGains(GoWebScanCalNode node, kArray2 gains)
Update the array of vision green gains, which represent correction gains to produce a balanced white ...
kArray2 GoWebScanCalNode_VisionGGains(GoWebScanCalNode node)
Gets the array of vision green gains, which represent correction gains to produce a balanced white im...
kStatus GoWebScanCalNode_UpdateVisionRGains(GoWebScanCalNode node, kArray2 gains)
Update the array of vision red gains, which represent correction gains to produce a balanced white im...
kStatus GoWebScanCalNode_SetVisionYOffsets(GoWebScanCalNode node, kArray1 offsets)
Sets the array of vision Y offsets, which represents alignment offsets in Y per column of the vision ...
kStatus GoWebScanCalNode_SetXOffset(GoWebScanCalNode node, k32s xOffset)
Sets the X offset of the node in mils.
k32s GoWebScanCalNode_DeviceId(GoWebScanCalNode node)
Gets the sensor ID of the node.
kStatus GoWebScanCalNode_SetCfa(GoWebScanCalNode node, kCfa cfa)
Sets the color filter array type of the node (for vision only).
Represents a container for node-level system calibration data. Refer to GoWebScanCal for a descriptio...
kStatus GoWebScanCalNode_Construct(GoWebScanCalNode *node, GoWebScanCal cal, kAlloc allocator)
Constructs a GoWebScanCalNode object.
kStatus GoWebScanCalNode_SetProfileZOffsets(GoWebScanCalNode node, kArray1 offsets)
Sets the array of profile Z offsets, which represents alignment offsets in Z per spot.
kArray2 GoWebScanCalNode_VisionRGains(GoWebScanCalNode node)
Gets the array of vision red gains, which represent correction gains to produce a balanced white imag...
GoWebScanSystemPlane GoWebScanCalNode_Plane(GoWebScanCalNode node)
Gets the system plane the node is located in.
kStatus GoWebScanCalNode_SetProfileYOffsets(GoWebScanCalNode node, kArray1 offsets)
Sets the array of profile Y offsets, which represents alignment offsets in Y per spot.
Represents the top or bottom plane of the system.
kStatus GoWebScanCalNode_UpdateVisionBGains(GoWebScanCalNode node, kArray2 gains)
Update the array of vision blue gains, which represent correction gains to produce a balanced white i...
Represents a container for the system calibration. The system calibration corrects for mounting diffe...
kArray1 GoWebScanCalNode_VisionYOffsets(GoWebScanCalNode node)
Gets the array of vision Y offsets, which represents alignment offsets in Y per column of the vision ...
kArray1 GoWebScanCalNode_ProfileZOffsets(GoWebScanCalNode node)
Gets the array of profile Z offsets, which represents alignment offsets in Z per spot.
kArray1 GoWebScanCalNode_ProfileYOffsets(GoWebScanCalNode node)
Gets the array of profile Y offsets, which represents alignment offsets in Y per spot.