OpenCV453
公開メンバ関数 | 静的公開メンバ関数 | 公開変数類 | 全メンバ一覧
cv::mcc::CCheckerDetector クラスabstract

A class to find the positions of the ColorCharts in the image. [詳解]

#include <checker_detector.hpp>

cv::Algorithmを継承しています。

公開メンバ関数

virtual CV_WRAP bool setNet (dnn::Net net)=0
 Set the net which will be used to find the approximate bounding boxes for the color charts. [詳解]
 
 CV_WRAP_AS (processWithROI) virtual bool process(InputArray image
 Find the ColorCharts in the given image. [詳解]
 
virtual CV_WRAP bool process (InputArray image, const TYPECHART chartType, const int nc=1, bool useNet=false, const Ptr< DetectorParameters > &params=DetectorParameters::create())=0
 Find the ColorCharts in the given image. [詳解]
 
virtual CV_WRAP Ptr< mcc::CCheckergetBestColorChecker ()=0
 Get the best color checker. By the best it means the one detected with the highest confidence. [詳解]
 
virtual CV_WRAP std::vector< Ptr< CChecker > > getListColorChecker ()=0
 Get the list of all detected colorcheckers [詳解]
 
- 基底クラス cv::Algorithm に属する継承公開メンバ関数
virtual CV_WRAP void clear ()
 Clears the algorithm state [詳解]
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage [詳解]
 
CV_WRAP void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
 
virtual CV_WRAP void read (const FileNode &fn)
 Reads algorithm parameters from a file storage [詳解]
 
virtual CV_WRAP bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read [詳解]
 
virtual CV_WRAP void save (const String &filename) const
 
virtual CV_WRAP String getDefaultName () const
 

静的公開メンバ関数

static CV_WRAP Ptr< CCheckerDetectorcreate ()
 Returns the implementation of the CCheckerDetector.
 
- 基底クラス cv::Algorithm に属する継承静的公開メンバ関数
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node [詳解]
 
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file [詳解]
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String [詳解]
 

公開変数類

const TYPECHART chartType
 
const TYPECHART const std::vector< Rect > & regionsOfInterest
 
const TYPECHART const std::vector< Rect > const int nc = 1
 
const TYPECHART const std::vector< Rect > const int bool useNet = false
 
const TYPECHART const std::vector< Rect > const int bool const Ptr< DetectorParameters > & params = DetectorParameters::create()) = 0
 

その他の継承メンバ

- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

詳解

A class to find the positions of the ColorCharts in the image.

関数詳解

◆ CV_WRAP_AS()

cv::mcc::CCheckerDetector::CV_WRAP_AS ( processWithROI  )

Find the ColorCharts in the given image.

The found charts are not returned but instead stored in the detector, these can be accessed later on using getBestColorChecker() and getListColorChecker()

引数
imageimage in color space BGR
chartTypetype of the chart to detect
regionsOfInterestregions of image to look for the chart, if it is empty, charts are looked for in the entire image
ncnumber of charts in the image, if you don't know the exact then keeping this number high helps.
useNetif it is true the network provided using the setNet() is used for preliminary search for regions where chart could be present, inside the regionsOfInterest provied.
paramsparameters of the detection system. More information about them can be found in the struct DetectorParameters.
戻り値
true if atleast one chart is detected otherwise false

◆ getBestColorChecker()

virtual CV_WRAP Ptr< mcc::CChecker > cv::mcc::CCheckerDetector::getBestColorChecker ( )
pure virtual

Get the best color checker. By the best it means the one detected with the highest confidence.

戻り値
checker A single colorchecker, if atleast one colorchecker was detected, 'nullptr' otherwise.

◆ getListColorChecker()

virtual CV_WRAP std::vector< Ptr< CChecker > > cv::mcc::CCheckerDetector::getListColorChecker ( )
pure virtual

Get the list of all detected colorcheckers

戻り値
checkers vector of colorcheckers

◆ process()

virtual CV_WRAP bool cv::mcc::CCheckerDetector::process ( InputArray  image,
const TYPECHART  chartType,
const int  nc = 1,
bool  useNet = false,
const Ptr< DetectorParameters > &  params = DetectorParameters::create() 
)
pure virtual

Find the ColorCharts in the given image.

Differs from the above one only in the arguments.

This version searches for the chart in the full image.

The found charts are not returned but instead stored in the detector, these can be accessed later on using getBestColorChecker() and getListColorChecker()

引数
imageimage in color space BGR
chartTypetype of the chart to detect
ncnumber of charts in the image, if you don't know the exact then keeping this number high helps.
useNetif it is true the network provided using the setNet() is used for preliminary search for regions where chart could be present, inside the regionsOfInterest provied.
paramsparameters of the detection system. More information about them can be found in the struct DetectorParameters.
戻り値
true if atleast one chart is detected otherwise false

◆ setNet()

virtual CV_WRAP bool cv::mcc::CCheckerDetector::setNet ( dnn::Net  net)
pure virtual

Set the net which will be used to find the approximate bounding boxes for the color charts.

It is not necessary to use this, but this usually results in better detection rate.

引数
netthe neural network, if the network in empty, then the function will return false.
戻り値
true if it was able to set the detector's network, false otherwise.

このクラス詳解は次のファイルから抽出されました: