OpenCV453
公開メンバ関数 | 全メンバ一覧
cv::ShapeContextDistanceExtractor クラスabstract

Implementation of the Shape Context descriptor and matching algorithm [詳解]

#include <shape_distance.hpp>

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

公開メンバ関数

virtual CV_WRAP void setAngularBins (int nAngularBins)=0
 Establish the number of angular bins for the Shape Context Descriptor used in the shape matching pipeline. [詳解]
 
virtual CV_WRAP int getAngularBins () const =0
 
virtual CV_WRAP void setRadialBins (int nRadialBins)=0
 Establish the number of radial bins for the Shape Context Descriptor used in the shape matching pipeline. [詳解]
 
virtual CV_WRAP int getRadialBins () const =0
 
virtual CV_WRAP void setInnerRadius (float innerRadius)=0
 Set the inner radius of the shape context descriptor. [詳解]
 
virtual CV_WRAP float getInnerRadius () const =0
 
virtual CV_WRAP void setOuterRadius (float outerRadius)=0
 Set the outer radius of the shape context descriptor. [詳解]
 
virtual CV_WRAP float getOuterRadius () const =0
 
virtual CV_WRAP void setRotationInvariant (bool rotationInvariant)=0
 
virtual CV_WRAP bool getRotationInvariant () const =0
 
virtual CV_WRAP void setShapeContextWeight (float shapeContextWeight)=0
 Set the weight of the shape context distance in the final value of the shape distance. The shape context distance between two shapes is defined as the symmetric sum of shape context matching costs over best matching points. The final value of the shape distance is a user-defined linear combination of the shape context distance, an image appearance distance, and a bending energy. [詳解]
 
virtual CV_WRAP float getShapeContextWeight () const =0
 
virtual CV_WRAP void setImageAppearanceWeight (float imageAppearanceWeight)=0
 Set the weight of the Image Appearance cost in the final value of the shape distance. The image appearance cost is defined as the sum of squared brightness differences in Gaussian windows around corresponding image points. The final value of the shape distance is a user-defined linear combination of the shape context distance, an image appearance distance, and a bending energy. If this value is set to a number different from 0, is mandatory to set the images that correspond to each shape. [詳解]
 
virtual CV_WRAP float getImageAppearanceWeight () const =0
 
virtual CV_WRAP void setBendingEnergyWeight (float bendingEnergyWeight)=0
 Set the weight of the Bending Energy in the final value of the shape distance. The bending energy definition depends on what transformation is being used to align the shapes. The final value of the shape distance is a user-defined linear combination of the shape context distance, an image appearance distance, and a bending energy. [詳解]
 
virtual CV_WRAP float getBendingEnergyWeight () const =0
 
virtual CV_WRAP void setImages (InputArray image1, InputArray image2)=0
 Set the images that correspond to each shape. This images are used in the calculation of the Image Appearance cost. [詳解]
 
virtual CV_WRAP void getImages (OutputArray image1, OutputArray image2) const =0
 
virtual CV_WRAP void setIterations (int iterations)=0
 
virtual CV_WRAP int getIterations () const =0
 
virtual CV_WRAP void setCostExtractor (Ptr< HistogramCostExtractor > comparer)=0
 Set the algorithm used for building the shape context descriptor cost matrix. [詳解]
 
virtual CV_WRAP Ptr< HistogramCostExtractorgetCostExtractor () const =0
 
virtual CV_WRAP void setStdDev (float sigma)=0
 Set the value of the standard deviation for the Gaussian window for the image appearance cost. [詳解]
 
virtual CV_WRAP float getStdDev () const =0
 
virtual CV_WRAP void setTransformAlgorithm (Ptr< ShapeTransformer > transformer)=0
 Set the algorithm used for aligning the shapes. [詳解]
 
virtual CV_WRAP Ptr< ShapeTransformergetTransformAlgorithm () const =0
 
- 基底クラス cv::ShapeDistanceExtractor に属する継承公開メンバ関数
virtual CV_WRAP float computeDistance (InputArray contour1, InputArray contour2)=0
 Compute the shape distance between two shapes defined by its contours. [詳解]
 
- 基底クラス 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
 

その他の継承メンバ

- 基底クラス 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 [詳解]
 
- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

詳解

Implementation of the Shape Context descriptor and matching algorithm

proposed by Belongie et al. in "Shape Matching and Object Recognition Using Shape Contexts" (PAMI 2002). This implementation is packaged in a generic scheme, in order to allow you the implementation of the common variations of the original pipeline.

関数詳解

◆ setAngularBins()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setAngularBins ( int  nAngularBins)
pure virtual

Establish the number of angular bins for the Shape Context Descriptor used in the shape matching pipeline.

引数
nAngularBinsThe number of angular bins in the shape context descriptor.

◆ setBendingEnergyWeight()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setBendingEnergyWeight ( float  bendingEnergyWeight)
pure virtual

Set the weight of the Bending Energy in the final value of the shape distance. The bending energy definition depends on what transformation is being used to align the shapes. The final value of the shape distance is a user-defined linear combination of the shape context distance, an image appearance distance, and a bending energy.

引数
bendingEnergyWeightThe weight of the Bending Energy in the final distance value.

◆ setCostExtractor()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setCostExtractor ( Ptr< HistogramCostExtractor comparer)
pure virtual

Set the algorithm used for building the shape context descriptor cost matrix.

引数
comparerSmart pointer to a HistogramCostExtractor, an algorithm that defines the cost matrix between descriptors.

◆ setImageAppearanceWeight()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setImageAppearanceWeight ( float  imageAppearanceWeight)
pure virtual

Set the weight of the Image Appearance cost in the final value of the shape distance. The image appearance cost is defined as the sum of squared brightness differences in Gaussian windows around corresponding image points. The final value of the shape distance is a user-defined linear combination of the shape context distance, an image appearance distance, and a bending energy. If this value is set to a number different from 0, is mandatory to set the images that correspond to each shape.

引数
imageAppearanceWeightThe weight of the appearance cost in the final distance value.

◆ setImages()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setImages ( InputArray  image1,
InputArray  image2 
)
pure virtual

Set the images that correspond to each shape. This images are used in the calculation of the Image Appearance cost.

引数
image1Image corresponding to the shape defined by contours1.
image2Image corresponding to the shape defined by contours2.

◆ setInnerRadius()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setInnerRadius ( float  innerRadius)
pure virtual

Set the inner radius of the shape context descriptor.

引数
innerRadiusThe value of the inner radius.

◆ setOuterRadius()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setOuterRadius ( float  outerRadius)
pure virtual

Set the outer radius of the shape context descriptor.

引数
outerRadiusThe value of the outer radius.

◆ setRadialBins()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setRadialBins ( int  nRadialBins)
pure virtual

Establish the number of radial bins for the Shape Context Descriptor used in the shape matching pipeline.

引数
nRadialBinsThe number of radial bins in the shape context descriptor.

◆ setShapeContextWeight()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setShapeContextWeight ( float  shapeContextWeight)
pure virtual

Set the weight of the shape context distance in the final value of the shape distance. The shape context distance between two shapes is defined as the symmetric sum of shape context matching costs over best matching points. The final value of the shape distance is a user-defined linear combination of the shape context distance, an image appearance distance, and a bending energy.

引数
shapeContextWeightThe weight of the shape context distance in the final distance value.

◆ setStdDev()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setStdDev ( float  sigma)
pure virtual

Set the value of the standard deviation for the Gaussian window for the image appearance cost.

引数
sigmaStandard Deviation.

◆ setTransformAlgorithm()

virtual CV_WRAP void cv::ShapeContextDistanceExtractor::setTransformAlgorithm ( Ptr< ShapeTransformer transformer)
pure virtual

Set the algorithm used for aligning the shapes.

引数
transformerSmart pointer to a ShapeTransformer, an algorithm that defines the aligning transformation.

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