26#include <opencv2/imgproc/imgproc.hpp>
31#include <Calibration/Calibration.h>
45 return "VideoFileImageProvider";
55 throw armarx::LocalException(
"Failed to open Videofile ")
61 <<
capturer.get(cv::CAP_PROP_FRAME_HEIGHT);
63 capturer.get(cv::CAP_PROP_FRAME_HEIGHT)),
65 visionx::eBayerPatternGr);
89 Ice::Byte* pixels =
static_cast<Ice::Byte*
>(
image.data);
98 memcpy(ppImageBuffers[0], pixels,
image.cols *
image.rows *
image.channels());
133visionx::MonocularCalibration
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Property< PropertyType > getProperty(const std::string &name)
Throw this exception to indicate missing functionality.
float frameRate
Required frame rate.
void setImageSyncMode(ImageSyncMode imageSyncMode)
Sets the image synchronization mode.
armarx::IceSharedMemoryProvider< unsignedchar >::pointer_type sharedMemoryProvider
shared memory provider
void setImageFormat(ImageDimension imageDimension, ImageType imageType, BayerPatternType bayerPatternType=visionx::eBayerPatternRg)
Sets the image basic format data.
void setNumberImages(int numberImages)
Sets the number of images on each capture.
MonocularCalibration getCalibration(const Ice::Current &)
void onStartCapture(float framesPerSecond) override
This is called when the image provider capturing has been started.
cv::VideoCapture capturer
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void onStopCapture() override
This is called when the image provider capturing has been stopped.
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 getDefaultName() const override
Retrieve default name of component.
#define ARMARX_INFO
The normal logging level.
std::shared_ptr< SharedMemoryScopedWriteLock > SharedMemoryScopedWriteLockPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.