mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
added sample on BOW usage to image classification (training and testing is on Pascal VOC dataset)
This commit is contained in:
@@ -84,7 +84,7 @@ Mat BOWKMeansTrainer::cluster() const
|
||||
Mat mergedDescriptors( descCount, descriptors[0].cols, descriptors[0].type() );
|
||||
for( size_t i = 0, start = 0; i < descriptors.size(); i++ )
|
||||
{
|
||||
Mat submut = mergedDescriptors.rowRange(start, descriptors[i].rows);
|
||||
Mat submut = mergedDescriptors.rowRange(start, start + descriptors[i].rows);
|
||||
descriptors[i].copyTo(submut);
|
||||
start += descriptors[i].rows;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user