mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 02:16:34 +08:00
samples: apply CV_OVERRIDE/CV_FINAL
This commit is contained in:
@@ -227,7 +227,7 @@ private:
|
||||
ParallelTrailsFilling( const GPCForest *_forest, const std::vector< GPCPatchDescriptor > *_descr, std::vector< Trail > *_trails )
|
||||
: forest( _forest ), descr( _descr ), trails( _trails ){};
|
||||
|
||||
void operator()( const Range &range ) const
|
||||
void operator()( const Range &range ) const CV_OVERRIDE
|
||||
{
|
||||
for ( int t = range.start; t < range.end; ++t )
|
||||
for ( size_t i = 0; i < descr->size(); ++i )
|
||||
@@ -272,7 +272,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void write( FileStorage &fs ) const
|
||||
void write( FileStorage &fs ) const CV_OVERRIDE
|
||||
{
|
||||
fs << "ntrees" << T << "trees"
|
||||
<< "[";
|
||||
@@ -285,7 +285,7 @@ public:
|
||||
fs << "]";
|
||||
}
|
||||
|
||||
void read( const FileNode &fn )
|
||||
void read( const FileNode &fn ) CV_OVERRIDE
|
||||
{
|
||||
CV_Assert( T <= (int)fn["ntrees"] );
|
||||
FileNodeIterator it = fn["trees"].begin();
|
||||
|
Reference in New Issue
Block a user