Skip to content

Commit

Permalink
renamed gpuwarping -> cudawarping
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Vinogradov committed Sep 2, 2013
1 parent dcd600c commit d4901a9
Show file tree
Hide file tree
Showing 52 changed files with 45 additions and 45 deletions.
9 changes: 9 additions & 0 deletions modules/cudawarping/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if(ANDROID OR IOS)
ocv_module_disable(cudawarping)
endif()

set(the_description "CUDA-accelerated Image Warping")

ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 /wd4324 /wd4512 -Wundef -Wmissing-declarations)

ocv_define_module(cudawarping opencv_imgproc OPTIONAL opencv_cudalegacy)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
//
//M*/

#ifndef __OPENCV_GPUWARPING_HPP__
#define __OPENCV_GPUWARPING_HPP__
#ifndef __OPENCV_CUDAWARPING_HPP__
#define __OPENCV_CUDAWARPING_HPP__

#ifndef __cplusplus
# error gpuwarping.hpp header must be compiled as C++
# error cudawarping.hpp header must be compiled as C++
#endif

#include "opencv2/core/cuda.hpp"
Expand Down Expand Up @@ -110,4 +110,4 @@ CV_EXPORTS Ptr<ImagePyramid> createImagePyramid(InputArray img, int nLayers = -1

}} // namespace cv { namespace cuda {

#endif /* __OPENCV_GPUWARPING_HPP__ */
#endif /* __OPENCV_CUDAWARPING_HPP__ */
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@

using namespace perf;

CV_PERF_TEST_CUDA_MAIN(gpuwarping)
CV_PERF_TEST_CUDA_MAIN(cudawarping)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include "opencv2/ts.hpp"
#include "opencv2/ts/gpu_perf.hpp"

#include "opencv2/gpuwarping.hpp"
#include "opencv2/cudawarping.hpp"
#include "opencv2/imgproc.hpp"

#ifdef GTEST_CREATE_SHARED_LIBRARY
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__

#include "opencv2/gpuwarping.hpp"
#include "opencv2/cudawarping.hpp"

#include "opencv2/core/private.cuda.hpp"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include "opencv2/ts.hpp"
#include "opencv2/ts/gpu_test.hpp"

#include "opencv2/gpuwarping.hpp"
#include "opencv2/cudawarping.hpp"
#include "opencv2/imgproc.hpp"

#include "cvconfig.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion modules/gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set(the_description "GPU-accelerated Computer Vision")

ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 /wd4100 /wd4324 /wd4512 /wd4515 -Wundef -Wmissing-declarations -Wshadow -Wunused-parameter)

ocv_define_module(gpu opencv_calib3d opencv_objdetect opencv_cudaarithm opencv_gpuwarping OPTIONAL opencv_cudalegacy)
ocv_define_module(gpu opencv_calib3d opencv_objdetect opencv_cudaarithm opencv_cudawarping OPTIONAL opencv_cudalegacy)
2 changes: 1 addition & 1 deletion modules/gpu/src/precomp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

#include "opencv2/gpu.hpp"
#include "opencv2/cudaarithm.hpp"
#include "opencv2/gpuwarping.hpp"
#include "opencv2/cudawarping.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/objdetect.hpp"

Expand Down
2 changes: 1 addition & 1 deletion modules/gpufeatures2d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ 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_gpufilters opencv_gpuwarping)
ocv_define_module(gpufeatures2d opencv_features2d opencv_gpufilters opencv_cudawarping)
2 changes: 1 addition & 1 deletion modules/gpufeatures2d/src/precomp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

#include "opencv2/gpufeatures2d.hpp"
#include "opencv2/cudaarithm.hpp"
#include "opencv2/gpuwarping.hpp"
#include "opencv2/cudawarping.hpp"
#include "opencv2/features2d.hpp"

#include "opencv2/core/private.cuda.hpp"
Expand Down
2 changes: 1 addition & 1 deletion modules/gpuoptflow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set(the_description "GPU-accelerated Optical Flow")

ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 /wd4324 /wd4512 -Wundef -Wmissing-declarations)

ocv_define_module(gpuoptflow opencv_video opencv_legacy opencv_cudaarithm opencv_gpuwarping opencv_gpuimgproc OPTIONAL opencv_cudalegacy)
ocv_define_module(gpuoptflow opencv_video opencv_legacy opencv_cudaarithm opencv_cudawarping opencv_gpuimgproc OPTIONAL opencv_cudalegacy)
2 changes: 1 addition & 1 deletion modules/gpuoptflow/src/precomp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

#include "opencv2/gpuoptflow.hpp"
#include "opencv2/cudaarithm.hpp"
#include "opencv2/gpuwarping.hpp"
#include "opencv2/cudawarping.hpp"
#include "opencv2/gpuimgproc.hpp"
#include "opencv2/video.hpp"

Expand Down
9 changes: 0 additions & 9 deletions modules/gpuwarping/CMakeLists.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class CV_EXPORTS TransverseMercatorWarper : public RotationWarperBase<Transverse
};


#ifdef HAVE_OPENCV_GPUWARPING
#ifdef HAVE_OPENCV_CUDAWARPING
class CV_EXPORTS PlaneWarperGpu : public PlaneWarper
{
public:
Expand Down
2 changes: 1 addition & 1 deletion modules/stitching/include/opencv2/stitching/warpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class TransverseMercatorWarper: public WarperCreator



#ifdef HAVE_OPENCV_GPUWARPING
#ifdef HAVE_OPENCV_CUDAWARPING
class PlaneWarperGpu: public WarperCreator
{
public:
Expand Down
6 changes: 3 additions & 3 deletions modules/stitching/src/blenders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ MultiBandBlender::MultiBandBlender(int try_gpu, int num_bands, int weight_type)
{
setNumBands(num_bands);

#if defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_GPUWARPING)
#if defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_CUDAWARPING)
can_use_gpu_ = try_gpu && cuda::getCudaEnabledDeviceCount();
#else
(void) try_gpu;
Expand Down Expand Up @@ -491,7 +491,7 @@ void createLaplacePyr(const Mat &img, int num_levels, std::vector<Mat> &pyr)

void createLaplacePyrGpu(const Mat &img, int num_levels, std::vector<Mat> &pyr)
{
#if defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_GPUWARPING)
#if defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_CUDAWARPING)
pyr.resize(num_levels + 1);

std::vector<cuda::GpuMat> gpu_pyr(num_levels + 1);
Expand Down Expand Up @@ -531,7 +531,7 @@ void restoreImageFromLaplacePyr(std::vector<Mat> &pyr)

void restoreImageFromLaplacePyrGpu(std::vector<Mat> &pyr)
{
#if defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_GPUWARPING)
#if defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_CUDAWARPING)
if (pyr.empty())
return;

Expand Down
4 changes: 2 additions & 2 deletions modules/stitching/src/precomp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
# include "opencv2/cudaarithm.hpp"
#endif

#ifdef HAVE_OPENCV_GPUWARPING
# include "opencv2/gpuwarping.hpp"
#ifdef HAVE_OPENCV_CUDAWARPING
# include "opencv2/cudawarping.hpp"
#endif

#ifdef HAVE_OPENCV_GPUFEATURES2D
Expand Down
2 changes: 1 addition & 1 deletion modules/stitching/src/warpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void SphericalWarper::detectResultRoi(Size src_size, Point &dst_tl, Point &dst_b
}


#ifdef HAVE_OPENCV_GPUWARPING
#ifdef HAVE_OPENCV_CUDAWARPING
Rect PlaneWarperGpu::buildMaps(Size src_size, const Mat &K, const Mat &R, cuda::GpuMat &xmap, cuda::GpuMat &ymap)
{
return buildMaps(src_size, K, R, Mat::zeros(3, 1, CV_32F), xmap, ymap);
Expand Down
2 changes: 1 addition & 1 deletion modules/superres/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set(the_description "Super Resolution")
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 -Wundef)
ocv_define_module(superres opencv_imgproc opencv_video
OPTIONAL opencv_highgui opencv_ocl
opencv_cudaarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc opencv_gpuoptflow opencv_cudacodec)
opencv_cudaarithm opencv_gpufilters opencv_cudawarping opencv_gpuimgproc opencv_gpuoptflow opencv_cudacodec)
2 changes: 1 addition & 1 deletion modules/superres/src/btv_l1_gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ using namespace cv::cuda;
using namespace cv::superres;
using namespace cv::superres::detail;

#if !defined(HAVE_CUDA) || !defined(HAVE_OPENCV_CUDAARITHM) || !defined(HAVE_OPENCV_GPUWARPING) || !defined(HAVE_OPENCV_GPUFILTERS)
#if !defined(HAVE_CUDA) || !defined(HAVE_OPENCV_CUDAARITHM) || !defined(HAVE_OPENCV_CUDAWARPING) || !defined(HAVE_OPENCV_GPUFILTERS)

Ptr<SuperResolution> cv::superres::createSuperResolution_BTVL1_GPU()
{
Expand Down
2 changes: 1 addition & 1 deletion modules/superres/src/cuda/btv_l1_gpu.cu
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include "opencv2/opencv_modules.hpp"

#if defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_GPUWARPING) && defined(HAVE_OPENCV_GPUFILTERS)
#if defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_CUDAWARPING) && defined(HAVE_OPENCV_GPUFILTERS)

#include "opencv2/core/cuda/common.hpp"
#include "opencv2/core/cuda/transform.hpp"
Expand Down
4 changes: 2 additions & 2 deletions modules/superres/src/precomp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
# include "opencv2/cudaarithm.hpp"
#endif

#ifdef HAVE_OPENCV_GPUWARPING
# include "opencv2/gpuwarping.hpp"
#ifdef HAVE_OPENCV_CUDAWARPING
# include "opencv2/cudawarping.hpp"
#endif

#ifdef HAVE_OPENCV_GPUFILTERS
Expand Down
2 changes: 1 addition & 1 deletion modules/superres/test/test_superres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ TEST_F(SuperResolution, BTVL1)
RunTest(cv::superres::createSuperResolution_BTVL1());
}

#if defined(HAVE_CUDA) && defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_GPUWARPING) && defined(HAVE_OPENCV_GPUFILTERS)
#if defined(HAVE_CUDA) && defined(HAVE_OPENCV_CUDAARITHM) && defined(HAVE_OPENCV_CUDAWARPING) && defined(HAVE_OPENCV_GPUFILTERS)

TEST_F(SuperResolution, BTVL1_GPU)
{
Expand Down
2 changes: 1 addition & 1 deletion modules/videostab/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(the_description "Video stabilization")
ocv_define_module(videostab opencv_imgproc opencv_features2d opencv_video opencv_photo opencv_calib3d
OPTIONAL opencv_gpu opencv_gpuwarping opencv_gpuoptflow opencv_highgui)
OPTIONAL opencv_gpu opencv_cudawarping opencv_gpuoptflow opencv_highgui)
6 changes: 3 additions & 3 deletions modules/videostab/src/wobble_suppression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
#include "opencv2/videostab/wobble_suppression.hpp"
#include "opencv2/videostab/ring_buffer.hpp"

#ifdef HAVE_OPENCV_GPUWARPING
# include "opencv2/gpuwarping.hpp"
#ifdef HAVE_OPENCV_CUDAWARPING
# include "opencv2/cudawarping.hpp"
#endif

#ifdef HAVE_OPENCV_GPU
Expand Down Expand Up @@ -122,7 +122,7 @@ void MoreAccurateMotionWobbleSuppressor::suppress(int idx, const Mat &frame, Mat
}


#ifdef HAVE_OPENCV_GPUWARPING
#ifdef HAVE_OPENCV_CUDAWARPING
void MoreAccurateMotionWobbleSuppressorGpu::suppress(int idx, const cuda::GpuMat &frame, cuda::GpuMat &result)
{
CV_Assert(motions_ && stabilizationMotions_);
Expand Down
2 changes: 1 addition & 1 deletion samples/cpp/stitching_detailed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ int main(int argc, char* argv[])
// Warp images and their masks

Ptr<WarperCreator> warper_creator;
#ifdef HAVE_OPENCV_GPUWARPING
#ifdef HAVE_OPENCV_CUDAWARPING
if (try_gpu && cuda::getCudaEnabledDeviceCount() > 0)
{
if (warp_type == "plane") warper_creator = new cv::PlaneWarperGpu();
Expand Down
2 changes: 1 addition & 1 deletion samples/gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SET(OPENCV_GPU_SAMPLES_REQUIRED_DEPS opencv_core opencv_flann opencv_imgproc ope
opencv_ml opencv_video opencv_objdetect opencv_features2d
opencv_calib3d opencv_legacy opencv_contrib opencv_gpu
opencv_nonfree opencv_softcascade opencv_superres
opencv_cudaarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc
opencv_cudaarithm opencv_gpufilters opencv_cudawarping opencv_gpuimgproc
opencv_gpufeatures2d opencv_gpuoptflow opencv_gpubgsegm
opencv_gpustereo opencv_cudalegacy)

Expand Down
2 changes: 1 addition & 1 deletion samples/gpu/cascadeclassifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/gpu.hpp"
#include "opencv2/gpuimgproc.hpp"
#include "opencv2/gpuwarping.hpp"
#include "opencv2/cudawarping.hpp"

using namespace std;
using namespace cv;
Expand Down
2 changes: 1 addition & 1 deletion samples/gpu/performance/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "opencv2/gpu.hpp"
#include "opencv2/gpuimgproc.hpp"
#include "opencv2/cudaarithm.hpp"
#include "opencv2/gpuwarping.hpp"
#include "opencv2/cudawarping.hpp"
#include "opencv2/gpufeatures2d.hpp"
#include "opencv2/gpufilters.hpp"
#include "opencv2/gpuoptflow.hpp"
Expand Down

0 comments on commit d4901a9

Please sign in to comment.