OpenCV453
クラス | 公開メンバ関数 | 静的公開メンバ関数 | 限定公開メンバ関数 | 全メンバ一覧
cv::line_descriptor::BinaryDescriptor クラス

Class implements both functionalities for detection of lines and computation of their binary descriptor. [詳解]

#include <descriptor.hpp>

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

クラス

struct  Params
 List of BinaryDescriptor parameters: [詳解]
 

公開メンバ関数

 BinaryDescriptor (const BinaryDescriptor::Params &parameters=BinaryDescriptor::Params())
 Constructor [詳解]
 
 ~BinaryDescriptor ()
 
CV_WRAP int getNumOfOctaves ()
 Get current number of octaves
 
CV_WRAP void setNumOfOctaves (int octaves)
 Set number of octaves [詳解]
 
CV_WRAP int getWidthOfBand ()
 Get current width of bands
 
CV_WRAP void setWidthOfBand (int width)
 Set width of bands [詳解]
 
CV_WRAP int getReductionRatio ()
 Get current reduction ratio (used in Gaussian pyramids)
 
CV_WRAP void setReductionRatio (int rRatio)
 Set reduction ratio (used in Gaussian pyramids) [詳解]
 
virtual void read (const cv::FileNode &fn) CV_OVERRIDE
 Read parameters from a FileNode object and store them [詳解]
 
virtual void write (cv::FileStorage &fs) const CV_OVERRIDE
 Store parameters to a FileStorage object [詳解]
 
CV_WRAP void detect (const Mat &image, CV_OUT std::vector< KeyLine > &keypoints, const Mat &mask=Mat())
 Requires line detection [詳解]
 
void detect (const std::vector< Mat > &images, std::vector< std::vector< KeyLine > > &keylines, const std::vector< Mat > &masks=std::vector< Mat >()) const
 
CV_WRAP void compute (const Mat &image, CV_OUT CV_IN_OUT std::vector< KeyLine > &keylines, CV_OUT Mat &descriptors, bool returnFloatDescr=false) const
 Requires descriptors computation [詳解]
 
void compute (const std::vector< Mat > &images, std::vector< std::vector< KeyLine > > &keylines, std::vector< Mat > &descriptors, bool returnFloatDescr=false) const
 
int descriptorSize () const
 Return descriptor size
 
int descriptorType () const
 Return data type
 
int defaultNorm () const
 
virtual void operator() (InputArray image, InputArray mask, CV_OUT std::vector< KeyLine > &keylines, OutputArray descriptors, bool useProvidedKeyLines=false, bool returnFloatDescr=false) const
 Define operator '()' to perform detection of KeyLines and computation of descriptors in a row. [詳解]
 
- 基底クラス cv::Algorithm に属する継承公開メンバ関数
virtual CV_WRAP void clear ()
 Clears the algorithm state [詳解]
 
CV_WRAP void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
 
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< BinaryDescriptorcreateBinaryDescriptor ()
 Create a BinaryDescriptor object with default parameters (or with the ones provided) and return a smart pointer to it
 
static Ptr< BinaryDescriptorcreateBinaryDescriptor (Params parameters)
 
- 基底クラス 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 [詳解]
 

限定公開メンバ関数

virtual void detectImpl (const Mat &imageSrc, std::vector< KeyLine > &keylines, const Mat &mask=Mat()) const
 
virtual void computeImpl (const Mat &imageSrc, std::vector< KeyLine > &keylines, Mat &descriptors, bool returnFloatDescr, bool useDetectionData) const
 
- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

詳解

Class implements both functionalities for detection of lines and computation of their binary descriptor.

Class' interface is mainly based on the ones of classical detectors and extractors, such as Feature2d's Feature Detection and Description and Descriptor Matchers. Retrieved information about lines is stored in line_descriptor::KeyLine objects.

構築子と解体子

◆ BinaryDescriptor()

cv::line_descriptor::BinaryDescriptor::BinaryDescriptor ( const BinaryDescriptor::Params parameters = BinaryDescriptor::Params())

Constructor

引数
parametersconfiguration parameters BinaryDescriptor::Params

If no argument is provided, constructor sets default values (see comments in the code snippet in previous section). Default values are strongly recommended.

◆ ~BinaryDescriptor()

cv::line_descriptor::BinaryDescriptor::~BinaryDescriptor ( )

destructor

関数詳解

◆ compute() [1/2]

CV_WRAP void cv::line_descriptor::BinaryDescriptor::compute ( const Mat image,
CV_OUT CV_IN_OUT std::vector< KeyLine > &  keylines,
CV_OUT Mat descriptors,
bool  returnFloatDescr = false 
) const

Requires descriptors computation

引数
imageinput image
keylinesvector containing lines for which descriptors must be computed
descriptors
returnFloatDescrflag (when set to true, original non-binary descriptors are returned)

◆ compute() [2/2]

void cv::line_descriptor::BinaryDescriptor::compute ( const std::vector< Mat > &  images,
std::vector< std::vector< KeyLine > > &  keylines,
std::vector< Mat > &  descriptors,
bool  returnFloatDescr = false 
) const

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

引数
imagesinput images
keylinesset of vectors containing lines for which descriptors must be computed
descriptors
returnFloatDescrflag (when set to true, original non-binary descriptors are returned)

◆ computeImpl()

virtual void cv::line_descriptor::BinaryDescriptor::computeImpl ( const Mat imageSrc,
std::vector< KeyLine > &  keylines,
Mat descriptors,
bool  returnFloatDescr,
bool  useDetectionData 
) const
protectedvirtual

implementation of descriptors' computation

◆ defaultNorm()

int cv::line_descriptor::BinaryDescriptor::defaultNorm ( ) const

returns norm mode

◆ detect() [1/2]

CV_WRAP void cv::line_descriptor::BinaryDescriptor::detect ( const Mat image,
CV_OUT std::vector< KeyLine > &  keypoints,
const Mat mask = Mat() 
)

Requires line detection

引数
imageinput image
keypointsvector that will store extracted lines for one or more images
maskmask matrix to detect only KeyLines of interest

◆ detect() [2/2]

void cv::line_descriptor::BinaryDescriptor::detect ( const std::vector< Mat > &  images,
std::vector< std::vector< KeyLine > > &  keylines,
const std::vector< Mat > &  masks = std::vector< Mat >() 
) const

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

引数
imagesinput images
keylinesset of vectors that will store extracted lines for one or more images
masksvector of mask matrices to detect only KeyLines of interest from each input image

◆ detectImpl()

virtual void cv::line_descriptor::BinaryDescriptor::detectImpl ( const Mat imageSrc,
std::vector< KeyLine > &  keylines,
const Mat mask = Mat() 
) const
protectedvirtual

implementation of line detection

◆ operator()()

virtual void cv::line_descriptor::BinaryDescriptor::operator() ( InputArray  image,
InputArray  mask,
CV_OUT std::vector< KeyLine > &  keylines,
OutputArray  descriptors,
bool  useProvidedKeyLines = false,
bool  returnFloatDescr = false 
) const
virtual

Define operator '()' to perform detection of KeyLines and computation of descriptors in a row.

引数
imageinput image
maskmask matrix to select which lines in KeyLines must be accepted among the ones extracted (used when keylines is not empty)
keylinesvector that contains input lines (when filled, the detection part will be skipped and input lines will be passed as input to the algorithm computing descriptors)
descriptorsmatrix that will store final descriptors
useProvidedKeyLinesflag (when set to true, detection phase will be skipped and only computation of descriptors will be executed, using lines provided in keylines)
returnFloatDescrflag (when set to true, original non-binary descriptors are returned)

◆ read()

virtual void cv::line_descriptor::BinaryDescriptor::read ( const cv::FileNode fn)
virtual

Read parameters from a FileNode object and store them

引数
fnsource FileNode file

cv::Algorithmを再実装しています。

◆ setNumOfOctaves()

CV_WRAP void cv::line_descriptor::BinaryDescriptor::setNumOfOctaves ( int  octaves)

Set number of octaves

引数
octavesnumber of octaves

◆ setReductionRatio()

CV_WRAP void cv::line_descriptor::BinaryDescriptor::setReductionRatio ( int  rRatio)

Set reduction ratio (used in Gaussian pyramids)

引数
rRatioreduction ratio

◆ setWidthOfBand()

CV_WRAP void cv::line_descriptor::BinaryDescriptor::setWidthOfBand ( int  width)

Set width of bands

引数
widthwidth of bands

◆ write()

virtual void cv::line_descriptor::BinaryDescriptor::write ( cv::FileStorage fs) const
virtual

Store parameters to a FileStorage object

引数
fsoutput FileStorage file

cv::Algorithmを再実装しています。


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