renamed gpufeatures2d -> cudafeatures2d
This commit is contained in:
parent
5660d6a680
commit
259ceb7eaa
modules
cudafeatures2d
CMakeLists.txt
doc
include/opencv2
perf
src
test
gpufeatures2d
stitching
samples/gpu
9
modules/cudafeatures2d/CMakeLists.txt
Normal file
9
modules/cudafeatures2d/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
if(ANDROID OR IOS)
|
||||||
|
ocv_module_disable(cudafeatures2d)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(the_description "CUDA-accelerated Feature Detection and Description")
|
||||||
|
|
||||||
|
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 /wd4100 /wd4324 /wd4512 /wd4515 -Wundef -Wmissing-declarations -Wshadow -Wunused-parameter)
|
||||||
|
|
||||||
|
ocv_define_module(cudafeatures2d opencv_features2d opencv_cudafilters opencv_cudawarping)
|
@ -40,11 +40,11 @@
|
|||||||
//
|
//
|
||||||
//M*/
|
//M*/
|
||||||
|
|
||||||
#ifndef __OPENCV_GPUFEATURES2D_HPP__
|
#ifndef __OPENCV_CUDAFEATURES2D_HPP__
|
||||||
#define __OPENCV_GPUFEATURES2D_HPP__
|
#define __OPENCV_CUDAFEATURES2D_HPP__
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
# error gpufeatures2d.hpp header must be compiled as C++
|
# error cudafeatures2d.hpp header must be compiled as C++
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "opencv2/core/cuda.hpp"
|
#include "opencv2/core/cuda.hpp"
|
||||||
@ -358,4 +358,4 @@ private:
|
|||||||
|
|
||||||
}} // namespace cv { namespace cuda {
|
}} // namespace cv { namespace cuda {
|
||||||
|
|
||||||
#endif /* __OPENCV_GPUFEATURES2D_HPP__ */
|
#endif /* __OPENCV_CUDAFEATURES2D_HPP__ */
|
@ -44,4 +44,4 @@
|
|||||||
|
|
||||||
using namespace perf;
|
using namespace perf;
|
||||||
|
|
||||||
CV_PERF_TEST_CUDA_MAIN(gpufeatures2d)
|
CV_PERF_TEST_CUDA_MAIN(cudafeatures2d)
|
@ -54,7 +54,7 @@
|
|||||||
#include "opencv2/ts.hpp"
|
#include "opencv2/ts.hpp"
|
||||||
#include "opencv2/ts/gpu_perf.hpp"
|
#include "opencv2/ts/gpu_perf.hpp"
|
||||||
|
|
||||||
#include "opencv2/gpufeatures2d.hpp"
|
#include "opencv2/cudafeatures2d.hpp"
|
||||||
#include "opencv2/features2d.hpp"
|
#include "opencv2/features2d.hpp"
|
||||||
|
|
||||||
#ifdef GTEST_CREATE_SHARED_LIBRARY
|
#ifdef GTEST_CREATE_SHARED_LIBRARY
|
@ -47,7 +47,7 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
|
||||||
#include "opencv2/gpufeatures2d.hpp"
|
#include "opencv2/cudafeatures2d.hpp"
|
||||||
#include "opencv2/cudaarithm.hpp"
|
#include "opencv2/cudaarithm.hpp"
|
||||||
#include "opencv2/cudawarping.hpp"
|
#include "opencv2/cudawarping.hpp"
|
||||||
#include "opencv2/features2d.hpp"
|
#include "opencv2/features2d.hpp"
|
@ -54,7 +54,7 @@
|
|||||||
#include "opencv2/ts.hpp"
|
#include "opencv2/ts.hpp"
|
||||||
#include "opencv2/ts/gpu_test.hpp"
|
#include "opencv2/ts/gpu_test.hpp"
|
||||||
|
|
||||||
#include "opencv2/gpufeatures2d.hpp"
|
#include "opencv2/cudafeatures2d.hpp"
|
||||||
#include "opencv2/features2d.hpp"
|
#include "opencv2/features2d.hpp"
|
||||||
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
@ -1,9 +0,0 @@
|
|||||||
if(ANDROID OR IOS)
|
|
||||||
ocv_module_disable(gpufeatures2d)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(the_description "GPU-accelerated Feature Detection and Description")
|
|
||||||
|
|
||||||
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 /wd4100 /wd4324 /wd4512 /wd4515 -Wundef -Wmissing-declarations -Wshadow -Wunused-parameter)
|
|
||||||
|
|
||||||
ocv_define_module(gpufeatures2d opencv_features2d opencv_cudafilters opencv_cudawarping)
|
|
@ -1,3 +1,3 @@
|
|||||||
set(the_description "Images stitching")
|
set(the_description "Images stitching")
|
||||||
ocv_define_module(stitching opencv_imgproc opencv_features2d opencv_calib3d opencv_objdetect
|
ocv_define_module(stitching opencv_imgproc opencv_features2d opencv_calib3d opencv_objdetect
|
||||||
OPTIONAL opencv_gpu opencv_cudaarithm opencv_cudafilters opencv_gpufeatures2d opencv_nonfree)
|
OPTIONAL opencv_gpu opencv_cudaarithm opencv_cudafilters opencv_cudafeatures2d opencv_nonfree)
|
||||||
|
@ -125,7 +125,7 @@ private:
|
|||||||
float match_conf_;
|
float match_conf_;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef HAVE_OPENCV_GPUFEATURES2D
|
#ifdef HAVE_OPENCV_CUDAFEATURES2D
|
||||||
class GpuMatcher : public FeaturesMatcher
|
class GpuMatcher : public FeaturesMatcher
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -200,7 +200,7 @@ void CpuMatcher::match(const ImageFeatures &features1, const ImageFeatures &feat
|
|||||||
LOG("1->2 & 2->1 matches: " << matches_info.matches.size() << endl);
|
LOG("1->2 & 2->1 matches: " << matches_info.matches.size() << endl);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_OPENCV_GPUFEATURES2D
|
#ifdef HAVE_OPENCV_CUDAFEATURES2D
|
||||||
void GpuMatcher::match(const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo& matches_info)
|
void GpuMatcher::match(const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo& matches_info)
|
||||||
{
|
{
|
||||||
matches_info.matches.clear();
|
matches_info.matches.clear();
|
||||||
@ -531,7 +531,7 @@ BestOf2NearestMatcher::BestOf2NearestMatcher(bool try_use_gpu, float match_conf,
|
|||||||
{
|
{
|
||||||
(void)try_use_gpu;
|
(void)try_use_gpu;
|
||||||
|
|
||||||
#ifdef HAVE_OPENCV_GPUFEATURES2D
|
#ifdef HAVE_OPENCV_CUDAFEATURES2D
|
||||||
if (try_use_gpu && getCudaEnabledDeviceCount() > 0)
|
if (try_use_gpu && getCudaEnabledDeviceCount() > 0)
|
||||||
{
|
{
|
||||||
impl_ = new GpuMatcher(match_conf);
|
impl_ = new GpuMatcher(match_conf);
|
||||||
|
@ -76,8 +76,8 @@
|
|||||||
# include "opencv2/cudawarping.hpp"
|
# include "opencv2/cudawarping.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_OPENCV_GPUFEATURES2D
|
#ifdef HAVE_OPENCV_CUDAFEATURES2D
|
||||||
# include "opencv2/gpufeatures2d.hpp"
|
# include "opencv2/cudafeatures2d.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_OPENCV_GPU
|
#ifdef HAVE_OPENCV_GPU
|
||||||
|
@ -3,7 +3,7 @@ SET(OPENCV_GPU_SAMPLES_REQUIRED_DEPS opencv_core opencv_flann opencv_imgproc ope
|
|||||||
opencv_calib3d opencv_legacy opencv_contrib opencv_gpu
|
opencv_calib3d opencv_legacy opencv_contrib opencv_gpu
|
||||||
opencv_nonfree opencv_softcascade opencv_superres
|
opencv_nonfree opencv_softcascade opencv_superres
|
||||||
opencv_cudaarithm opencv_cudafilters opencv_cudawarping opencv_cudaimgproc
|
opencv_cudaarithm opencv_cudafilters opencv_cudawarping opencv_cudaimgproc
|
||||||
opencv_gpufeatures2d opencv_cudaoptflow opencv_gpubgsegm
|
opencv_cudafeatures2d opencv_cudaoptflow opencv_gpubgsegm
|
||||||
opencv_cudastereo opencv_cudalegacy)
|
opencv_cudastereo opencv_cudalegacy)
|
||||||
|
|
||||||
ocv_check_dependencies(${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})
|
ocv_check_dependencies(${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include "opencv2/cudaimgproc.hpp"
|
#include "opencv2/cudaimgproc.hpp"
|
||||||
#include "opencv2/cudaarithm.hpp"
|
#include "opencv2/cudaarithm.hpp"
|
||||||
#include "opencv2/cudawarping.hpp"
|
#include "opencv2/cudawarping.hpp"
|
||||||
#include "opencv2/gpufeatures2d.hpp"
|
#include "opencv2/cudafeatures2d.hpp"
|
||||||
#include "opencv2/cudafilters.hpp"
|
#include "opencv2/cudafilters.hpp"
|
||||||
#include "opencv2/cudaoptflow.hpp"
|
#include "opencv2/cudaoptflow.hpp"
|
||||||
#include "opencv2/gpubgsegm.hpp"
|
#include "opencv2/gpubgsegm.hpp"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include "opencv2/core/core.hpp"
|
#include "opencv2/core/core.hpp"
|
||||||
#include "opencv2/features2d/features2d.hpp"
|
#include "opencv2/features2d/features2d.hpp"
|
||||||
#include "opencv2/highgui/highgui.hpp"
|
#include "opencv2/highgui/highgui.hpp"
|
||||||
#include "opencv2/gpufeatures2d.hpp"
|
#include "opencv2/cudafeatures2d.hpp"
|
||||||
#include "opencv2/nonfree/gpu.hpp"
|
#include "opencv2/nonfree/gpu.hpp"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user