vision
ColorRegionDetector.hpp
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 #ifndef __COLOR_REGION_DETECTOR_HPP__
4 #define __COLOR_REGION_DETECTOR_HPP__
5 
6 #include <yarp/dev/DeviceDriver.h>
7 
8 #include "IDetector.hpp"
9 
10 namespace roboticslab
11 {
12 
18 class ColorRegionDetector : public yarp::dev::DeviceDriver,
19  public IDetector
20 {
21 public:
22  bool open(yarp::os::Searchable& config) override;
23  bool detect(const yarp::sig::Image& inYarpImg, yarp::os::Bottle& detectedObjects) override;
24 
25 private:
26  std::string algorithm;
27  double morphClosing;
28  int threshold;
29  int maxNumBlobs;
30 };
31 
32 } // namespace roboticslab
33 
34 #endif // __COLOR_REGION_DETECTOR_HPP__
Definition: ColorRegionDetector.hpp:20
Interface for object detection.
Definition: IDetector.hpp:17
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:5