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";
116 CByteImage** cameraImages;
117 std::string providerName;
118 std::mutex imageMutex;
120 visionx::ImageProviderInterfacePrx imageProviderPrx;
125 float frameRate, thresholdLaplace, thresholdPerceptual;
130 double laplaceVarianceBlurrinessMetric(cv::Mat& in);
131 double blurringPerceptual(
const cv::Mat& src);
132 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.
static std::string GetDefaultName()
std::string getDefaultName() const override
Retrieve default name of component.
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.