31#include <VisionX/interface/components/Calibration.h>
33#include <Calibration/Rectification.h>
34#include <Calibration/Undistortion.h>
35#include <Image/ImageProcessor.h>
36#include <flycapture/FlyCapture2.h>
52 "serialNumbers",
"10121969 10121966 10121963 10121968",
"camera serial numbers");
57 "dimensions", visionx::ImageDimension(1600, 1200),
"")
58 .map(
"640x480", visionx::ImageDimension(640, 480))
59 .map(
"1600x1200", visionx::ImageDimension(1600, 1200));
62 .setMatchRegex(
"\\d+(.\\d*)?")
67 "UndistortImages",
true,
"Perform undistortion of the images.");
69 "RectifyImages",
true,
"Perform rectification of the images.");
72 "ReferenceFrameName",
"EyeLeftCamera",
"Optional reference frame name.");
77 "Exposure value. Negative values can be used to enable auto exposure.");
79 "Shutter", 20,
"Shutter value. Negative values can be used to enable auto mode.");
81 "Gain", 0.0,
"Gain value. Negative values can be used to enable auto mode.");
103 return "FlyCaptureImageProvider";
115 bool capture(
void** ppImageBuffers)
override;
131 FlyCapture2::BusManager busManager;
132 std::vector<FlyCapture2::Camera*> cameras;
134 std::vector<std::string> serialNumbers;
136 std::vector<FlyCapture2::Image*> colorImages;
138 CByteImage** cameraImages;
143 virtual public visionx::StereoCalibrationCaptureProviderInterface
149 visionx::StereoCalibration
152 return stereoCalibration;
169 visionx::StereoCalibration stereoCalibration;
Default component property definition container.
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Property< PropertyType > getProperty(const std::string &name)
FlyCaptureImageProviderPropertyDefinitions(std::string prefix)
void onStartCapture(float frameRate) override
This is called when the image provider capturing has been started.
CUndistortion * undistortion
CRectification * rectification
void onStopCapture() override
This is called when the image provider capturing has been stopped.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onExitCapturingImageProvider() override
This is called when the Component::onExitComponent() setup is called.
void onInitCapturingImageProvider() override
This is called when the Component::onInitComponent() is called.
std::string calibrationFileName
std::string getDefaultName() const override
std::string getReferenceFrame(const Ice::Current &c=Ice::emptyCurrent) override
visionx::StereoCalibration getStereoCalibration(const Ice::Current &c=Ice::emptyCurrent) override
bool getImagesAreUndistorted(const Ice::Current &c=Ice::emptyCurrent) override
void onInitCapturingImageProvider() override
This is called when the Component::onInitComponent() is called.
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)
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
The CapturingImageProvider provides a callback function to trigger the capturing of images with diffe...
float frameRate
Required frame rate.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.