MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlITKFiniteDifferenceFunctionConnect.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#pragma once
14
16// Include dll-specific settings.
18#include "mlITKMLBaseWrapper.h"
19
20#include <itkImage.h>
21#include <itkPoint.h>
22#include <itkVector.h>
23#include <itkFiniteDifferenceFunction.h>
24#include <itkPDEDeformableRegistrationFunction.h>
25#include <itkImageFunction.h>
26
27// Define voxel types.
28typedef itk::Vector<float, 2> Vox2DFloatVecType;
29typedef itk::Vector<float, 3> Vox3DFloatVecType;
30typedef itk::Vector<float, 4> Vox4DFloatVecType;
31typedef itk::Vector<float, 6> Vox6DFloatVecType;
32typedef itk::Vector<float, 8> Vox8DFloatVecType;
33
34typedef itk::Vector<double, 2> Vox2DDoubleVecType;
35typedef itk::Vector<double, 3> Vox3DDoubleVecType;
36typedef itk::Vector<double, 4> Vox4DDoubleVecType;
37typedef itk::Vector<double, 6> Vox6DDoubleVecType;
38typedef itk::Vector<double, 8> Vox8DDoubleVecType;
39
40// Define images using the upper voxel types.
41typedef itk::Image<MLint8, 2> Img2OfVoxInt8Type;
42typedef itk::Image<MLint16, 2> Img2OfVoxInt16Type;
43typedef itk::Image<MLint32, 2> Img2OfVoxInt32Type;
44typedef itk::Image<MLuint8, 2> Img2OfVoxUInt8Type;
45typedef itk::Image<MLuint16, 2> Img2OfVoxUInt16Type;
46typedef itk::Image<MLuint32, 2> Img2OfVoxUInt32Type;
47typedef itk::Image<MLfloat, 2> Img2OfVoxFloatType;
48typedef itk::Image<MLdouble, 2> Img2OfVoxDoubleType;
49typedef itk::Image<Vox2DFloatVecType, 2> Img2OfVox2DFloatVecType;
50typedef itk::Image<Vox2DDoubleVecType, 2> Img2OfVox2DDoubleVecType;
51typedef itk::Image<Vox3DFloatVecType, 2> Img2OfVox3DFloatVecType;
52typedef itk::Image<Vox3DDoubleVecType, 2> Img2OfVox3DDoubleVecType;
53typedef itk::Image<Vox4DFloatVecType, 2> Img2OfVox4DFloatVecType;
54typedef itk::Image<Vox4DDoubleVecType, 2> Img2OfVox4DDoubleVecType;
55typedef itk::Image<Vox6DFloatVecType, 2> Img2OfVox6DFloatVecType;
56typedef itk::Image<Vox6DDoubleVecType, 2> Img2OfVox6DDoubleVecType;
57typedef itk::Image<Vox8DFloatVecType, 2> Img2OfVox8DFloatVecType;
58typedef itk::Image<Vox8DDoubleVecType, 2> Img2OfVox8DDoubleVecType;
59
60typedef itk::Image<MLint8, 3> Img3OfVoxInt8Type;
61typedef itk::Image<MLint16, 3> Img3OfVoxInt16Type;
62typedef itk::Image<MLint32, 3> Img3OfVoxInt32Type;
63typedef itk::Image<MLuint8, 3> Img3OfVoxUInt8Type;
64typedef itk::Image<MLuint16, 3> Img3OfVoxUInt16Type;
65typedef itk::Image<MLuint32, 3> Img3OfVoxUInt32Type;
66typedef itk::Image<MLfloat, 3> Img3OfVoxFloatType;
67typedef itk::Image<MLdouble, 3> Img3OfVoxDoubleType;
68typedef itk::Image<Vox2DFloatVecType, 3> Img3OfVox2DFloatVecType;
69typedef itk::Image<Vox2DDoubleVecType, 3> Img3OfVox2DDoubleVecType;
70typedef itk::Image<Vox3DFloatVecType, 3> Img3OfVox3DFloatVecType;
71typedef itk::Image<Vox3DDoubleVecType, 3> Img3OfVox3DDoubleVecType;
72typedef itk::Image<Vox4DFloatVecType, 3> Img3OfVox4DFloatVecType;
73typedef itk::Image<Vox4DDoubleVecType, 3> Img3OfVox4DDoubleVecType;
74typedef itk::Image<Vox6DFloatVecType, 3> Img3OfVox6DFloatVecType;
75typedef itk::Image<Vox6DDoubleVecType, 3> Img3OfVox6DDoubleVecType;
76typedef itk::Image<Vox8DFloatVecType, 3> Img3OfVox8DFloatVecType;
77typedef itk::Image<Vox8DDoubleVecType, 3> Img3OfVox8DDoubleVecType;
78
79
80// Define difference functions on the upperly defined image types.
81typedef itk::FiniteDifferenceFunction<Img2OfVoxInt8Type> FiniteDifferenceFunctionImg2OfVoxInt8Type;
82typedef itk::FiniteDifferenceFunction<Img2OfVoxInt16Type> FiniteDifferenceFunctionImg2OfVoxInt16Type;
83typedef itk::FiniteDifferenceFunction<Img2OfVoxInt32Type> FiniteDifferenceFunctionImg2OfVoxInt32Type;
84typedef itk::FiniteDifferenceFunction<Img2OfVoxUInt8Type> FiniteDifferenceFunctionImg2OfVoxUInt8Type;
85typedef itk::FiniteDifferenceFunction<Img2OfVoxUInt16Type> FiniteDifferenceFunctionImg2OfVoxUInt16Type;
86typedef itk::FiniteDifferenceFunction<Img2OfVoxUInt32Type> FiniteDifferenceFunctionImg2OfVoxUInt32Type;
87typedef itk::FiniteDifferenceFunction<Img2OfVoxFloatType> FiniteDifferenceFunctionImg2OfVoxFloatType;
88typedef itk::FiniteDifferenceFunction<Img2OfVoxDoubleType> FiniteDifferenceFunctionImg2OfVoxDoubleType;
89typedef itk::FiniteDifferenceFunction<Img2OfVox2DFloatVecType> FiniteDifferenceFunctionImg2OfVox2DFloatVecType;
90typedef itk::FiniteDifferenceFunction<Img2OfVox2DDoubleVecType> FiniteDifferenceFunctionImg2OfVox2DDoubleVecType;
91typedef itk::FiniteDifferenceFunction<Img2OfVox3DFloatVecType> FiniteDifferenceFunctionImg2OfVox3DFloatVecType;
92typedef itk::FiniteDifferenceFunction<Img2OfVox3DDoubleVecType> FiniteDifferenceFunctionImg2OfVox3DDoubleVecType;
93typedef itk::FiniteDifferenceFunction<Img2OfVox4DFloatVecType> FiniteDifferenceFunctionImg2OfVox4DFloatVecType;
94typedef itk::FiniteDifferenceFunction<Img2OfVox4DDoubleVecType> FiniteDifferenceFunctionImg2OfVox4DDoubleVecType;
95typedef itk::FiniteDifferenceFunction<Img2OfVox6DFloatVecType> FiniteDifferenceFunctionImg2OfVox6DFloatVecType;
96typedef itk::FiniteDifferenceFunction<Img2OfVox6DDoubleVecType> FiniteDifferenceFunctionImg2OfVox6DDoubleVecType;
97typedef itk::FiniteDifferenceFunction<Img2OfVox8DFloatVecType> FiniteDifferenceFunctionImg2OfVox8DFloatVecType;
98typedef itk::FiniteDifferenceFunction<Img2OfVox8DDoubleVecType> FiniteDifferenceFunctionImg2OfVox8DDoubleVecType;
99
100typedef itk::FiniteDifferenceFunction<Img3OfVoxInt8Type> FiniteDifferenceFunctionImg3OfVoxInt8Type;
101typedef itk::FiniteDifferenceFunction<Img3OfVoxInt16Type> FiniteDifferenceFunctionImg3OfVoxInt16Type;
102typedef itk::FiniteDifferenceFunction<Img3OfVoxInt32Type> FiniteDifferenceFunctionImg3OfVoxInt32Type;
103typedef itk::FiniteDifferenceFunction<Img3OfVoxUInt8Type> FiniteDifferenceFunctionImg3OfVoxUInt8Type;
104typedef itk::FiniteDifferenceFunction<Img3OfVoxUInt16Type> FiniteDifferenceFunctionImg3OfVoxUInt16Type;
105typedef itk::FiniteDifferenceFunction<Img3OfVoxUInt32Type> FiniteDifferenceFunctionImg3OfVoxUInt32Type;
106typedef itk::FiniteDifferenceFunction<Img3OfVoxFloatType> FiniteDifferenceFunctionImg3OfVoxFloatType;
107typedef itk::FiniteDifferenceFunction<Img3OfVoxDoubleType> FiniteDifferenceFunctionImg3OfVoxDoubleType;
108typedef itk::FiniteDifferenceFunction<Img3OfVox2DFloatVecType> FiniteDifferenceFunctionImg3OfVox2DFloatVecType;
109typedef itk::FiniteDifferenceFunction<Img3OfVox2DDoubleVecType> FiniteDifferenceFunctionImg3OfVox2DDoubleVecType;
110typedef itk::FiniteDifferenceFunction<Img3OfVox3DFloatVecType> FiniteDifferenceFunctionImg3OfVox3DFloatVecType;
111typedef itk::FiniteDifferenceFunction<Img3OfVox3DDoubleVecType> FiniteDifferenceFunctionImg3OfVox3DDoubleVecType;
112typedef itk::FiniteDifferenceFunction<Img3OfVox4DFloatVecType> FiniteDifferenceFunctionImg3OfVox4DFloatVecType;
113typedef itk::FiniteDifferenceFunction<Img3OfVox4DDoubleVecType> FiniteDifferenceFunctionImg3OfVox4DDoubleVecType;
114typedef itk::FiniteDifferenceFunction<Img3OfVox6DFloatVecType> FiniteDifferenceFunctionImg3OfVox6DFloatVecType;
115typedef itk::FiniteDifferenceFunction<Img3OfVox6DDoubleVecType> FiniteDifferenceFunctionImg3OfVox6DDoubleVecType;
116typedef itk::FiniteDifferenceFunction<Img3OfVox8DFloatVecType> FiniteDifferenceFunctionImg3OfVox8DFloatVecType;
117typedef itk::FiniteDifferenceFunction<Img3OfVox8DDoubleVecType> FiniteDifferenceFunctionImg3OfVox8DDoubleVecType;
118
119typedef itk::PDEDeformableRegistrationFunction<Img3OfVoxFloatType, Img3OfVoxFloatType, Img3OfVox3DFloatVecType>
121
123
124//----------------------------------------------------------
129//----------------------------------------------------------
131{
132public:
133 //------------------------------------------------------------------------------
135 //------------------------------------------------------------------------------
137 {
138 // Initialize all pointers to NULL. Only those pointers are going to
139 // be defined which can be instantiated by the module exporting an
140 // object of this class.
141 m_FiniteDifferenceFunctionImg2OfVoxInt8Type = nullptr;
142 m_FiniteDifferenceFunctionImg2OfVoxInt16Type = nullptr;
143 m_FiniteDifferenceFunctionImg2OfVoxInt32Type = nullptr;
144 m_FiniteDifferenceFunctionImg2OfVoxUInt8Type = nullptr;
145 m_FiniteDifferenceFunctionImg2OfVoxUInt16Type = nullptr;
146 m_FiniteDifferenceFunctionImg2OfVoxUInt32Type = nullptr;
147 m_FiniteDifferenceFunctionImg2OfVoxFloatType = nullptr;
148 m_FiniteDifferenceFunctionImg2OfVoxDoubleType = nullptr;
149 m_FiniteDifferenceFunctionImg2OfVox2DFloatVecType = nullptr;
150 m_FiniteDifferenceFunctionImg2OfVox2DDoubleVecType = nullptr;
151 m_FiniteDifferenceFunctionImg2OfVox3DDoubleVecType = nullptr;
152 m_FiniteDifferenceFunctionImg2OfVox3DFloatVecType = nullptr;
153 m_FiniteDifferenceFunctionImg2OfVox4DDoubleVecType = nullptr;
154 m_FiniteDifferenceFunctionImg2OfVox4DFloatVecType = nullptr;
155 m_FiniteDifferenceFunctionImg2OfVox6DDoubleVecType = nullptr;
156 m_FiniteDifferenceFunctionImg2OfVox6DFloatVecType = nullptr;
157 m_FiniteDifferenceFunctionImg2OfVox8DDoubleVecType = nullptr;
158 m_FiniteDifferenceFunctionImg2OfVox8DFloatVecType = nullptr;
159
160 m_FiniteDifferenceFunctionImg3OfVoxInt8Type = nullptr;
161 m_FiniteDifferenceFunctionImg3OfVoxInt16Type = nullptr;
162 m_FiniteDifferenceFunctionImg3OfVoxInt32Type = nullptr;
163 m_FiniteDifferenceFunctionImg3OfVoxUInt8Type = nullptr;
164 m_FiniteDifferenceFunctionImg3OfVoxUInt16Type = nullptr;
165 m_FiniteDifferenceFunctionImg3OfVoxUInt32Type = nullptr;
166 m_FiniteDifferenceFunctionImg3OfVoxFloatType = nullptr;
167 m_FiniteDifferenceFunctionImg3OfVoxDoubleType = nullptr;
168 m_FiniteDifferenceFunctionImg3OfVox2DFloatVecType = nullptr;
169 m_FiniteDifferenceFunctionImg3OfVox2DDoubleVecType = nullptr;
170 m_FiniteDifferenceFunctionImg3OfVox3DFloatVecType = nullptr;
171 m_FiniteDifferenceFunctionImg3OfVox3DDoubleVecType = nullptr;
172 m_FiniteDifferenceFunctionImg3OfVox4DFloatVecType = nullptr;
173 m_FiniteDifferenceFunctionImg3OfVox4DDoubleVecType = nullptr;
174 m_FiniteDifferenceFunctionImg3OfVox6DFloatVecType = nullptr;
175 m_FiniteDifferenceFunctionImg3OfVox6DDoubleVecType = nullptr;
176 m_FiniteDifferenceFunctionImg3OfVox8DFloatVecType = nullptr;
177 m_FiniteDifferenceFunctionImg3OfVox8DDoubleVecType = nullptr;
178
179 m_PDEDeformableRegFunction3DF3DF3DFVType = nullptr;
180 }
181
182 //------------------------------------------------------------------------------
184 //------------------------------------------------------------------------------
185 FiniteDifferenceFunctionImg2OfVoxInt8Type ::Pointer
187 {
188 return m_FiniteDifferenceFunctionImg2OfVoxInt8Type;
189 }
190 FiniteDifferenceFunctionImg2OfVoxInt16Type ::Pointer
192 {
193 return m_FiniteDifferenceFunctionImg2OfVoxInt16Type;
194 }
195 FiniteDifferenceFunctionImg2OfVoxInt32Type ::Pointer
197 {
198 return m_FiniteDifferenceFunctionImg2OfVoxInt32Type;
199 }
200 FiniteDifferenceFunctionImg2OfVoxUInt8Type ::Pointer
202 {
203 return m_FiniteDifferenceFunctionImg2OfVoxUInt8Type;
204 }
205 FiniteDifferenceFunctionImg2OfVoxUInt16Type ::Pointer
207 {
208 return m_FiniteDifferenceFunctionImg2OfVoxUInt16Type;
209 }
210 FiniteDifferenceFunctionImg2OfVoxUInt32Type ::Pointer
212 {
213 return m_FiniteDifferenceFunctionImg2OfVoxUInt32Type;
214 }
215 FiniteDifferenceFunctionImg2OfVoxFloatType ::Pointer
217 {
218 return m_FiniteDifferenceFunctionImg2OfVoxFloatType;
219 }
220 FiniteDifferenceFunctionImg2OfVoxDoubleType ::Pointer
222 {
223 return m_FiniteDifferenceFunctionImg2OfVoxDoubleType;
224 }
225 FiniteDifferenceFunctionImg2OfVox2DFloatVecType ::Pointer
227 {
228 return m_FiniteDifferenceFunctionImg2OfVox2DFloatVecType;
229 }
230 FiniteDifferenceFunctionImg2OfVox2DDoubleVecType ::Pointer
232 {
233 return m_FiniteDifferenceFunctionImg2OfVox2DDoubleVecType;
234 }
235 FiniteDifferenceFunctionImg2OfVox3DFloatVecType ::Pointer
237 {
238 return m_FiniteDifferenceFunctionImg2OfVox3DFloatVecType;
239 }
240 FiniteDifferenceFunctionImg2OfVox3DDoubleVecType ::Pointer
242 {
243 return m_FiniteDifferenceFunctionImg2OfVox3DDoubleVecType;
244 }
245 FiniteDifferenceFunctionImg2OfVox4DFloatVecType ::Pointer
247 {
248 return m_FiniteDifferenceFunctionImg2OfVox4DFloatVecType;
249 }
250 FiniteDifferenceFunctionImg2OfVox4DDoubleVecType ::Pointer
252 {
253 return m_FiniteDifferenceFunctionImg2OfVox4DDoubleVecType;
254 }
255 FiniteDifferenceFunctionImg2OfVox6DFloatVecType ::Pointer
257 {
258 return m_FiniteDifferenceFunctionImg2OfVox6DFloatVecType;
259 }
260 FiniteDifferenceFunctionImg2OfVox6DDoubleVecType ::Pointer
262 {
263 return m_FiniteDifferenceFunctionImg2OfVox6DDoubleVecType;
264 }
265 FiniteDifferenceFunctionImg2OfVox8DFloatVecType ::Pointer
267 {
268 return m_FiniteDifferenceFunctionImg2OfVox8DFloatVecType;
269 }
270 FiniteDifferenceFunctionImg2OfVox8DDoubleVecType ::Pointer
272 {
273 return m_FiniteDifferenceFunctionImg2OfVox8DDoubleVecType;
274 }
275
276 FiniteDifferenceFunctionImg3OfVoxInt8Type ::Pointer
278 {
279 return m_FiniteDifferenceFunctionImg3OfVoxInt8Type;
280 }
281 FiniteDifferenceFunctionImg3OfVoxInt16Type ::Pointer
283 {
284 return m_FiniteDifferenceFunctionImg3OfVoxInt16Type;
285 }
286 FiniteDifferenceFunctionImg3OfVoxInt32Type ::Pointer
288 {
289 return m_FiniteDifferenceFunctionImg3OfVoxInt32Type;
290 }
291 FiniteDifferenceFunctionImg3OfVoxUInt8Type ::Pointer
293 {
294 return m_FiniteDifferenceFunctionImg3OfVoxUInt8Type;
295 }
296 FiniteDifferenceFunctionImg3OfVoxUInt16Type ::Pointer
298 {
299 return m_FiniteDifferenceFunctionImg3OfVoxUInt16Type;
300 }
301 FiniteDifferenceFunctionImg3OfVoxUInt32Type ::Pointer
303 {
304 return m_FiniteDifferenceFunctionImg3OfVoxUInt32Type;
305 }
306 FiniteDifferenceFunctionImg3OfVoxFloatType ::Pointer
308 {
309 return m_FiniteDifferenceFunctionImg3OfVoxFloatType;
310 }
311 FiniteDifferenceFunctionImg3OfVoxDoubleType ::Pointer
313 {
314 return m_FiniteDifferenceFunctionImg3OfVoxDoubleType;
315 }
316 FiniteDifferenceFunctionImg3OfVox2DFloatVecType ::Pointer
318 {
319 return m_FiniteDifferenceFunctionImg3OfVox2DFloatVecType;
320 }
321 FiniteDifferenceFunctionImg3OfVox2DDoubleVecType ::Pointer
323 {
324 return m_FiniteDifferenceFunctionImg3OfVox2DDoubleVecType;
325 }
326 FiniteDifferenceFunctionImg3OfVox3DFloatVecType ::Pointer
328 {
329 return m_FiniteDifferenceFunctionImg3OfVox3DFloatVecType;
330 }
331 FiniteDifferenceFunctionImg3OfVox3DDoubleVecType ::Pointer
333 {
334 return m_FiniteDifferenceFunctionImg3OfVox3DDoubleVecType;
335 }
336 FiniteDifferenceFunctionImg3OfVox4DFloatVecType ::Pointer
338 {
339 return m_FiniteDifferenceFunctionImg3OfVox4DFloatVecType;
340 }
341 FiniteDifferenceFunctionImg3OfVox4DDoubleVecType ::Pointer
343 {
344 return m_FiniteDifferenceFunctionImg3OfVox4DDoubleVecType;
345 }
346 FiniteDifferenceFunctionImg3OfVox6DFloatVecType ::Pointer
348 {
349 return m_FiniteDifferenceFunctionImg3OfVox6DFloatVecType;
350 }
351 FiniteDifferenceFunctionImg3OfVox6DDoubleVecType ::Pointer
353 {
354 return m_FiniteDifferenceFunctionImg3OfVox6DDoubleVecType;
355 }
356 FiniteDifferenceFunctionImg3OfVox8DFloatVecType ::Pointer
358 {
359 return m_FiniteDifferenceFunctionImg3OfVox8DFloatVecType;
360 }
361 FiniteDifferenceFunctionImg3OfVox8DDoubleVecType ::Pointer
363 {
364 return m_FiniteDifferenceFunctionImg3OfVox8DDoubleVecType;
365 }
366
367 PDEDeformableRegFunction3DF3DF3DFVType ::Pointer GetFiniteDifferenceFunction(PDEDeformableRegFunction3DF3DF3DFVType*)
368 {
369 return m_PDEDeformableRegFunction3DF3DF3DFVType;
370 }
372
373 //------------------------------------------------------------------------------
379 //------------------------------------------------------------------------------
381 {
382 if (!outImg) {
383 return false;
384 }
385
386 // Get properties of output image and its data type. From those properties we need
387 // to determine whether the corresponding FiniteDifferenceFunctionType is available.
388 const MLDataType dt = outImg->getDataType();
389 const size_t numComps = MLTypeGetNumComponents(dt);
390 const MLint imgDim = outImg->getImageExtent().getExtDimension();
391
392 // If the pointer member for the specific dimension and data type is non NULL
393 // then return true, otherwise false.
395 if (2 == imgDim) {
396 if ((MLint8Type == dt) && m_FiniteDifferenceFunctionImg2OfVoxInt8Type) {
397 return true;
398 }
399 if ((MLint16Type == dt) && m_FiniteDifferenceFunctionImg2OfVoxInt16Type) {
400 return true;
401 }
402 if ((MLint32Type == dt) && m_FiniteDifferenceFunctionImg2OfVoxInt32Type) {
403 return true;
404 }
405 if ((MLuint8Type == dt) && m_FiniteDifferenceFunctionImg2OfVoxUInt8Type) {
406 return true;
407 }
408 if ((MLuint16Type == dt) && m_FiniteDifferenceFunctionImg2OfVoxUInt16Type) {
409 return true;
410 }
411 if ((MLuint32Type == dt) && m_FiniteDifferenceFunctionImg2OfVoxUInt32Type) {
412 return true;
413 }
414 if ((MLfloatType == dt) && m_FiniteDifferenceFunctionImg2OfVoxFloatType) {
415 return true;
416 }
417 if ((MLdoubleType == dt) && m_FiniteDifferenceFunctionImg2OfVoxDoubleType) {
418 return true;
419 }
420 if ((2 == numComps) && m_FiniteDifferenceFunctionImg2OfVox2DFloatVecType) {
421 return true;
422 }
423 if ((2 == numComps) && m_FiniteDifferenceFunctionImg2OfVox2DDoubleVecType) {
424 return true;
425 }
426 if ((3 == numComps) && m_FiniteDifferenceFunctionImg2OfVox3DFloatVecType) {
427 return true;
428 }
429 if ((3 == numComps) && m_FiniteDifferenceFunctionImg2OfVox3DDoubleVecType) {
430 return true;
431 }
432 if ((4 == numComps) && m_FiniteDifferenceFunctionImg2OfVox4DFloatVecType) {
433 return true;
434 }
435 if ((4 == numComps) && m_FiniteDifferenceFunctionImg2OfVox4DDoubleVecType) {
436 return true;
437 }
438 if ((6 == numComps) && m_FiniteDifferenceFunctionImg2OfVox6DFloatVecType) {
439 return true;
440 }
441 if ((6 == numComps) && m_FiniteDifferenceFunctionImg2OfVox6DDoubleVecType) {
442 return true;
443 }
444 if ((8 == numComps) && m_FiniteDifferenceFunctionImg2OfVox8DFloatVecType) {
445 return true;
446 }
447 if ((8 == numComps) && m_FiniteDifferenceFunctionImg2OfVox8DDoubleVecType) {
448 return true;
449 }
450 }
451 if (3 == imgDim) {
452 if ((MLint8Type == dt) && m_FiniteDifferenceFunctionImg3OfVoxInt8Type) {
453 return true;
454 }
455 if ((MLint16Type == dt) && m_FiniteDifferenceFunctionImg3OfVoxInt16Type) {
456 return true;
457 }
458 if ((MLint32Type == dt) && m_FiniteDifferenceFunctionImg3OfVoxInt32Type) {
459 return true;
460 }
461 if ((MLuint8Type == dt) && m_FiniteDifferenceFunctionImg3OfVoxUInt8Type) {
462 return true;
463 }
464 if ((MLuint16Type == dt) && m_FiniteDifferenceFunctionImg3OfVoxUInt16Type) {
465 return true;
466 }
467 if ((MLuint32Type == dt) && m_FiniteDifferenceFunctionImg3OfVoxUInt32Type) {
468 return true;
469 }
470 if ((MLfloatType == dt) && m_FiniteDifferenceFunctionImg3OfVoxFloatType) {
471 return true;
472 }
473 if ((MLdoubleType == dt) && m_FiniteDifferenceFunctionImg3OfVoxDoubleType) {
474 return true;
475 }
476 if ((2 == numComps) && m_FiniteDifferenceFunctionImg3OfVox2DFloatVecType) {
477 return true;
478 }
479 if ((2 == numComps) && m_FiniteDifferenceFunctionImg3OfVox2DDoubleVecType) {
480 return true;
481 }
482 if ((3 == numComps) && m_FiniteDifferenceFunctionImg3OfVox3DFloatVecType) {
483 return true;
484 }
485 if ((3 == numComps) && m_FiniteDifferenceFunctionImg3OfVox3DDoubleVecType) {
486 return true;
487 }
488 if ((4 == numComps) && m_FiniteDifferenceFunctionImg3OfVox4DFloatVecType) {
489 return true;
490 }
491 if ((4 == numComps) && m_FiniteDifferenceFunctionImg3OfVox4DDoubleVecType) {
492 return true;
493 }
494 if ((6 == numComps) && m_FiniteDifferenceFunctionImg3OfVox6DFloatVecType) {
495 return true;
496 }
497 if ((6 == numComps) && m_FiniteDifferenceFunctionImg3OfVox6DDoubleVecType) {
498 return true;
499 }
500 if ((8 == numComps) && m_FiniteDifferenceFunctionImg3OfVox8DFloatVecType) {
501 return true;
502 }
503 if ((8 == numComps) && m_FiniteDifferenceFunctionImg3OfVox8DDoubleVecType) {
504 return true;
505 }
506 }
507 }
508 if (usePDEDeformableFunc && (3 == imgDim)) {
509 if ((3 == numComps) && m_PDEDeformableRegFunction3DF3DF3DFVType) {
510 return true;
511 }
512 }
513
514 return false;
515 }
516
517 //------------------------------------------------------------------------------
519 //------------------------------------------------------------------------------
520 void SetFiniteDifferenceFunctionImg2OfVoxInt8Type(FiniteDifferenceFunctionImg2OfVoxInt8Type ::Pointer ptr)
521 {
522 m_FiniteDifferenceFunctionImg2OfVoxInt8Type = ptr;
523 }
524 void SetFiniteDifferenceFunctionImg2OfVoxInt16Type(FiniteDifferenceFunctionImg2OfVoxInt16Type ::Pointer ptr)
525 {
526 m_FiniteDifferenceFunctionImg2OfVoxInt16Type = ptr;
527 }
528 void SetFiniteDifferenceFunctionImg2OfVoxInt32Type(FiniteDifferenceFunctionImg2OfVoxInt32Type ::Pointer ptr)
529 {
530 m_FiniteDifferenceFunctionImg2OfVoxInt32Type = ptr;
531 }
532 void SetFiniteDifferenceFunctionImg2OfVoxUInt8Type(FiniteDifferenceFunctionImg2OfVoxUInt8Type ::Pointer ptr)
533 {
534 m_FiniteDifferenceFunctionImg2OfVoxUInt8Type = ptr;
535 }
536 void SetFiniteDifferenceFunctionImg2OfVoxUInt16Type(FiniteDifferenceFunctionImg2OfVoxUInt16Type ::Pointer ptr)
537 {
538 m_FiniteDifferenceFunctionImg2OfVoxUInt16Type = ptr;
539 }
540 void SetFiniteDifferenceFunctionImg2OfVoxUInt32Type(FiniteDifferenceFunctionImg2OfVoxUInt32Type ::Pointer ptr)
541 {
542 m_FiniteDifferenceFunctionImg2OfVoxUInt32Type = ptr;
543 }
544 void SetFiniteDifferenceFunctionImg2OfVoxFloatType(FiniteDifferenceFunctionImg2OfVoxFloatType ::Pointer ptr)
545 {
546 m_FiniteDifferenceFunctionImg2OfVoxFloatType = ptr;
547 }
548 void SetFiniteDifferenceFunctionImg2OfVoxDoubleType(FiniteDifferenceFunctionImg2OfVoxDoubleType ::Pointer ptr)
549 {
550 m_FiniteDifferenceFunctionImg2OfVoxDoubleType = ptr;
551 }
552 void SetFiniteDifferenceFunctionImg2OfVox2DFloatVecType(FiniteDifferenceFunctionImg2OfVox2DFloatVecType ::Pointer ptr)
553 {
554 m_FiniteDifferenceFunctionImg2OfVox2DFloatVecType = ptr;
555 }
556 void
557 SetFiniteDifferenceFunctionImg2OfVox2DDoubleVecType(FiniteDifferenceFunctionImg2OfVox2DDoubleVecType ::Pointer ptr)
558 {
559 m_FiniteDifferenceFunctionImg2OfVox2DDoubleVecType = ptr;
560 }
561 void SetFiniteDifferenceFunctionImg2OfVox3DFloatVecType(FiniteDifferenceFunctionImg2OfVox3DFloatVecType ::Pointer ptr)
562 {
563 m_FiniteDifferenceFunctionImg2OfVox3DFloatVecType = ptr;
564 }
565 void
566 SetFiniteDifferenceFunctionImg2OfVox3DDoubleVecType(FiniteDifferenceFunctionImg2OfVox3DDoubleVecType ::Pointer ptr)
567 {
568 m_FiniteDifferenceFunctionImg2OfVox3DDoubleVecType = ptr;
569 }
570 void SetFiniteDifferenceFunctionImg2OfVox4DFloatVecType(FiniteDifferenceFunctionImg2OfVox4DFloatVecType ::Pointer ptr)
571 {
572 m_FiniteDifferenceFunctionImg2OfVox4DFloatVecType = ptr;
573 }
574 void
575 SetFiniteDifferenceFunctionImg2OfVox4DDoubleVecType(FiniteDifferenceFunctionImg2OfVox4DDoubleVecType ::Pointer ptr)
576 {
577 m_FiniteDifferenceFunctionImg2OfVox4DDoubleVecType = ptr;
578 }
579 void SetFiniteDifferenceFunctionImg2OfVox6DFloatVecType(FiniteDifferenceFunctionImg2OfVox6DFloatVecType ::Pointer ptr)
580 {
581 m_FiniteDifferenceFunctionImg2OfVox6DFloatVecType = ptr;
582 }
583 void
584 SetFiniteDifferenceFunctionImg2OfVox6DDoubleVecType(FiniteDifferenceFunctionImg2OfVox6DDoubleVecType ::Pointer ptr)
585 {
586 m_FiniteDifferenceFunctionImg2OfVox6DDoubleVecType = ptr;
587 }
588 void SetFiniteDifferenceFunctionImg2OfVox8DFloatVecType(FiniteDifferenceFunctionImg2OfVox8DFloatVecType ::Pointer ptr)
589 {
590 m_FiniteDifferenceFunctionImg2OfVox8DFloatVecType = ptr;
591 }
592 void
593 SetFiniteDifferenceFunctionImg2OfVox8DDoubleVecType(FiniteDifferenceFunctionImg2OfVox8DDoubleVecType ::Pointer ptr)
594 {
595 m_FiniteDifferenceFunctionImg2OfVox8DDoubleVecType = ptr;
596 }
597
598 void SetFiniteDifferenceFunctionImg3OfVoxInt8Type(FiniteDifferenceFunctionImg3OfVoxInt8Type ::Pointer ptr)
599 {
600 m_FiniteDifferenceFunctionImg3OfVoxInt8Type = ptr;
601 }
602 void SetFiniteDifferenceFunctionImg3OfVoxInt16Type(FiniteDifferenceFunctionImg3OfVoxInt16Type ::Pointer ptr)
603 {
604 m_FiniteDifferenceFunctionImg3OfVoxInt16Type = ptr;
605 }
606 void SetFiniteDifferenceFunctionImg3OfVoxInt32Type(FiniteDifferenceFunctionImg3OfVoxInt32Type ::Pointer ptr)
607 {
608 m_FiniteDifferenceFunctionImg3OfVoxInt32Type = ptr;
609 }
610 void SetFiniteDifferenceFunctionImg3OfVoxUInt8Type(FiniteDifferenceFunctionImg3OfVoxUInt8Type ::Pointer ptr)
611 {
612 m_FiniteDifferenceFunctionImg3OfVoxUInt8Type = ptr;
613 }
614 void SetFiniteDifferenceFunctionImg3OfVoxUInt16Type(FiniteDifferenceFunctionImg3OfVoxUInt16Type ::Pointer ptr)
615 {
616 m_FiniteDifferenceFunctionImg3OfVoxUInt16Type = ptr;
617 }
618 void SetFiniteDifferenceFunctionImg3OfVoxUInt32Type(FiniteDifferenceFunctionImg3OfVoxUInt32Type ::Pointer ptr)
619 {
620 m_FiniteDifferenceFunctionImg3OfVoxUInt32Type = ptr;
621 }
622 void SetFiniteDifferenceFunctionImg3OfVoxFloatType(FiniteDifferenceFunctionImg3OfVoxFloatType ::Pointer ptr)
623 {
624 m_FiniteDifferenceFunctionImg3OfVoxFloatType = ptr;
625 }
626 void SetFiniteDifferenceFunctionImg3OfVoxDoubleType(FiniteDifferenceFunctionImg3OfVoxDoubleType ::Pointer ptr)
627 {
628 m_FiniteDifferenceFunctionImg3OfVoxDoubleType = ptr;
629 }
630 void SetFiniteDifferenceFunctionImg3OfVox2DFloatVecType(FiniteDifferenceFunctionImg3OfVox2DFloatVecType ::Pointer ptr)
631 {
632 m_FiniteDifferenceFunctionImg3OfVox2DFloatVecType = ptr;
633 }
634 void
635 SetFiniteDifferenceFunctionImg3OfVox2DDoubleVecType(FiniteDifferenceFunctionImg3OfVox2DDoubleVecType ::Pointer ptr)
636 {
637 m_FiniteDifferenceFunctionImg3OfVox2DDoubleVecType = ptr;
638 }
639 void SetFiniteDifferenceFunctionImg3OfVox3DFloatVecType(FiniteDifferenceFunctionImg3OfVox3DFloatVecType ::Pointer ptr)
640 {
641 m_FiniteDifferenceFunctionImg3OfVox3DFloatVecType = ptr;
642 }
643 void
644 SetFiniteDifferenceFunctionImg3OfVox3DDoubleVecType(FiniteDifferenceFunctionImg3OfVox3DDoubleVecType ::Pointer ptr)
645 {
646 m_FiniteDifferenceFunctionImg3OfVox3DDoubleVecType = ptr;
647 }
648 void SetFiniteDifferenceFunctionImg3OfVox4DFloatVecType(FiniteDifferenceFunctionImg3OfVox4DFloatVecType ::Pointer ptr)
649 {
650 m_FiniteDifferenceFunctionImg3OfVox4DFloatVecType = ptr;
651 }
652 void
653 SetFiniteDifferenceFunctionImg3OfVox4DDoubleVecType(FiniteDifferenceFunctionImg3OfVox4DDoubleVecType ::Pointer ptr)
654 {
655 m_FiniteDifferenceFunctionImg3OfVox4DDoubleVecType = ptr;
656 }
657 void SetFiniteDifferenceFunctionImg3OfVox6DFloatVecType(FiniteDifferenceFunctionImg3OfVox6DFloatVecType ::Pointer ptr)
658 {
659 m_FiniteDifferenceFunctionImg3OfVox6DFloatVecType = ptr;
660 }
661 void
662 SetFiniteDifferenceFunctionImg3OfVox6DDoubleVecType(FiniteDifferenceFunctionImg3OfVox6DDoubleVecType ::Pointer ptr)
663 {
664 m_FiniteDifferenceFunctionImg3OfVox6DDoubleVecType = ptr;
665 }
666 void SetFiniteDifferenceFunctionImg3OfVox8DFloatVecType(FiniteDifferenceFunctionImg3OfVox8DFloatVecType ::Pointer ptr)
667 {
668 m_FiniteDifferenceFunctionImg3OfVox8DFloatVecType = ptr;
669 }
670 void
671 SetFiniteDifferenceFunctionImg3OfVox8DDoubleVecType(FiniteDifferenceFunctionImg3OfVox8DDoubleVecType ::Pointer ptr)
672 {
673 m_FiniteDifferenceFunctionImg3OfVox8DDoubleVecType = ptr;
674 }
675
676 void SetPDEDeformableRegFunction3DF3DF3DFVType(PDEDeformableRegFunction3DF3DF3DFVType ::Pointer ptr)
677 {
678 m_PDEDeformableRegFunction3DF3DF3DFVType = ptr;
679 }
681
682private:
685
688
690 FiniteDifferenceFunctionImg2OfVoxInt8Type ::Pointer m_FiniteDifferenceFunctionImg2OfVoxInt8Type;
691 FiniteDifferenceFunctionImg2OfVoxInt16Type ::Pointer m_FiniteDifferenceFunctionImg2OfVoxInt16Type;
692 FiniteDifferenceFunctionImg2OfVoxInt32Type ::Pointer m_FiniteDifferenceFunctionImg2OfVoxInt32Type;
693 FiniteDifferenceFunctionImg2OfVoxUInt8Type ::Pointer m_FiniteDifferenceFunctionImg2OfVoxUInt8Type;
694 FiniteDifferenceFunctionImg2OfVoxUInt16Type ::Pointer m_FiniteDifferenceFunctionImg2OfVoxUInt16Type;
695 FiniteDifferenceFunctionImg2OfVoxUInt32Type ::Pointer m_FiniteDifferenceFunctionImg2OfVoxUInt32Type;
696 FiniteDifferenceFunctionImg2OfVoxFloatType ::Pointer m_FiniteDifferenceFunctionImg2OfVoxFloatType;
697 FiniteDifferenceFunctionImg2OfVoxDoubleType ::Pointer m_FiniteDifferenceFunctionImg2OfVoxDoubleType;
698 FiniteDifferenceFunctionImg2OfVox2DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox2DFloatVecType;
699 FiniteDifferenceFunctionImg2OfVox2DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox2DDoubleVecType;
700 FiniteDifferenceFunctionImg2OfVox3DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox3DFloatVecType;
701 FiniteDifferenceFunctionImg2OfVox3DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox3DDoubleVecType;
702 FiniteDifferenceFunctionImg2OfVox4DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox4DFloatVecType;
703 FiniteDifferenceFunctionImg2OfVox4DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox4DDoubleVecType;
704 FiniteDifferenceFunctionImg2OfVox6DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox6DFloatVecType;
705 FiniteDifferenceFunctionImg2OfVox6DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox6DDoubleVecType;
706 FiniteDifferenceFunctionImg2OfVox8DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox8DFloatVecType;
707 FiniteDifferenceFunctionImg2OfVox8DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg2OfVox8DDoubleVecType;
708
709 FiniteDifferenceFunctionImg3OfVoxInt8Type ::Pointer m_FiniteDifferenceFunctionImg3OfVoxInt8Type;
710 FiniteDifferenceFunctionImg3OfVoxInt16Type ::Pointer m_FiniteDifferenceFunctionImg3OfVoxInt16Type;
711 FiniteDifferenceFunctionImg3OfVoxInt32Type ::Pointer m_FiniteDifferenceFunctionImg3OfVoxInt32Type;
712 FiniteDifferenceFunctionImg3OfVoxUInt8Type ::Pointer m_FiniteDifferenceFunctionImg3OfVoxUInt8Type;
713 FiniteDifferenceFunctionImg3OfVoxUInt16Type ::Pointer m_FiniteDifferenceFunctionImg3OfVoxUInt16Type;
714 FiniteDifferenceFunctionImg3OfVoxUInt32Type ::Pointer m_FiniteDifferenceFunctionImg3OfVoxUInt32Type;
715 FiniteDifferenceFunctionImg3OfVoxFloatType ::Pointer m_FiniteDifferenceFunctionImg3OfVoxFloatType;
716 FiniteDifferenceFunctionImg3OfVoxDoubleType ::Pointer m_FiniteDifferenceFunctionImg3OfVoxDoubleType;
717 FiniteDifferenceFunctionImg3OfVox2DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox2DFloatVecType;
718 FiniteDifferenceFunctionImg3OfVox2DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox2DDoubleVecType;
719 FiniteDifferenceFunctionImg3OfVox3DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox3DFloatVecType;
720 FiniteDifferenceFunctionImg3OfVox3DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox3DDoubleVecType;
721 FiniteDifferenceFunctionImg3OfVox4DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox4DFloatVecType;
722 FiniteDifferenceFunctionImg3OfVox4DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox4DDoubleVecType;
723 FiniteDifferenceFunctionImg3OfVox6DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox6DFloatVecType;
724 FiniteDifferenceFunctionImg3OfVox6DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox6DDoubleVecType;
725 FiniteDifferenceFunctionImg3OfVox8DFloatVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox8DFloatVecType;
726 FiniteDifferenceFunctionImg3OfVox8DDoubleVecType ::Pointer m_FiniteDifferenceFunctionImg3OfVox8DDoubleVecType;
727
728 PDEDeformableRegFunction3DF3DF3DFVType ::Pointer m_PDEDeformableRegFunction3DF3DF3DFVType;
730
731private:
733};
734
735
736//----------------------------------------------------------------------------------
738//----------------------------------------------------------------------------------
740{
741public:
742 //----------------------------------------------------------------------------------
744 //----------------------------------------------------------------------------------
747
748 //----------------------------------------------------------------------------------
751 //----------------------------------------------------------------------------------
752 void addOutputBaseField(Module& module, const char* outputFieldName)
753 {
754 if (!outputFieldName) {
755 ML_PRINT_ERROR("FiniteDifferenceFunctionWrapper::addOutputBaseField", ML_BAD_POINTER_OR_0,
756 "Passed field name pointer is nullptr. Ignoring call.");
757 return;
758 }
759 if (_baseField) {
760 ML_PRINT_ERROR("FiniteDifferenceFunctionWrapper::addOutputBaseField", ML_BAD_STATE,
761 "Ignoring multiple field add.");
762 return;
763 }
764
765 _baseField = module.addBase(outputFieldName);
766 _baseField->addAllowedType<ITKFiniteDifferenceFunctionWrapper>();
767 _baseField->setBaseValue(&_baseWrapper);
768 }
769
770 //----------------------------------------------------------------------------------
773 //----------------------------------------------------------------------------------
774 void addInputBaseField(Module& module, const char* inputFieldName)
775 {
776 if (!inputFieldName) {
777 ML_PRINT_ERROR("FiniteDifferenceFunctionWrapper::addInputBaseField", ML_BAD_POINTER_OR_0,
778 "Passed field name pointer is nullptr. Ignoring call.");
779 return;
780 }
781 if (_baseField) {
782 ML_PRINT_ERROR("FiniteDifferenceFunctionWrapper::addInputBaseField", ML_BAD_STATE,
783 "Ignoring multiple field add.");
784 return;
785 }
786
787 _baseField = module.addBase(inputFieldName);
788 _baseField->addAllowedType<ITKFiniteDifferenceFunctionWrapper>();
789 }
790
791 //----------------------------------------------------------------------------------
793 //----------------------------------------------------------------------------------
795 {
796 if (_baseField) {
797 _baseField->setBaseValue(newObject);
798 }
799 }
800
801 //----------------------------------------------------------------------------------
803 //----------------------------------------------------------------------------------
805 {
806 return _baseField;
807 }
808
809 //----------------------------------------------------------------------------------
811 //----------------------------------------------------------------------------------
813 {
814 return _baseField;
815 }
816
817 //----------------------------------------------------------------------------------
819 //----------------------------------------------------------------------------------
821 {
822 return &_baseWrapper;
823 }
824
825 //----------------------------------------------------------------------------------
828 //----------------------------------------------------------------------------------
830 {
831 return _baseField ? _baseField->getTypedBaseValue<ITKFiniteDifferenceFunctionWrapper*>() : nullptr;
832 }
833
834protected:
837
839 BaseField* _baseField = nullptr;
840};
841
842
Field to encapsulate a pointer to an ML base object.
Definition mlFields.h:813
Class representing general ML objects that support import/export via strings (setPersistentState() an...
Definition mlBase.h:63
Special case wrapper for ITKFiniteDifferenceFunctionWrapper.
ITKFiniteDifferenceFunctionWrapper * getWrappedInputObject()
Return the pointer to the wrapped input object, if it is of the correct type, otherwise a nullptr.
void setNewOutputBaseFieldObject(ITKFiniteDifferenceFunctionWrapper *newObject)
This replaces the output base object.
ITKFiniteDifferenceFunctionWrapper * getWrappedOutputObject()
Return the pointer to the wrapped object.
void addOutputBaseField(Module &module, const char *outputFieldName)
Method to add a base field to the passed Module module.
ITKFiniteDifferenceFunctionWrapper _baseWrapper
Reference to the Base object wrapping the ITK object pointer.
void addInputBaseField(Module &module, const char *inputFieldName)
Method to add a base field to the passed Module module.
BaseField * getInputBaseField()
For legacy reasons there are two fields for getting the base field.
BaseField * getOutputBaseField()
For legacy reasons there are two fields for getting the base field.
Class to provide a number of get/set functions for often used templated objects, for example function...
void SetFiniteDifferenceFunctionImg3OfVoxUInt8Type(FiniteDifferenceFunctionImg3OfVoxUInt8Type ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVox8DFloatVecType(FiniteDifferenceFunctionImg3OfVox8DFloatVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVox4DFloatVecType(FiniteDifferenceFunctionImg3OfVox4DFloatVecType ::Pointer ptr)
FiniteDifferenceFunctionImg3OfVox8DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox8DFloatVecType *)
void SetFiniteDifferenceFunctionImg2OfVox6DDoubleVecType(FiniteDifferenceFunctionImg2OfVox6DDoubleVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVoxInt16Type(FiniteDifferenceFunctionImg3OfVoxInt16Type ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVox2DDoubleVecType(FiniteDifferenceFunctionImg2OfVox2DDoubleVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVox2DFloatVecType(FiniteDifferenceFunctionImg2OfVox2DFloatVecType ::Pointer ptr)
FiniteDifferenceFunctionImg3OfVoxInt8Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVoxInt8Type *)
void SetFiniteDifferenceFunctionImg3OfVox2DFloatVecType(FiniteDifferenceFunctionImg3OfVox2DFloatVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVoxFloatType(FiniteDifferenceFunctionImg3OfVoxFloatType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVoxDoubleType(FiniteDifferenceFunctionImg3OfVoxDoubleType ::Pointer ptr)
FiniteDifferenceFunctionImg3OfVox3DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox3DDoubleVecType *)
FiniteDifferenceFunctionImg3OfVox2DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox2DDoubleVecType *)
FiniteDifferenceFunctionImg2OfVoxInt8Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVoxInt8Type *)
ITKFiniteDifferenceFunctionWrapper()
Constructor. Resets all pointers.
void SetFiniteDifferenceFunctionImg2OfVox6DFloatVecType(FiniteDifferenceFunctionImg2OfVox6DFloatVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVoxUInt16Type(FiniteDifferenceFunctionImg3OfVoxUInt16Type ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVoxInt8Type(FiniteDifferenceFunctionImg2OfVoxInt8Type ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVoxUInt8Type(FiniteDifferenceFunctionImg2OfVoxUInt8Type ::Pointer ptr)
FiniteDifferenceFunctionImg3OfVoxDoubleType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVoxDoubleType *)
void SetFiniteDifferenceFunctionImg2OfVoxFloatType(FiniteDifferenceFunctionImg2OfVoxFloatType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVoxInt16Type(FiniteDifferenceFunctionImg2OfVoxInt16Type ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVox8DFloatVecType(FiniteDifferenceFunctionImg2OfVox8DFloatVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVoxInt32Type(FiniteDifferenceFunctionImg3OfVoxInt32Type ::Pointer ptr)
FiniteDifferenceFunctionImg3OfVoxUInt8Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVoxUInt8Type *)
void SetFiniteDifferenceFunctionImg3OfVox3DDoubleVecType(FiniteDifferenceFunctionImg3OfVox3DDoubleVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVoxUInt32Type(FiniteDifferenceFunctionImg2OfVoxUInt32Type ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVox4DFloatVecType(FiniteDifferenceFunctionImg2OfVox4DFloatVecType ::Pointer ptr)
FiniteDifferenceFunctionImg2OfVoxUInt8Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVoxUInt8Type *)
FiniteDifferenceFunctionImg3OfVox6DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox6DDoubleVecType *)
FiniteDifferenceFunctionImg3OfVoxInt16Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVoxInt16Type *)
FiniteDifferenceFunctionImg3OfVoxUInt32Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVoxUInt32Type *)
FiniteDifferenceFunctionImg2OfVox6DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox6DDoubleVecType *)
FiniteDifferenceFunctionImg3OfVox4DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox4DDoubleVecType *)
FiniteDifferenceFunctionImg2OfVox8DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox8DDoubleVecType *)
FiniteDifferenceFunctionImg2OfVox3DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox3DFloatVecType *)
void SetFiniteDifferenceFunctionImg3OfVox6DFloatVecType(FiniteDifferenceFunctionImg3OfVox6DFloatVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVox4DDoubleVecType(FiniteDifferenceFunctionImg3OfVox4DDoubleVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVox3DDoubleVecType(FiniteDifferenceFunctionImg2OfVox3DDoubleVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVoxUInt16Type(FiniteDifferenceFunctionImg2OfVoxUInt16Type ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVoxInt32Type(FiniteDifferenceFunctionImg2OfVoxInt32Type ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVox2DDoubleVecType(FiniteDifferenceFunctionImg3OfVox2DDoubleVecType ::Pointer ptr)
FiniteDifferenceFunctionImg3OfVox6DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox6DFloatVecType *)
FiniteDifferenceFunctionImg2OfVox4DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox4DDoubleVecType *)
FiniteDifferenceFunctionImg2OfVoxInt32Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVoxInt32Type *)
FiniteDifferenceFunctionImg3OfVoxFloatType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVoxFloatType *)
FiniteDifferenceFunctionImg3OfVoxInt32Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVoxInt32Type *)
FiniteDifferenceFunctionImg2OfVoxUInt32Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVoxUInt32Type *)
FiniteDifferenceFunctionImg2OfVoxFloatType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVoxFloatType *)
bool isFiniteDifferenceFunctionValid(PagedImage *outImg, bool usePDEDeformableFunc=false)
Check whether a correctly typed difference function is available in any member which matches the conf...
FiniteDifferenceFunctionImg2OfVoxDoubleType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVoxDoubleType *)
FiniteDifferenceFunctionImg2OfVox8DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox8DFloatVecType *)
FiniteDifferenceFunctionImg2OfVox6DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox6DFloatVecType *)
FiniteDifferenceFunctionImg3OfVox2DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox2DFloatVecType *)
void SetFiniteDifferenceFunctionImg2OfVox3DFloatVecType(FiniteDifferenceFunctionImg2OfVox3DFloatVecType ::Pointer ptr)
FiniteDifferenceFunctionImg3OfVoxUInt16Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVoxUInt16Type *)
void SetFiniteDifferenceFunctionImg3OfVoxUInt32Type(FiniteDifferenceFunctionImg3OfVoxUInt32Type ::Pointer ptr)
FiniteDifferenceFunctionImg2OfVox3DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox3DDoubleVecType *)
FiniteDifferenceFunctionImg2OfVox2DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox2DFloatVecType *)
FiniteDifferenceFunctionImg2OfVox4DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox4DFloatVecType *)
void SetFiniteDifferenceFunctionImg3OfVox8DDoubleVecType(FiniteDifferenceFunctionImg3OfVox8DDoubleVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVoxDoubleType(FiniteDifferenceFunctionImg2OfVoxDoubleType ::Pointer ptr)
FiniteDifferenceFunctionImg2OfVoxInt16Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVoxInt16Type *)
FiniteDifferenceFunctionImg3OfVox3DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox3DFloatVecType *)
FiniteDifferenceFunctionImg3OfVox4DFloatVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox4DFloatVecType *)
void SetFiniteDifferenceFunctionImg2OfVox8DDoubleVecType(FiniteDifferenceFunctionImg2OfVox8DDoubleVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg3OfVoxInt8Type(FiniteDifferenceFunctionImg3OfVoxInt8Type ::Pointer ptr)
FiniteDifferenceFunctionImg2OfVoxUInt16Type::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVoxUInt16Type *)
void SetFiniteDifferenceFunctionImg3OfVox6DDoubleVecType(FiniteDifferenceFunctionImg3OfVox6DDoubleVecType ::Pointer ptr)
FiniteDifferenceFunctionImg2OfVox2DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg2OfVox2DDoubleVecType *)
PDEDeformableRegFunction3DF3DF3DFVType::Pointer GetFiniteDifferenceFunction(PDEDeformableRegFunction3DF3DF3DFVType *)
void SetFiniteDifferenceFunctionImg3OfVox3DFloatVecType(FiniteDifferenceFunctionImg3OfVox3DFloatVecType ::Pointer ptr)
void SetFiniteDifferenceFunctionImg2OfVox4DDoubleVecType(FiniteDifferenceFunctionImg2OfVox4DDoubleVecType ::Pointer ptr)
FiniteDifferenceFunctionImg3OfVox8DDoubleVecType::Pointer GetFiniteDifferenceFunction(FiniteDifferenceFunctionImg3OfVox8DDoubleVecType *)
void SetPDEDeformableRegFunction3DF3DF3DFVType(PDEDeformableRegFunction3DF3DF3DFVType ::Pointer ptr)
Base class for an image processing module of the ML.
Definition mlModule.h:150
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
MLint32 MLDataType
MLDataType.
Definition mlTypeDefs.h:592
MLEXPORT size_t MLTypeGetNumComponents(MLDataType dataType)
Returns the number of components of the data type data type or 0 in case of an invalid data type.
@ MLuint8Type
Enumerator for the unsigned 8-bit ML integer type.
Definition mlTypeDefs.h:617
@ MLuint32Type
Enumerator for the unsigned 32-bit ML integer type.
Definition mlTypeDefs.h:621
@ MLfloatType
Enumerator for the signed 32-bit ML floating point type.
Definition mlTypeDefs.h:622
@ MLuint16Type
Enumerator for the unsigned 16-bit ML integer type.
Definition mlTypeDefs.h:619
@ MLint16Type
Enumerator for the signed 16-bit ML integer type.
Definition mlTypeDefs.h:618
@ MLint32Type
Enumerator for the signed 32-bit ML integer type.
Definition mlTypeDefs.h:620
@ MLdoubleType
Enumerator for the signed 64-bit ML floating point type.
Definition mlTypeDefs.h:623
@ MLint8Type
Enumerator for the signed 8-bit ML integer type.
Definition mlTypeDefs.h:616
#define ML_BAD_POINTER_OR_0
A pointer is NULL or a value is NULL or 0 where it should not be.
Definition mlTypeDefs.h:989
#define ML_BAD_STATE
The current state of an object is not appropriate for an operation.
Definition mlTypeDefs.h:994
#define ML_PRINT_ERROR(FUNC_NAME, REASON, HANDLING)
Like ML_PRINT_ERROR_DUMP(FUNC_NAME, REASON, HANDLING, RT_OBJ) without a runtime object to be dumped.
itk::Image< MLint8, 2 > Img2OfVoxInt8Type
itk::Image< MLuint16, 2 > Img2OfVoxUInt16Type
itk::Image< Vox8DFloatVecType, 3 > Img3OfVox8DFloatVecType
itk::FiniteDifferenceFunction< Img2OfVox3DFloatVecType > FiniteDifferenceFunctionImg2OfVox3DFloatVecType
itk::Image< Vox6DDoubleVecType, 3 > Img3OfVox6DDoubleVecType
itk::Vector< double, 2 > Vox2DDoubleVecType
itk::Vector< double, 8 > Vox8DDoubleVecType
itk::Vector< float, 4 > Vox4DFloatVecType
itk::Image< Vox3DDoubleVecType, 2 > Img2OfVox3DDoubleVecType
itk::Image< MLfloat, 3 > Img3OfVoxFloatType
itk::FiniteDifferenceFunction< Img3OfVoxUInt16Type > FiniteDifferenceFunctionImg3OfVoxUInt16Type
itk::FiniteDifferenceFunction< Img3OfVoxFloatType > FiniteDifferenceFunctionImg3OfVoxFloatType
itk::PDEDeformableRegistrationFunction< Img3OfVoxFloatType, Img3OfVoxFloatType, Img3OfVox3DFloatVecType > PDEDeformableRegFunction3DF3DF3DFVType
itk::Vector< double, 6 > Vox6DDoubleVecType
itk::Image< Vox4DDoubleVecType, 3 > Img3OfVox4DDoubleVecType
itk::Image< Vox6DFloatVecType, 2 > Img2OfVox6DFloatVecType
itk::FiniteDifferenceFunction< Img3OfVoxInt8Type > FiniteDifferenceFunctionImg3OfVoxInt8Type
itk::Image< MLfloat, 2 > Img2OfVoxFloatType
itk::FiniteDifferenceFunction< Img2OfVox6DFloatVecType > FiniteDifferenceFunctionImg2OfVox6DFloatVecType
itk::Image< MLdouble, 2 > Img2OfVoxDoubleType
itk::FiniteDifferenceFunction< Img2OfVoxInt32Type > FiniteDifferenceFunctionImg2OfVoxInt32Type
itk::FiniteDifferenceFunction< Img3OfVox6DFloatVecType > FiniteDifferenceFunctionImg3OfVox6DFloatVecType
itk::FiniteDifferenceFunction< Img2OfVoxUInt32Type > FiniteDifferenceFunctionImg2OfVoxUInt32Type
itk::Image< MLdouble, 3 > Img3OfVoxDoubleType
itk::FiniteDifferenceFunction< Img3OfVoxInt32Type > FiniteDifferenceFunctionImg3OfVoxInt32Type
itk::Image< Vox8DDoubleVecType, 2 > Img2OfVox8DDoubleVecType
itk::Image< Vox2DFloatVecType, 3 > Img3OfVox2DFloatVecType
itk::FiniteDifferenceFunction< Img3OfVox4DDoubleVecType > FiniteDifferenceFunctionImg3OfVox4DDoubleVecType
itk::FiniteDifferenceFunction< Img3OfVox2DDoubleVecType > FiniteDifferenceFunctionImg3OfVox2DDoubleVecType
itk::Image< Vox2DFloatVecType, 2 > Img2OfVox2DFloatVecType
itk::Image< Vox6DFloatVecType, 3 > Img3OfVox6DFloatVecType
itk::Vector< float, 8 > Vox8DFloatVecType
itk::FiniteDifferenceFunction< Img2OfVoxDoubleType > FiniteDifferenceFunctionImg2OfVoxDoubleType
itk::FiniteDifferenceFunction< Img3OfVox2DFloatVecType > FiniteDifferenceFunctionImg3OfVox2DFloatVecType
itk::FiniteDifferenceFunction< Img2OfVox8DDoubleVecType > FiniteDifferenceFunctionImg2OfVox8DDoubleVecType
itk::Image< Vox6DDoubleVecType, 2 > Img2OfVox6DDoubleVecType
itk::Image< Vox3DFloatVecType, 2 > Img2OfVox3DFloatVecType
itk::Image< MLint8, 3 > Img3OfVoxInt8Type
itk::Image< MLint16, 2 > Img2OfVoxInt16Type
itk::FiniteDifferenceFunction< Img2OfVoxFloatType > FiniteDifferenceFunctionImg2OfVoxFloatType
itk::FiniteDifferenceFunction< Img2OfVox6DDoubleVecType > FiniteDifferenceFunctionImg2OfVox6DDoubleVecType
itk::FiniteDifferenceFunction< Img2OfVox4DDoubleVecType > FiniteDifferenceFunctionImg2OfVox4DDoubleVecType
itk::Vector< float, 2 > Vox2DFloatVecType
Include most ML specific things.
itk::Image< Vox2DDoubleVecType, 3 > Img3OfVox2DDoubleVecType
itk::Vector< double, 4 > Vox4DDoubleVecType
itk::FiniteDifferenceFunction< Img3OfVoxUInt32Type > FiniteDifferenceFunctionImg3OfVoxUInt32Type
itk::Image< Vox8DFloatVecType, 2 > Img2OfVox8DFloatVecType
itk::Image< MLuint8, 2 > Img2OfVoxUInt8Type
itk::Image< MLint32, 2 > Img2OfVoxInt32Type
itk::FiniteDifferenceFunction< Img2OfVoxInt16Type > FiniteDifferenceFunctionImg2OfVoxInt16Type
itk::FiniteDifferenceFunction< Img2OfVoxUInt8Type > FiniteDifferenceFunctionImg2OfVoxUInt8Type
itk::Image< MLuint32, 3 > Img3OfVoxUInt32Type
itk::FiniteDifferenceFunction< Img3OfVoxUInt8Type > FiniteDifferenceFunctionImg3OfVoxUInt8Type
itk::FiniteDifferenceFunction< Img3OfVox8DFloatVecType > FiniteDifferenceFunctionImg3OfVox8DFloatVecType
itk::FiniteDifferenceFunction< Img3OfVox3DDoubleVecType > FiniteDifferenceFunctionImg3OfVox3DDoubleVecType
itk::FiniteDifferenceFunction< Img3OfVoxInt16Type > FiniteDifferenceFunctionImg3OfVoxInt16Type
itk::Image< Vox4DFloatVecType, 3 > Img3OfVox4DFloatVecType
itk::FiniteDifferenceFunction< Img3OfVox4DFloatVecType > FiniteDifferenceFunctionImg3OfVox4DFloatVecType
itk::Image< Vox2DDoubleVecType, 2 > Img2OfVox2DDoubleVecType
itk::FiniteDifferenceFunction< Img2OfVox3DDoubleVecType > FiniteDifferenceFunctionImg2OfVox3DDoubleVecType
itk::FiniteDifferenceFunction< Img2OfVox2DFloatVecType > FiniteDifferenceFunctionImg2OfVox2DFloatVecType
itk::Image< Vox3DFloatVecType, 3 > Img3OfVox3DFloatVecType
itk::FiniteDifferenceFunction< Img2OfVox8DFloatVecType > FiniteDifferenceFunctionImg2OfVox8DFloatVecType
itk::FiniteDifferenceFunction< Img3OfVox6DDoubleVecType > FiniteDifferenceFunctionImg3OfVox6DDoubleVecType
itk::FiniteDifferenceFunction< Img3OfVox3DFloatVecType > FiniteDifferenceFunctionImg3OfVox3DFloatVecType
itk::FiniteDifferenceFunction< Img3OfVox8DDoubleVecType > FiniteDifferenceFunctionImg3OfVox8DDoubleVecType
itk::Image< Vox4DDoubleVecType, 2 > Img2OfVox4DDoubleVecType
itk::Image< Vox4DFloatVecType, 2 > Img2OfVox4DFloatVecType
itk::Image< MLuint32, 2 > Img2OfVoxUInt32Type
itk::Image< Vox8DDoubleVecType, 3 > Img3OfVox8DDoubleVecType
itk::Vector< double, 3 > Vox3DDoubleVecType
itk::Image< MLint16, 3 > Img3OfVoxInt16Type
itk::FiniteDifferenceFunction< Img2OfVoxUInt16Type > FiniteDifferenceFunctionImg2OfVoxUInt16Type
itk::Image< Vox3DDoubleVecType, 3 > Img3OfVox3DDoubleVecType
itk::FiniteDifferenceFunction< Img2OfVox4DFloatVecType > FiniteDifferenceFunctionImg2OfVox4DFloatVecType
itk::FiniteDifferenceFunction< Img2OfVoxInt8Type > FiniteDifferenceFunctionImg2OfVoxInt8Type
itk::FiniteDifferenceFunction< Img2OfVox2DDoubleVecType > FiniteDifferenceFunctionImg2OfVox2DDoubleVecType
itk::Image< MLuint16, 3 > Img3OfVoxUInt16Type
itk::Vector< float, 3 > Vox3DFloatVecType
itk::FiniteDifferenceFunction< Img3OfVoxDoubleType > FiniteDifferenceFunctionImg3OfVoxDoubleType
itk::Image< MLuint8, 3 > Img3OfVoxUInt8Type
itk::Vector< float, 6 > Vox6DFloatVecType
itk::Image< MLint32, 3 > Img3OfVoxInt32Type
#define MLITK_SUPPORT_EXPORT
When included by other libraries MLITK_SUPPORT_EXPORT is compiled as import symbol.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non-existing export symbol.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition mlTypeDefs.h:489