status("")
status(" NVIDIA CUDA")
- status(" Use CUFFT:" HAVE_CUFFT THEN YES ELSE NO)
- status(" Use CUBLAS:" HAVE_CUBLAS THEN YES ELSE NO)
+ status(" Use CUFFT:" HAVE_CUFFT THEN YES ELSE NO)
+ status(" Use CUBLAS:" HAVE_CUBLAS THEN YES ELSE NO)
+ status(" USE NVCUVID:" HAVE_NVCUVID THEN YES ELSE NO)
status(" NVIDIA GPU arch:" ${OPENCV_CUDA_ARCH_BIN})
status(" NVIDIA PTX archs:" ${OPENCV_CUDA_ARCH_PTX})
status(" Use fast math:" CUDA_FAST_MATH THEN YES ELSE NO)
set(the_description "GPU-accelerated Computer Vision")
ocv_add_module(gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video opencv_nonfree opencv_photo opencv_legacy)
-ocv_module_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/cuda" "${CMAKE_CURRENT_SOURCE_DIR}/../highgui/src")
+ocv_module_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/cuda")
file(GLOB lib_hdrs "include/opencv2/${name}/*.hpp" "include/opencv2/${name}/*.h")
file(GLOB lib_device_hdrs "include/opencv2/${name}/device/*.hpp" "include/opencv2/${name}/device/*.h")
#if defined(HAVE_CUDA) && defined(HAVE_NVCUVID)
#if defined(HAVE_FFMPEG) && defined(BUILD_SHARED_LIBS)
- #include "cap_ffmpeg_impl.hpp"
+ #include "../src/cap_ffmpeg_impl.hpp"
#else
- #include "cap_ffmpeg_api.hpp"
+ #include "../src/cap_ffmpeg_api.hpp"
#endif
namespace
//
//M*/
-#include <precomp.hpp>
+#include "precomp.hpp"
namespace cv { namespace gpu
{
//
//M*/
-#include <precomp.hpp>
+#include "precomp.hpp"
#if !defined (HAVE_CUDA)
cv::gpu::SCascade::SCascade(const double, const double, const int, const int) { throw_nogpu(); }
{ throw_nogpu(); return cv::Ptr<cv::gpu::ChannelsProcessor>(0); }
#else
-# include <icf.hpp>
+# include "icf.hpp"
cv::gpu::device::icf::Level::Level(int idx, const Octave& oct, const float scale, const int w, const int h)
: octave(idx), step(oct.stages), relScale(scale / oct.scale)
void shrink(const cv::gpu::PtrStepSzb& channels, cv::gpu::PtrStepSzb shrunk);
}
-// namespace imgproc {
-// void shfl_integral_gpu_buffered(PtrStepSzb, PtrStepSz<uint4>, PtrStepSz<unsigned int>, int, cudaStream_t);
-
-// template <typename T>
-// void resize_gpu(PtrStepSzb src, PtrStepSzb srcWhole, int xoff, int yoff, float fx, float fy,
-// PtrStepSzb dst, int interpolation, cudaStream_t stream);
-// }
-
}}}
struct cv::gpu::SCascade::Fields
//
//M*/
-#include <precomp.hpp>
+#include "precomp.hpp"
cv::SCascade::Channels::Channels(int shr) : shrinkage(shr) {}
//
//M*/
-#include <precomp.hpp>
+#include "precomp.hpp"
namespace cv
{
//
//M*/
-#include <precomp.hpp>
+#include "precomp.hpp"
namespace {
std::vector<Detection> objects;
detect( _image, _rois, objects);
- _rects.create(1, objects.size(), CV_32SC4);
+ _rects.create(1, (int)objects.size(), CV_32SC4);
cv::Mat_<cv::Rect> rects = (cv::Mat_<cv::Rect>)_rects.getMat();
cv::Rect* rectPtr = rects.ptr<cv::Rect>(0);
- _confs.create(1, objects.size(), CV_32F);
+ _confs.create(1, (int)objects.size(), CV_32F);
cv::Mat confs = _confs.getMat();
float* confPtr = rects.ptr<float>(0);