1 #include "objectdetection.h" 2 #include "impl/objectdetectionimpl.h" 10 _pimpl {INIT_UNIQUE_PTR(_ObjectDetectionImpl,
this)}
19 return _pimpl->getDiler();
28 return _pimpl->getColDetector();
36 return _pimpl->getCirDetector();
44 return _pimpl->getCircles();
53 _pimpl->setCirDetector(cirDetector);
61 _pimpl->setDiler(diler);
64 void ObjectDetection::setColDetector(
DetectColor *colDetector)
66 _pimpl->setColDetector(colDetector);
75 _pimpl->addFilter(proc);
78 std::vector<PluginSharedPointer> ObjectDetection::getFilters()
const 80 return _pimpl->getFilters();
83 void ObjectDetection::setFilters(
const std::vector<PluginSharedPointer> &value)
85 _pimpl->setFilters(value);
88 QVariant ObjectDetection::getResults()
const 90 return _pimpl->getResults();
93 void ObjectDetection::setResults(QVariant res)
95 _pimpl->setResults(res);
106 return _pimpl->applyFilters(dst);
108 ObjectDetection::~ObjectDetection()
115 return _pimpl->processImage();
void addFilter(PluginSharedPointer proc)
ObjectDetection::addFilter adds a filter from a plugin.
std::vector< cv::Vec3f > getCircles()
ObjectDetection::getCircles.
virtual QVariant processImage() override
Pure Virtual Function representes the operation to be done on the Image to be processed.
The ImageProcessor::AbstractImageProcessor is an Abstract Base Class For All Image Processor Classes...
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.
void setCirDetector(DetectCircle *cirDetector)
ObjectDetection::setCirDetector sets the circleDetector.
DetectColor * getColDetector() const
ObjectDetection::getColDetector.
DetectCircle * getCirDetector() const
ObjectDetection::getCirDetector.
ObjectDetection(QObject *parent=nullptr)
ObjectDetection::ObjectDetection.
void setDiler(Dilate *diler)
ObjectDetection::setDiler sets the dilate object.
Common Namespace for all Image Processor Algorithms.
Dilate * getDiler() const
ObjectDetection::getDiler.
this Class is used to perform morphological dilate operation on image see Morphological Operation...
cv::Mat applyFilters(cv::Mat dst) const
ObjectDetection::applyFilters applies filters to the image.