fixes2
This commit is contained in:
parent
1aa83d324b
commit
bdfa9fa14a
@ -130,10 +130,10 @@ The class declaration is the following: ::
|
|||||||
void setVocabulary( const Mat& vocabulary );
|
void setVocabulary( const Mat& vocabulary );
|
||||||
const Mat& getVocabulary() const;
|
const Mat& getVocabulary() const;
|
||||||
void compute( InputArray image, vector<KeyPoint>& keypoints,
|
void compute( InputArray image, vector<KeyPoint>& keypoints,
|
||||||
InputOutputArray imgDescriptor,
|
OutputArray imgDescriptor,
|
||||||
vector<vector<int> >* pointIdxsOfClusters=0,
|
vector<vector<int> >* pointIdxsOfClusters=0,
|
||||||
Mat* descriptors=0 );
|
Mat* descriptors=0 );
|
||||||
void compute( InputArray descriptors, InputOutputArray imgDescriptor,
|
void compute( InputArray descriptors, OutputArray imgDescriptor,
|
||||||
std::vector<std::vector<int> >* pointIdxsOfClusters=0 );
|
std::vector<std::vector<int> >* pointIdxsOfClusters=0 );
|
||||||
int descriptorSize() const;
|
int descriptorSize() const;
|
||||||
int descriptorType() const;
|
int descriptorType() const;
|
||||||
@ -180,8 +180,8 @@ BOWImgDescriptorExtractor::compute
|
|||||||
--------------------------------------
|
--------------------------------------
|
||||||
Computes an image descriptor using the set visual vocabulary.
|
Computes an image descriptor using the set visual vocabulary.
|
||||||
|
|
||||||
.. ocv:function:: void BOWImgDescriptorExtractor::compute( InputArray image, vector<KeyPoint>& keypoints, InputOutputArray imgDescriptor, vector<vector<int> >* pointIdxsOfClusters=0, Mat* descriptors=0 )
|
.. ocv:function:: void BOWImgDescriptorExtractor::compute( InputArray image, vector<KeyPoint>& keypoints, OutputArray imgDescriptor, vector<vector<int> >* pointIdxsOfClusters=0, Mat* descriptors=0 )
|
||||||
.. ocv:function:: void BOWImgDescriptorExtractor::compute( InputArray keypointDescriptors, InputOutputArray imgDescriptor, std::vector<std::vector<int> >* pointIdxsOfClusters=0 )
|
.. ocv:function:: void BOWImgDescriptorExtractor::compute( InputArray keypointDescriptors, OutputArray imgDescriptor, std::vector<std::vector<int> >* pointIdxsOfClusters=0 )
|
||||||
|
|
||||||
:param image: Image, for which the descriptor is computed.
|
:param image: Image, for which the descriptor is computed.
|
||||||
|
|
||||||
|
@ -1518,9 +1518,9 @@ public:
|
|||||||
|
|
||||||
void setVocabulary( const Mat& vocabulary );
|
void setVocabulary( const Mat& vocabulary );
|
||||||
const Mat& getVocabulary() const;
|
const Mat& getVocabulary() const;
|
||||||
void compute( InputArray image, std::vector<KeyPoint>& keypoints, InputOutputArray imgDescriptor,
|
void compute( InputArray image, std::vector<KeyPoint>& keypoints, OutputArray imgDescriptor,
|
||||||
std::vector<std::vector<int> >* pointIdxsOfClusters=0, Mat* descriptors=0 );
|
std::vector<std::vector<int> >* pointIdxsOfClusters=0, Mat* descriptors=0 );
|
||||||
void compute( InputArray keypointDescriptors, InputOutputArray imgDescriptor,
|
void compute( InputArray keypointDescriptors, OutputArray imgDescriptor,
|
||||||
std::vector<std::vector<int> >* pointIdxsOfClusters=0 );
|
std::vector<std::vector<int> >* pointIdxsOfClusters=0 );
|
||||||
// compute() is not constant because DescriptorMatcher::match is not constant
|
// compute() is not constant because DescriptorMatcher::match is not constant
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ const Mat& BOWImgDescriptorExtractor::getVocabulary() const
|
|||||||
return vocabulary;
|
return vocabulary;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BOWImgDescriptorExtractor::compute( InputArray image, std::vector<KeyPoint>& keypoints, InputOutputArray imgDescriptor,
|
void BOWImgDescriptorExtractor::compute( InputArray image, std::vector<KeyPoint>& keypoints, OutputArray imgDescriptor,
|
||||||
std::vector<std::vector<int> >* pointIdxsOfClusters, Mat* descriptors )
|
std::vector<std::vector<int> >* pointIdxsOfClusters, Mat* descriptors )
|
||||||
{
|
{
|
||||||
imgDescriptor.release();
|
imgDescriptor.release();
|
||||||
@ -170,7 +170,7 @@ int BOWImgDescriptorExtractor::descriptorType() const
|
|||||||
return CV_32FC1;
|
return CV_32FC1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BOWImgDescriptorExtractor::compute( InputArray keypointDescriptors, InputOutputArray _imgDescriptor, std::vector<std::vector<int> >* pointIdxsOfClusters )
|
void BOWImgDescriptorExtractor::compute( InputArray keypointDescriptors, OutputArray _imgDescriptor, std::vector<std::vector<int> >* pointIdxsOfClusters )
|
||||||
{
|
{
|
||||||
CV_Assert( vocabulary.empty() != false );
|
CV_Assert( vocabulary.empty() != false );
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ Ptr<DescriptorExtractor> DescriptorExtractor::create(const String& descriptorExt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CV_WRAP void Feature2D::compute( InputArray image, CV_OUT CV_IN_OUT std::vector<KeyPoint>& keypoints, CV_OUT OutputArray descriptors ) const
|
CV_WRAP void Feature2D::compute( InputArray image, CV_OUT CV_IN_OUT std::vector<KeyPoint>& keypoints, OutputArray descriptors ) const
|
||||||
{
|
{
|
||||||
DescriptorExtractor::compute(image, keypoints, descriptors);
|
DescriptorExtractor::compute(image, keypoints, descriptors);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user