mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
fixed typo
This commit is contained in:
parent
47cee8715b
commit
370d1ff21a
@ -65,13 +65,13 @@ protected:
|
|||||||
virtual void run( int start_from );
|
virtual void run( int start_from );
|
||||||
virtual void createModel( const Mat& data ) = 0;
|
virtual void createModel( const Mat& data ) = 0;
|
||||||
virtual int findNeighbors( Mat& points, Mat& neighbors ) = 0;
|
virtual int findNeighbors( Mat& points, Mat& neighbors ) = 0;
|
||||||
virtual int checkGetPoins( const Mat& data );
|
virtual int checkGetPoints( const Mat& data );
|
||||||
virtual int checkFindBoxed();
|
virtual int checkFindBoxed();
|
||||||
virtual int checkFind( const Mat& data );
|
virtual int checkFind( const Mat& data );
|
||||||
virtual void releaseModel() = 0;
|
virtual void releaseModel() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
int NearestNeighborTest::checkGetPoins( const Mat& )
|
int NearestNeighborTest::checkGetPoints( const Mat& )
|
||||||
{
|
{
|
||||||
return cvtest::TS::OK;
|
return cvtest::TS::OK;
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ void NearestNeighborTest::run( int /*start_from*/ ) {
|
|||||||
|
|
||||||
createModel( desc );
|
createModel( desc );
|
||||||
|
|
||||||
tempCode = checkGetPoins( desc );
|
tempCode = checkGetPoints( desc );
|
||||||
if( tempCode != cvtest::TS::OK )
|
if( tempCode != cvtest::TS::OK )
|
||||||
{
|
{
|
||||||
ts->printf( cvtest::TS::LOG, "bad accuracy of GetPoints \n" );
|
ts->printf( cvtest::TS::LOG, "bad accuracy of GetPoints \n" );
|
||||||
@ -162,7 +162,7 @@ public:
|
|||||||
CV_KDTreeTest_CPP() {}
|
CV_KDTreeTest_CPP() {}
|
||||||
protected:
|
protected:
|
||||||
virtual void createModel( const Mat& data );
|
virtual void createModel( const Mat& data );
|
||||||
virtual int checkGetPoins( const Mat& data );
|
virtual int checkGetPoints( const Mat& data );
|
||||||
virtual int findNeighbors( Mat& points, Mat& neighbors );
|
virtual int findNeighbors( Mat& points, Mat& neighbors );
|
||||||
virtual int checkFindBoxed();
|
virtual int checkFindBoxed();
|
||||||
virtual void releaseModel();
|
virtual void releaseModel();
|
||||||
@ -175,7 +175,7 @@ void CV_KDTreeTest_CPP::createModel( const Mat& data )
|
|||||||
tr = new KDTree( data, false );
|
tr = new KDTree( data, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
int CV_KDTreeTest_CPP::checkGetPoins( const Mat& data )
|
int CV_KDTreeTest_CPP::checkGetPoints( const Mat& data )
|
||||||
{
|
{
|
||||||
Mat res1( data.size(), data.type() ),
|
Mat res1( data.size(), data.type() ),
|
||||||
res3( data.size(), data.type() );
|
res3( data.size(), data.type() );
|
||||||
|
Loading…
Reference in New Issue
Block a user