mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
remove const from functions returning by value
This commit is contained in:
@@ -1143,8 +1143,8 @@ protected:
|
||||
virtual void clear();
|
||||
|
||||
const Mat& getDescriptors() const;
|
||||
const Mat getDescriptor( int imgIdx, int localDescIdx ) const;
|
||||
const Mat getDescriptor( int globalDescIdx ) const;
|
||||
Mat getDescriptor( int imgIdx, int localDescIdx ) const;
|
||||
Mat getDescriptor( int globalDescIdx ) const;
|
||||
void getLocalIdx( int globalDescIdx, int& imgIdx, int& localDescIdx ) const;
|
||||
|
||||
int size() const;
|
||||
|
||||
@@ -475,7 +475,7 @@ void DescriptorMatcher::DescriptorCollection::clear()
|
||||
mergedDescriptors.release();
|
||||
}
|
||||
|
||||
const Mat DescriptorMatcher::DescriptorCollection::getDescriptor( int imgIdx, int localDescIdx ) const
|
||||
Mat DescriptorMatcher::DescriptorCollection::getDescriptor( int imgIdx, int localDescIdx ) const
|
||||
{
|
||||
CV_Assert( imgIdx < (int)startIdxs.size() );
|
||||
int globalIdx = startIdxs[imgIdx] + localDescIdx;
|
||||
@@ -489,7 +489,7 @@ const Mat& DescriptorMatcher::DescriptorCollection::getDescriptors() const
|
||||
return mergedDescriptors;
|
||||
}
|
||||
|
||||
const Mat DescriptorMatcher::DescriptorCollection::getDescriptor( int globalDescIdx ) const
|
||||
Mat DescriptorMatcher::DescriptorCollection::getDescriptor( int globalDescIdx ) const
|
||||
{
|
||||
CV_Assert( globalDescIdx < size() );
|
||||
return mergedDescriptors.row( globalDescIdx );
|
||||
|
||||
Reference in New Issue
Block a user