mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge branch 'master' into gpu-cuda-rename
Conflicts: modules/core/include/opencv2/core/cuda.hpp modules/cudacodec/src/thread.cpp modules/cudacodec/src/thread.hpp modules/superres/perf/perf_superres.cpp modules/superres/src/btv_l1_cuda.cpp modules/superres/src/optical_flow.cpp modules/videostab/src/global_motion.cpp modules/videostab/src/inpainting.cpp samples/cpp/stitching_detailed.cpp samples/cpp/videostab.cpp samples/gpu/stereo_multi.cpp
This commit is contained in:
@@ -2563,19 +2563,19 @@ int main(int argc, char** argv)
|
||||
Ptr<FeatureDetector> featureDetector = FeatureDetector::create( ddmParams.detectorType );
|
||||
Ptr<DescriptorExtractor> descExtractor = DescriptorExtractor::create( ddmParams.descriptorType );
|
||||
Ptr<BOWImgDescriptorExtractor> bowExtractor;
|
||||
if( featureDetector.empty() || descExtractor.empty() )
|
||||
if( !featureDetector || !descExtractor )
|
||||
{
|
||||
cout << "featureDetector or descExtractor was not created" << endl;
|
||||
return -1;
|
||||
}
|
||||
{
|
||||
Ptr<DescriptorMatcher> descMatcher = DescriptorMatcher::create( ddmParams.matcherType );
|
||||
if( featureDetector.empty() || descExtractor.empty() || descMatcher.empty() )
|
||||
if( !featureDetector || !descExtractor || !descMatcher )
|
||||
{
|
||||
cout << "descMatcher was not created" << endl;
|
||||
return -1;
|
||||
}
|
||||
bowExtractor = new BOWImgDescriptorExtractor( descExtractor, descMatcher );
|
||||
bowExtractor = makePtr<BOWImgDescriptorExtractor>( descExtractor, descMatcher );
|
||||
}
|
||||
|
||||
// Print configuration to screen
|
||||
|
||||
Reference in New Issue
Block a user