31#include <Image/ByteImage.h>
32#include <Image/ImageProcessor.h>
33#include <Interfaces/VideoCaptureInterface.h>
35#include <VideoCapture/Linux1394CaptureThreaded2.h>
82 "VideoMode", ImageDimension(640, 480),
"Image resolution")
83 .setCaseInsensitive(
true)
84 .map(
"320x240", ImageDimension(320, 240))
85 .map(
"640x480", ImageDimension(640, 480))
86 .map(
"800x600", ImageDimension(800, 600))
87 .map(
"768x576", ImageDimension(768, 576))
88 .map(
"1024x768", ImageDimension(1024, 768))
89 .map(
"1280x960", ImageDimension(1280, 960))
90 .map(
"1600x1200", ImageDimension(1600, 1200))
91 .map(
"none", ImageDimension(0, 0));
94 "ColorMode",
ColorFormat(CVideoCaptureInterface::eRGB24, eRgb),
"Image color mode")
95 .setCaseInsensitive(
true)
96 .map(
"gray-scale",
ColorFormat(CVideoCaptureInterface::eGrayScale, eGrayScale))
97 .map(
"rgb",
ColorFormat(CVideoCaptureInterface::eRGB24, eRgb))
99 ColorFormat(CVideoCaptureInterface::eBayerPatternToRGB24, eBayerPattern))
100 .map(
"bayer-pattern-to-rgb",
101 ColorFormat(CVideoCaptureInterface::eBayerPatternToRGB24, eRgb))
102 .map(
"yuv411-to-rgb",
ColorFormat(CVideoCaptureInterface::eYUV411ToRGB24, eRgb));
105 "BayerPatternType", eBayerPatternRg,
"Raw image color pattern")
106 .setCaseInsensitive(
true)
107 .map(
"bayer-pattern-bg", eBayerPatternBg)
108 .map(
"bayer-pattern-gb", eBayerPatternGb)
109 .map(
"bayer-pattern-gr", eBayerPatternGr)
110 .map(
"bayer-pattern-rg", eBayerPatternRg);
115 .setMatchRegex(
"\\d+(.\\d*)?")
121 "Camera UIDs seperated by comma, space or tab")
122 .setCaseInsensitive(
true)
123 .setMatchRegex(
"\\s*[a-zA-Z0-9]{16}\\s*((,|\\s)\\s*[a-zA-Z0-9]{16})*");
126 "ReferenceFrameName",
"EyeLeftCameras",
"Optional reference frame name.");
198 bool capture(
void** ppImageBuffers)
override;
206 return "IEEE1394ImageProvider";
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.
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.
IEEE1394 image provider captures images from one or more cameras and supports the following image tra...
bool isFormat7Mode
Indicate whether using format 7 modes or not.
CByteImage ** ppImages
Captured images.
visionx::BayerPatternType bayerPatternType
Specific bayer pattern type, if ColorMode is BayerPattern.
void onStartCapture(float frameRate) override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
CLinux1394CaptureThreaded2 * ieee1394Capturer
IEEE1394 Capture.
visionx::ImageDimension videoDimension
Video dimension data.
std::vector< std::string > uids
Camera UID list.
void onStopCapture() override
void onExitCapturingImageProvider() override
ColorFormat colorFormat
Camera color mode and resulting image time.
void onInitCapturingImageProvider() override
std::string getDefaultName() const override
IEEE1394PropertyDefinitions(std::string prefix)
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.