1 #include "objectdetectionimpl.h" 5 QVariant ObjectDetection::_ObjectDetectionImpl::getResults()
const 10 void ObjectDetection::_ObjectDetectionImpl::setResults(
const QVariant &value)
15 std::vector<PluginSharedPointer> ObjectDetection::_ObjectDetectionImpl::getFilters()
const 20 void ObjectDetection::_ObjectDetectionImpl::setFilters(
const std::vector<PluginSharedPointer> &value)
25 Mat ObjectDetection::_ObjectDetectionImpl::applyFilters(Mat dst)
const 27 for(
auto pro : _filters)
29 dst = pro->filter(dst);
34 ObjectDetection::_ObjectDetectionImpl::_ObjectDetectionImpl(
ObjectDetection *
const ptr):
42 Dilate *ObjectDetection::_ObjectDetectionImpl::getDiler()
const 47 void ObjectDetection::_ObjectDetectionImpl::addFilter(PluginSharedPointer proc)
49 _filters.push_back(proc);
52 void ObjectDetection::_ObjectDetectionImpl::setDiler(
Dilate *diler)
55 _diler->setParent(_ptr);
58 DetectColor *ObjectDetection::_ObjectDetectionImpl::getColDetector()
const 63 void ObjectDetection::_ObjectDetectionImpl::setColDetector(
DetectColor *colDetector)
65 _colDetector = colDetector;
66 _colDetector->setParent(_ptr);
73 QVariant ObjectDetection::_ObjectDetectionImpl::processImage()
75 return QVariant::fromValue(getCircles());
78 DetectCircle *ObjectDetection::_ObjectDetectionImpl::getCirDetector()
const 83 void ObjectDetection::_ObjectDetectionImpl::setCirDetector(
DetectCircle *cirDetector)
85 _cirDetector = cirDetector;
86 _cirDetector->setParent(_ptr);
90 std::vector<Vec3f> ObjectDetection::_ObjectDetectionImpl::getCircles()
93 getColDetector()->setImg(_ptr->getImg());
94 getColDetector()->processImage();
95 auto dst = getColDetector()->getDst();
98 getDiler()->setImg(dst);
99 getDiler()->processImage();
100 dst = getDiler()->getDst();
101 getCirDetector()->setImg(dst);
102 QVariant var = getCirDetector()->processImage();
104 return var.value<std::vector<cv::Vec3f>>();
this class is used to detect a a colored circle object(s)
this class is used To Detect circles in an image
this class is used to Detect Color given it's range(min, max) of hsv colors.
Common Namespace for all Image Processor Algorithms.
this Class is used to perform morphological dilate operation on image see Morphological Operation...