MeVisLab Toolbox Reference
mlPCLMLImageToPointCloud.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code author="Wolf Spindler"
3 //----------------------------------------------------------------------------------
5 
12 //----------------------------------------------------------------------------------
13 #pragma once
14 
15 #include "MLPCLMLAdaptersSystem.h"
16 #include <mlPCLModule.h>
17 #include <mlPCLMLTools.h>
18 
19 ML_START_NAMESPACE
20 
21 //----------------------------------------------------------------------------------
23 //----------------------------------------------------------------------------------
25 {
26 public:
29 
30 protected:
32  void activateAttachments() override;
33 
35  void handleNotification (Field* field) override;
36 
37 private:
39  PCLMLTools::ImageToPointCloudConversionParameters _getConversionParameters();
40 
42  void _update();
43 
45  template <typename POINT_CLOUD_PTR_TYPE> void _updateT(const POINT_CLOUD_PTR_TYPE /*inputPointCloudPtr*/);
46 
48  EnumField *_outputPointCloudTypeFld;
49 
51  DoubleField *_thresholdMinFld;
52 
54  DoubleField *_thresholdMaxFld;
55 
57  DoubleField *_lowerValueFld;
58 
60  DoubleField *_upperValueFld;
61 
64  BoolField *_skipVoxelsBelowMinFld;
65 
68  BoolField *_skipVoxelsAboveMaxFld;
69 
73  BoolField *_normalizeInClampedRangeFld;
74 
78  BoolField *_useVectorLengthAsIntensityFld;
79 
83  BoolField *_transformToWorldFld;
84 
87 
90 };
91 
92 ML_END_NAMESPACE
93 
Project global and OS specific declarations.
#define MLPCL_MLAdapters_EXPORT
If included by external modules, exported symbols are declared as import symbols.
Field to encapsulate a boolean value.
Definition: mlFields.h:62
Field to encapsulate a double value.
Definition: mlFields.h:806
Field to encapsulate an enumerated value.
Definition: mlFields.h:363
Base class for all fields used in the ML.
Definition: mlField.h:73
ML Module class to convert an ML PagedImage to a point cloud.
void activateAttachments() override
Updates internal state after changes of fields without field notifications.
PCLMLImageToPointCloud()
Instantiates a module which created a point cloud from an MLPagedImage.
void handleNotification(Field *field) override
Handles field changes of the field field.
ML Module base class for algorithms from the Point Cloud Library (PCL).
Definition: mlPCLModule.h:26
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
A collection of converter tools between the libraries ML and PCL.
ML Module base class for algorithms from the Point Cloud Library (PCL).
#define ML_PCL_TEST_INTERFACE(BASE_OBJECT_NAME)
Implements a dedicated interface for PCL related modules which is required in automatic tests.
A container with parameters for the conversion from ML images to point clouds.
Definition: mlPCLMLTools.h:72