33#include <pcl/point_types.h>
40#include <VisionX/interface/components/PointCloudAndImageAndCalibrationProviderInterface.h>
43class CStereoCalibration;
60 "ImageProviderAdapterName",
61 "Armar3ImageProvider",
62 "Name of the stereo image provider for the camera images and the calibration");
64 "DownsamplingRate", 1,
"Create a point only at every n-th pixel");
68 "Smooth the disparity image to filter out noise, but loose sharp edges");
80 virtual public StereoImagePointCloudProviderInterface,
92 return "StereoImagePointCloudProvider";
160 return imagesAreUndistorted;
163 visionx::MonocularCalibration
174 ImageProviderInterfacePrx imageProviderPrx;
175 std::string providerName;
176 CStereoCalibration* stereoCalibration;
177 CByteImage** cameraImages;
178 CByteImage** cameraImagesGrey;
179 CByteImage** resultImages;
180 CByteImage *disparityImage, *disparityImageRGB;
183 bool imagesAreUndistorted;
184 int downsamplingRate;
185 bool smoothDisparity;
187 std::mutex captureLock;
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
CapturingPointCloudProviderPropertyDefinitions(std::string prefix)
The CapturingPointCloudProvider provides a callback function to trigger the capturing of point clouds...
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
ImageProvider abstract class defines a component which provide images via ice or shared memory.
StereoImagePointCloudProviderPropertyDefinitions(std::string prefix)
bool hasSharedMemorySupport(const Ice::Current &c=Ice::emptyCurrent) override
void onInitComponent() override
void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
bool doCapture() override
void onExitCapturingPointCloudProvider() override
void onDisconnectComponent() override
Hook for subclass.
void onExitImageProcessor() override
Exit the ImapeProcessor component.
void onStartCapture(float frameRate) override
void process() override
Process the vision component.
void onInitCapturingPointCloudProvider() override
MetaPointCloudFormatPtr getDefaultPointCloudFormat() override
default point cloud format used to initialize shared memory
void onInitImageProcessor() override
Setup the vision component.
void onConnectComponent() override
void onStopCapture() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onInitImageProvider() override
void onExitComponent() override
void onExitImageProvider() override
visionx::MonocularCalibration getMonocularCalibration(const ::Ice::Current &c=Ice::emptyCurrent) override
std::string getDefaultName() const override
bool getImagesAreUndistorted(const ::Ice::Current &c=Ice::emptyCurrent) override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.