28#include <VisionX/interface/components/Calibration.h>
35#include <Calibration/StereoCalibration.h>
36#include <Image/ByteImage.h>
37#include <VideoCapture/BitmapSequenceCapture.h>
49 "Filename and path of the left camera images. Enter the path of the first image of "
50 "the sequence. Filenames need to follow the format: path/*%d.bmp (e.g. "
51 "path/image_left0000.bmp).");
55 "Filename and path of the right camera images. Enter the path of the first image "
56 "of the sequence. Filenames need to follow the format: path/*%d.bmp (e.g. "
57 "path/image_right0000.bmp).");
59 .setMatchRegex(
"\\d+(.\\d*)?")
64 ImageDimension(640, 480),
65 "Target resolution of the images. Loaded images will be converted to this size.")
66 .setCaseInsensitive(
true)
67 .map(
"320x240", ImageDimension(320, 240))
68 .map(
"640x480", ImageDimension(640, 480))
69 .map(
"648x482", ImageDimension(648, 482))
70 .map(
"800x600", ImageDimension(800, 600))
71 .map(
"768x576", ImageDimension(768, 576))
72 .map(
"1024x768", ImageDimension(1024, 768))
73 .map(
"1024x1024", ImageDimension(1024, 1024))
74 .map(
"1280x960", ImageDimension(1280, 960))
75 .map(
"1600x1200", ImageDimension(1600, 1200))
76 .map(
"none", ImageDimension(0, 0));
81 "Camera calibration file, will be made available in the SLICE interface");
83 "ImagesAreUndistorted",
false,
"Sets whether images are provided undistorted.");
85 "LoadNextImageAutomatically",
87 "If true, a new image is loaded everytime the 'capture()' function is executed. If "
88 "false, the same image is provided until 'loadNextImage()' is called from "
91 "RepeatImageCount", 1,
"Repeats the images for the specified amount of time.");
94 "ReferenceFrameName",
"EyeLeftCamera",
"Optional reference frame name.");
115 virtual public ImageFileSequenceProviderInterface
121 return "ImageSequenceProvider";
129 visionx::StereoCalibration
150 const std::string& imageFilePathRight =
"",
151 const Ice::Current&
c = Ice::emptyCurrent)
override;
153 void loadNextImage(
const Ice::Current&
c = Ice::emptyCurrent)
override;
177 bool capture(
void** ppImageBuffers)
override;
204 CStereoCalibration ivtStereoCalibration;
209 StereoCalibration stereoCalibration;
211 int currentRepeatCount = 0;
212 int repeatImageCount;
Default component property definition container.
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Property< PropertyType > getProperty(const std::string &name)
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.
ImageSequenceProviderPropertyDefinitions(std::string prefix)
Image sequence provider loads images from a device and broadcasts notifications after loading at a sp...
std::string getReferenceFrame(const Ice::Current &c=Ice::emptyCurrent) override
CByteImage ** resizedImages
void loadNextImage(const Ice::Current &c=Ice::emptyCurrent) override
CBitmapSequenceCapture * bitmapSequenceCapture
void setImageFilePath(const std::string &imageFilePathLeft, const std::string &imageFilePathRight="", const Ice::Current &c=Ice::emptyCurrent) override
Set the paths for the image files.
void onStartCapture(float frameRate) override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
std::string filePathRight
bool getImagesAreUndistorted(const Ice::Current &c=Ice::emptyCurrent) override
Returns whether images are undistorted.
visionx::StereoCalibration getStereoCalibration(const Ice::Current &c=Ice::emptyCurrent) override
Returns the StereoCalibration as provided in configuration.
void onStopCapture() override
void onExitCapturingImageProvider() override
void onInitCapturingImageProvider() override
bool loadNewImageAtNextCapture
std::string getDefaultName() const override
Retrieve default name of component.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.