Go to the documentation of this file.
33 #include <opencv2/opencv.hpp>
35 #include <Image/IplImageAdaptor.h>
38 #include <Eigen/Geometry>
58 defineOptionalProperty<float>(
"Framerate", 30.0,
"the framerate");
59 defineOptionalProperty<float>(
"ThresholdLaplaceBlur", 250.0,
"Threshold value below which the image is considered blurry");
60 defineOptionalProperty<float>(
"ThresholdPerceptualBlur", 0.97,
"Threshold value below which the image is considered blurry");
61 defineOptionalProperty<std::string>(
"providerName",
"Armar3ImageProvider",
"ImageProvider name");
63 defineOptionalProperty<std::string>(
"DebugObserverName",
"DebugObserver",
"Name of the topic the DebugObserver listens on");
87 return "BlurrinessMetric";
103 CByteImage** cameraImages;
104 std::string providerName;
105 std::mutex imageMutex;
107 visionx::ImageProviderInterfacePrx imageProviderPrx;
112 float frameRate, thresholdLaplace, thresholdPerceptual;
117 double laplaceVarianceBlurrinessMetric(cv::Mat& in);
118 double blurringPerceptual(
const cv::Mat& src);
119 double blurringMarziliano(
const cv::Mat& src);
void onExitImageProcessor() override
Exit the ImapeProcessor component.
The ImageProcessor class provides an interface for access to ImageProviders via Ice and shared memory...
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
ImageProcessorPropertyDefinitions(std::string prefix)
Brief description of class BlurrinessMetric.
void process() override
Process the vision component.
void onConnectImageProcessor() override
Implement this method in the ImageProcessor in order execute parts when the component is fully initia...
void onInitImageProcessor() override
Setup the vision component.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::string getDefaultName() const override
The FPSCounter class provides methods for calculating the frames per second (FPS) count in periodic t...
BlurrinessMetricPropertyDefinitions(std::string prefix)