29#include <Eigen/Geometry>
31#include <opencv2/opencv.hpp>
40#include <Image/IplImageAdaptor.h>
58 "ThresholdLaplaceBlur",
60 "Threshold value below which the image is considered blurry");
62 "ThresholdPerceptualBlur",
64 "Threshold value below which the image is considered blurry");
66 "providerName",
"Armar3ImageProvider",
"ImageProvider name");
70 "Name of the topic the DebugObserver listens on");
94 return "BlurrinessMetric";
110 CByteImage** cameraImages;
111 std::string providerName;
112 std::mutex imageMutex;
114 visionx::ImageProviderInterfacePrx imageProviderPrx;
119 float frameRate, thresholdLaplace, thresholdPerceptual;
124 double laplaceVarianceBlurrinessMetric(cv::Mat& in);
125 double blurringPerceptual(
const cv::Mat& src);
126 double blurringMarziliano(
const cv::Mat& src);
BlurrinessMetricPropertyDefinitions(std::string prefix)
Brief description of class BlurrinessMetric.
void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
void onExitImageProcessor() override
Exit the ImapeProcessor component.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
void process() override
Process the vision component.
void onInitImageProcessor() override
Setup the vision component.
std::string getDefaultName() const override
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)
The FPSCounter class provides methods for calculating the frames per second (FPS) count in periodic t...
ImageProcessorPropertyDefinitions(std::string prefix)
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
This file offers overloads of toIce() and fromIce() functions for STL container types.
::IceInternal::ProxyHandle<::IceProxy::armarx::DebugObserverInterface > DebugObserverInterfacePrx
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.