Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
eda124ec
Commit
eda124ec
authored
Apr 11, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed gpuobjdetect module
parent
28b1caa7
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
172 additions
and
606 deletions
+172
-606
CMakeLists.txt
modules/gpu/CMakeLists.txt
+1
-1
gpu.rst
modules/gpu/doc/gpu.rst
+1
-0
object_detection.rst
modules/gpu/doc/object_detection.rst
+0
-0
gpu.hpp
modules/gpu/include/opencv2/gpu.hpp
+120
-1
perf_objdetect.cpp
modules/gpu/perf/perf_objdetect.cpp
+0
-0
perf_precomp.hpp
modules/gpu/perf/perf_precomp.hpp
+1
-0
cascadeclassifier.cpp
modules/gpu/src/cascadeclassifier.cpp
+33
-2
hog.cu
modules/gpu/src/cuda/hog.cu
+0
-0
lbp.cu
modules/gpu/src/cuda/lbp.cu
+0
-0
lbp.hpp
modules/gpu/src/cuda/lbp.hpp
+0
-0
hog.cpp
modules/gpu/src/hog.cpp
+0
-0
precomp.hpp
modules/gpu/src/precomp.hpp
+11
-0
test_objdetect.cpp
modules/gpu/test/test_objdetect.cpp
+0
-0
test_precomp.hpp
modules/gpu/test/test_precomp.hpp
+4
-1
CMakeLists.txt
modules/gpuobjdetect/CMakeLists.txt
+0
-9
gpuobjdetect.rst
modules/gpuobjdetect/doc/gpuobjdetect.rst
+0
-8
gpuobjdetect.hpp
modules/gpuobjdetect/include/opencv2/gpuobjdetect.hpp
+0
-172
perf_main.cpp
modules/gpuobjdetect/perf/perf_main.cpp
+0
-47
perf_precomp.cpp
modules/gpuobjdetect/perf/perf_precomp.cpp
+0
-43
perf_precomp.hpp
modules/gpuobjdetect/perf/perf_precomp.hpp
+0
-65
precomp.cpp
modules/gpuobjdetect/src/precomp.cpp
+0
-43
precomp.hpp
modules/gpuobjdetect/src/precomp.hpp
+0
-61
test_main.cpp
modules/gpuobjdetect/test/test_main.cpp
+0
-45
test_precomp.cpp
modules/gpuobjdetect/test/test_precomp.cpp
+0
-43
test_precomp.hpp
modules/gpuobjdetect/test/test_precomp.hpp
+0
-63
CMakeLists.txt
samples/cpp/CMakeLists.txt
+0
-1
CMakeLists.txt
samples/gpu/CMakeLists.txt
+1
-1
No files found.
modules/gpu/CMakeLists.txt
View file @
eda124ec
...
@@ -7,7 +7,7 @@ set(the_description "GPU-accelerated Computer Vision")
...
@@ -7,7 +7,7 @@ set(the_description "GPU-accelerated Computer Vision")
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations -Wshadow -Wunused-parameter
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations -Wshadow -Wunused-parameter
)
ocv_define_module
(
gpu opencv_gpuarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc
ocv_define_module
(
gpu opencv_gpuarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc
opencv_gpufeatures2d opencv_gpuvideo opencv_gpustereo
opencv_gpuobjdetect
)
opencv_gpufeatures2d opencv_gpuvideo opencv_gpustereo
)
if
(
HAVE_CUDA
)
if
(
HAVE_CUDA
)
add_subdirectory
(
perf4au
)
add_subdirectory
(
perf4au
)
...
...
modules/gpu/doc/gpu.rst
View file @
eda124ec
...
@@ -8,3 +8,4 @@ gpu. GPU-accelerated Computer Vision
...
@@ -8,3 +8,4 @@ gpu. GPU-accelerated Computer Vision
introduction
introduction
initalization_and_information
initalization_and_information
data_structures
data_structures
object_detection
modules/gpu
objdetect
/doc/object_detection.rst
→
modules/gpu/doc/object_detection.rst
View file @
eda124ec
File moved
modules/gpu/include/opencv2/gpu.hpp
View file @
eda124ec
...
@@ -51,10 +51,129 @@
...
@@ -51,10 +51,129 @@
#include "opencv2/gpufeatures2d.hpp"
#include "opencv2/gpufeatures2d.hpp"
#include "opencv2/gpuvideo.hpp"
#include "opencv2/gpuvideo.hpp"
#include "opencv2/gpustereo.hpp"
#include "opencv2/gpustereo.hpp"
#include "opencv2/gpuobjdetect.hpp"
namespace
cv
{
namespace
gpu
{
namespace
cv
{
namespace
gpu
{
//////////////// HOG (Histogram-of-Oriented-Gradients) Descriptor and Object Detector //////////////
struct
CV_EXPORTS
HOGConfidence
{
double
scale
;
std
::
vector
<
Point
>
locations
;
std
::
vector
<
double
>
confidences
;
std
::
vector
<
double
>
part_scores
[
4
];
};
struct
CV_EXPORTS
HOGDescriptor
{
enum
{
DEFAULT_WIN_SIGMA
=
-
1
};
enum
{
DEFAULT_NLEVELS
=
64
};
enum
{
DESCR_FORMAT_ROW_BY_ROW
,
DESCR_FORMAT_COL_BY_COL
};
HOGDescriptor
(
Size
win_size
=
Size
(
64
,
128
),
Size
block_size
=
Size
(
16
,
16
),
Size
block_stride
=
Size
(
8
,
8
),
Size
cell_size
=
Size
(
8
,
8
),
int
nbins
=
9
,
double
win_sigma
=
DEFAULT_WIN_SIGMA
,
double
threshold_L2hys
=
0.2
,
bool
gamma_correction
=
true
,
int
nlevels
=
DEFAULT_NLEVELS
);
size_t
getDescriptorSize
()
const
;
size_t
getBlockHistogramSize
()
const
;
void
setSVMDetector
(
const
std
::
vector
<
float
>&
detector
);
static
std
::
vector
<
float
>
getDefaultPeopleDetector
();
static
std
::
vector
<
float
>
getPeopleDetector48x96
();
static
std
::
vector
<
float
>
getPeopleDetector64x128
();
void
detect
(
const
GpuMat
&
img
,
std
::
vector
<
Point
>&
found_locations
,
double
hit_threshold
=
0
,
Size
win_stride
=
Size
(),
Size
padding
=
Size
());
void
detectMultiScale
(
const
GpuMat
&
img
,
std
::
vector
<
Rect
>&
found_locations
,
double
hit_threshold
=
0
,
Size
win_stride
=
Size
(),
Size
padding
=
Size
(),
double
scale0
=
1.05
,
int
group_threshold
=
2
);
void
computeConfidence
(
const
GpuMat
&
img
,
std
::
vector
<
Point
>&
hits
,
double
hit_threshold
,
Size
win_stride
,
Size
padding
,
std
::
vector
<
Point
>&
locations
,
std
::
vector
<
double
>&
confidences
);
void
computeConfidenceMultiScale
(
const
GpuMat
&
img
,
std
::
vector
<
Rect
>&
found_locations
,
double
hit_threshold
,
Size
win_stride
,
Size
padding
,
std
::
vector
<
HOGConfidence
>
&
conf_out
,
int
group_threshold
);
void
getDescriptors
(
const
GpuMat
&
img
,
Size
win_stride
,
GpuMat
&
descriptors
,
int
descr_format
=
DESCR_FORMAT_COL_BY_COL
);
Size
win_size
;
Size
block_size
;
Size
block_stride
;
Size
cell_size
;
int
nbins
;
double
win_sigma
;
double
threshold_L2hys
;
bool
gamma_correction
;
int
nlevels
;
protected
:
void
computeBlockHistograms
(
const
GpuMat
&
img
);
void
computeGradient
(
const
GpuMat
&
img
,
GpuMat
&
grad
,
GpuMat
&
qangle
);
double
getWinSigma
()
const
;
bool
checkDetectorSize
()
const
;
static
int
numPartsWithin
(
int
size
,
int
part_size
,
int
stride
);
static
Size
numPartsWithin
(
Size
size
,
Size
part_size
,
Size
stride
);
// Coefficients of the separating plane
float
free_coef
;
GpuMat
detector
;
// Results of the last classification step
GpuMat
labels
,
labels_buf
;
Mat
labels_host
;
// Results of the last histogram evaluation step
GpuMat
block_hists
,
block_hists_buf
;
// Gradients conputation results
GpuMat
grad
,
qangle
,
grad_buf
,
qangle_buf
;
// returns subbuffer with required size, reallocates buffer if nessesary.
static
GpuMat
getBuffer
(
const
Size
&
sz
,
int
type
,
GpuMat
&
buf
);
static
GpuMat
getBuffer
(
int
rows
,
int
cols
,
int
type
,
GpuMat
&
buf
);
std
::
vector
<
GpuMat
>
image_scales
;
};
// The cascade classifier class for object detection: supports old haar and new lbp xlm formats and nvbin for haar cascades olny.
class
CV_EXPORTS
CascadeClassifier_GPU
{
public
:
CascadeClassifier_GPU
();
CascadeClassifier_GPU
(
const
String
&
filename
);
~
CascadeClassifier_GPU
();
bool
empty
()
const
;
bool
load
(
const
String
&
filename
);
void
release
();
/* returns number of detected objects */
int
detectMultiScale
(
const
GpuMat
&
image
,
GpuMat
&
objectsBuf
,
double
scaleFactor
=
1.2
,
int
minNeighbors
=
4
,
Size
minSize
=
Size
());
int
detectMultiScale
(
const
GpuMat
&
image
,
GpuMat
&
objectsBuf
,
Size
maxObjectSize
,
Size
minSize
=
Size
(),
double
scaleFactor
=
1.1
,
int
minNeighbors
=
4
);
bool
findLargestObject
;
bool
visualizeInPlace
;
Size
getClassifierSize
()
const
;
private
:
struct
CascadeClassifierImpl
;
CascadeClassifierImpl
*
impl
;
struct
HaarCascade
;
struct
LbpCascade
;
friend
class
CascadeClassifier_GPU_LBP
;
};
//!performs labeling via graph cuts of a 2D regular 4-connected graph.
//!performs labeling via graph cuts of a 2D regular 4-connected graph.
CV_EXPORTS
void
graphcut
(
GpuMat
&
terminals
,
GpuMat
&
leftTransp
,
GpuMat
&
rightTransp
,
GpuMat
&
top
,
GpuMat
&
bottom
,
GpuMat
&
labels
,
CV_EXPORTS
void
graphcut
(
GpuMat
&
terminals
,
GpuMat
&
leftTransp
,
GpuMat
&
rightTransp
,
GpuMat
&
top
,
GpuMat
&
bottom
,
GpuMat
&
labels
,
GpuMat
&
buf
,
Stream
&
stream
=
Stream
::
Null
());
GpuMat
&
buf
,
Stream
&
stream
=
Stream
::
Null
());
...
...
modules/gpu
objdetect
/perf/perf_objdetect.cpp
→
modules/gpu/perf/perf_objdetect.cpp
View file @
eda124ec
File moved
modules/gpu/perf/perf_precomp.hpp
View file @
eda124ec
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
#include "opencv2/gpu.hpp"
#include "opencv2/gpu.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/objdetect.hpp"
#ifdef GTEST_CREATE_SHARED_LIBRARY
#ifdef GTEST_CREATE_SHARED_LIBRARY
#error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
#error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
...
...
modules/gpu
objdetect
/src/cascadeclassifier.cpp
→
modules/gpu/src/cascadeclassifier.cpp
View file @
eda124ec
...
@@ -41,8 +41,6 @@
...
@@ -41,8 +41,6 @@
//M*/
//M*/
#include "precomp.hpp"
#include "precomp.hpp"
#include <vector>
#include <iostream>
#include "opencv2/objdetect/objdetect_c.h"
#include "opencv2/objdetect/objdetect_c.h"
using
namespace
cv
;
using
namespace
cv
;
...
@@ -75,6 +73,37 @@ public:
...
@@ -75,6 +73,37 @@ public:
virtual
bool
read
(
const
String
&
classifierAsXml
)
=
0
;
virtual
bool
read
(
const
String
&
classifierAsXml
)
=
0
;
};
};
#ifndef HAVE_OPENCV_GPULEGACY
struct
cv
::
gpu
::
CascadeClassifier_GPU
::
HaarCascade
{
public
:
HaarCascade
()
{
throw_no_cuda
();
}
unsigned
int
process
(
const
GpuMat
&
,
GpuMat
&
,
float
,
int
,
bool
,
bool
,
cv
::
Size
,
cv
::
Size
)
{
throw_no_cuda
();
return
0
;
}
cv
::
Size
getClassifierCvSize
()
const
{
throw_no_cuda
();
return
cv
::
Size
();
}
bool
read
(
const
String
&
)
{
throw_no_cuda
();
return
false
;
}
};
#else
struct
cv
::
gpu
::
CascadeClassifier_GPU
::
HaarCascade
:
cv
::
gpu
::
CascadeClassifier_GPU
::
CascadeClassifierImpl
struct
cv
::
gpu
::
CascadeClassifier_GPU
::
HaarCascade
:
cv
::
gpu
::
CascadeClassifier_GPU
::
CascadeClassifierImpl
{
{
public
:
public
:
...
@@ -284,6 +313,8 @@ private:
...
@@ -284,6 +313,8 @@ private:
virtual
~
HaarCascade
(){}
virtual
~
HaarCascade
(){}
};
};
#endif
cv
::
Size
operator
-
(
const
cv
::
Size
&
a
,
const
cv
::
Size
&
b
)
cv
::
Size
operator
-
(
const
cv
::
Size
&
a
,
const
cv
::
Size
&
b
)
{
{
return
cv
::
Size
(
a
.
width
-
b
.
width
,
a
.
height
-
b
.
height
);
return
cv
::
Size
(
a
.
width
-
b
.
width
,
a
.
height
-
b
.
height
);
...
...
modules/gpu
objdetect
/src/cuda/hog.cu
→
modules/gpu/src/cuda/hog.cu
View file @
eda124ec
File moved
modules/gpu
objdetect
/src/cuda/lbp.cu
→
modules/gpu/src/cuda/lbp.cu
View file @
eda124ec
File moved
modules/gpu
objdetect
/src/cuda/lbp.hpp
→
modules/gpu/src/cuda/lbp.hpp
View file @
eda124ec
File moved
modules/gpu
objdetect
/src/hog.cpp
→
modules/gpu/src/hog.cpp
View file @
eda124ec
File moved
modules/gpu/src/precomp.hpp
View file @
eda124ec
...
@@ -43,9 +43,20 @@
...
@@ -43,9 +43,20 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#include <vector>
#include <iostream>
#include "opencv2/gpu.hpp"
#include "opencv2/gpu.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/objdetect.hpp"
#include "opencv2/core/gpu_private.hpp"
#include "opencv2/core/gpu_private.hpp"
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_GPULEGACY
# include "opencv2/gpulegacy.hpp"
# include "opencv2/gpulegacy/private.hpp"
#endif
#endif
/* __OPENCV_PRECOMP_H__ */
#endif
/* __OPENCV_PRECOMP_H__ */
modules/gpu
objdetect
/test/test_objdetect.cpp
→
modules/gpu/test/test_objdetect.cpp
View file @
eda124ec
File moved
modules/gpu/test/test_precomp.hpp
View file @
eda124ec
...
@@ -51,12 +51,15 @@
...
@@ -51,12 +51,15 @@
#ifndef __OPENCV_TEST_PRECOMP_HPP__
#ifndef __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__
#include <fstream>
#include "opencv2/ts.hpp"
#include "opencv2/ts.hpp"
#include "opencv2/ts/gpu_test.hpp"
#include "opencv2/ts/gpu_test.hpp"
#include "opencv2/gpu.hpp"
#include "opencv2/core.hpp"
#include "opencv2/core.hpp"
#include "opencv2/core/opengl.hpp"
#include "opencv2/core/opengl.hpp"
#include "opencv2/gpu.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/objdetect.hpp"
#endif
#endif
modules/gpuobjdetect/CMakeLists.txt
deleted
100644 → 0
View file @
28b1caa7
if
(
ANDROID OR IOS
)
ocv_module_disable
(
gpuobjdetect
)
endif
()
set
(
the_description
"GPU-accelerated Object Detection"
)
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wundef -Wmissing-declarations
)
ocv_define_module
(
gpuobjdetect opencv_objdetect opencv_gpuwarping opencv_gpuimgproc OPTIONAL opencv_gpulegacy
)
modules/gpuobjdetect/doc/gpuobjdetect.rst
deleted
100644 → 0
View file @
28b1caa7
*************************************
gpu. GPU-accelerated Object Detection
*************************************
.. toctree::
:maxdepth: 1
object_detection
modules/gpuobjdetect/include/opencv2/gpuobjdetect.hpp
deleted
100644 → 0
View file @
28b1caa7
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#ifndef __OPENCV_GPUOBJDETECT_HPP__
#define __OPENCV_GPUOBJDETECT_HPP__
#include "opencv2/core/gpumat.hpp"
namespace
cv
{
namespace
gpu
{
//////////////// HOG (Histogram-of-Oriented-Gradients) Descriptor and Object Detector //////////////
struct
CV_EXPORTS
HOGConfidence
{
double
scale
;
std
::
vector
<
Point
>
locations
;
std
::
vector
<
double
>
confidences
;
std
::
vector
<
double
>
part_scores
[
4
];
};
struct
CV_EXPORTS
HOGDescriptor
{
enum
{
DEFAULT_WIN_SIGMA
=
-
1
};
enum
{
DEFAULT_NLEVELS
=
64
};
enum
{
DESCR_FORMAT_ROW_BY_ROW
,
DESCR_FORMAT_COL_BY_COL
};
HOGDescriptor
(
Size
win_size
=
Size
(
64
,
128
),
Size
block_size
=
Size
(
16
,
16
),
Size
block_stride
=
Size
(
8
,
8
),
Size
cell_size
=
Size
(
8
,
8
),
int
nbins
=
9
,
double
win_sigma
=
DEFAULT_WIN_SIGMA
,
double
threshold_L2hys
=
0.2
,
bool
gamma_correction
=
true
,
int
nlevels
=
DEFAULT_NLEVELS
);
size_t
getDescriptorSize
()
const
;
size_t
getBlockHistogramSize
()
const
;
void
setSVMDetector
(
const
std
::
vector
<
float
>&
detector
);
static
std
::
vector
<
float
>
getDefaultPeopleDetector
();
static
std
::
vector
<
float
>
getPeopleDetector48x96
();
static
std
::
vector
<
float
>
getPeopleDetector64x128
();
void
detect
(
const
GpuMat
&
img
,
std
::
vector
<
Point
>&
found_locations
,
double
hit_threshold
=
0
,
Size
win_stride
=
Size
(),
Size
padding
=
Size
());
void
detectMultiScale
(
const
GpuMat
&
img
,
std
::
vector
<
Rect
>&
found_locations
,
double
hit_threshold
=
0
,
Size
win_stride
=
Size
(),
Size
padding
=
Size
(),
double
scale0
=
1.05
,
int
group_threshold
=
2
);
void
computeConfidence
(
const
GpuMat
&
img
,
std
::
vector
<
Point
>&
hits
,
double
hit_threshold
,
Size
win_stride
,
Size
padding
,
std
::
vector
<
Point
>&
locations
,
std
::
vector
<
double
>&
confidences
);
void
computeConfidenceMultiScale
(
const
GpuMat
&
img
,
std
::
vector
<
Rect
>&
found_locations
,
double
hit_threshold
,
Size
win_stride
,
Size
padding
,
std
::
vector
<
HOGConfidence
>
&
conf_out
,
int
group_threshold
);
void
getDescriptors
(
const
GpuMat
&
img
,
Size
win_stride
,
GpuMat
&
descriptors
,
int
descr_format
=
DESCR_FORMAT_COL_BY_COL
);
Size
win_size
;
Size
block_size
;
Size
block_stride
;
Size
cell_size
;
int
nbins
;
double
win_sigma
;
double
threshold_L2hys
;
bool
gamma_correction
;
int
nlevels
;
protected
:
void
computeBlockHistograms
(
const
GpuMat
&
img
);
void
computeGradient
(
const
GpuMat
&
img
,
GpuMat
&
grad
,
GpuMat
&
qangle
);
double
getWinSigma
()
const
;
bool
checkDetectorSize
()
const
;
static
int
numPartsWithin
(
int
size
,
int
part_size
,
int
stride
);
static
Size
numPartsWithin
(
Size
size
,
Size
part_size
,
Size
stride
);
// Coefficients of the separating plane
float
free_coef
;
GpuMat
detector
;
// Results of the last classification step
GpuMat
labels
,
labels_buf
;
Mat
labels_host
;
// Results of the last histogram evaluation step
GpuMat
block_hists
,
block_hists_buf
;
// Gradients conputation results
GpuMat
grad
,
qangle
,
grad_buf
,
qangle_buf
;
// returns subbuffer with required size, reallocates buffer if nessesary.
static
GpuMat
getBuffer
(
const
Size
&
sz
,
int
type
,
GpuMat
&
buf
);
static
GpuMat
getBuffer
(
int
rows
,
int
cols
,
int
type
,
GpuMat
&
buf
);
std
::
vector
<
GpuMat
>
image_scales
;
};
// The cascade classifier class for object detection: supports old haar and new lbp xlm formats and nvbin for haar cascades olny.
class
CV_EXPORTS
CascadeClassifier_GPU
{
public
:
CascadeClassifier_GPU
();
CascadeClassifier_GPU
(
const
String
&
filename
);
~
CascadeClassifier_GPU
();
bool
empty
()
const
;
bool
load
(
const
String
&
filename
);
void
release
();
/* returns number of detected objects */
int
detectMultiScale
(
const
GpuMat
&
image
,
GpuMat
&
objectsBuf
,
double
scaleFactor
=
1.2
,
int
minNeighbors
=
4
,
Size
minSize
=
Size
());
int
detectMultiScale
(
const
GpuMat
&
image
,
GpuMat
&
objectsBuf
,
Size
maxObjectSize
,
Size
minSize
=
Size
(),
double
scaleFactor
=
1.1
,
int
minNeighbors
=
4
);
bool
findLargestObject
;
bool
visualizeInPlace
;
Size
getClassifierSize
()
const
;
private
:
struct
CascadeClassifierImpl
;
CascadeClassifierImpl
*
impl
;
struct
HaarCascade
;
struct
LbpCascade
;
friend
class
CascadeClassifier_GPU_LBP
;
};
}}
// namespace cv { namespace gpu {
#endif
/* __OPENCV_GPUOBJDETECT_HPP__ */
modules/gpuobjdetect/perf/perf_main.cpp
deleted
100644 → 0
View file @
28b1caa7
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#include "perf_precomp.hpp"
using
namespace
perf
;
CV_PERF_TEST_MAIN
(
gpuarithm
,
printCudaInfo
())
modules/gpuobjdetect/perf/perf_precomp.cpp
deleted
100644 → 0
View file @
28b1caa7
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#include "perf_precomp.hpp"
modules/gpuobjdetect/perf/perf_precomp.hpp
deleted
100644 → 0
View file @
28b1caa7
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#ifdef __GNUC__
# pragma GCC diagnostic ignored "-Wmissing-declarations"
# if defined __clang__ || defined __APPLE__
# pragma GCC diagnostic ignored "-Wmissing-prototypes"
# pragma GCC diagnostic ignored "-Wextra"
# endif
#endif
#ifndef __OPENCV_PERF_PRECOMP_HPP__
#define __OPENCV_PERF_PRECOMP_HPP__
#include "opencv2/ts.hpp"
#include "opencv2/ts/gpu_perf.hpp"
#include "opencv2/gpuobjdetect.hpp"
#include "opencv2/objdetect.hpp"
#ifdef GTEST_CREATE_SHARED_LIBRARY
#error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
#endif
#endif
modules/gpuobjdetect/src/precomp.cpp
deleted
100644 → 0
View file @
28b1caa7
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#include "precomp.hpp"
modules/gpuobjdetect/src/precomp.hpp
deleted
100644 → 0
View file @
28b1caa7
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#include "opencv2/gpuobjdetect.hpp"
#include "opencv2/gpuwarping.hpp"
#include "opencv2/gpuimgproc.hpp"
#include "opencv2/gpuarithm.hpp"
#include "opencv2/objdetect.hpp"
#include "opencv2/core/gpu_private.hpp"
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_GPULEGACY
# include "opencv2/gpulegacy/private.hpp"
#endif
#endif
/* __OPENCV_PRECOMP_H__ */
modules/gpuobjdetect/test/test_main.cpp
deleted
100644 → 0
View file @
28b1caa7
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#include "test_precomp.hpp"
CV_GPU_TEST_MAIN
(
"gpu"
)
modules/gpuobjdetect/test/test_precomp.cpp
deleted
100644 → 0
View file @
28b1caa7
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#include "test_precomp.hpp"
modules/gpuobjdetect/test/test_precomp.hpp
deleted
100644 → 0
View file @
28b1caa7
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// * The name of the copyright holders may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// This software is provided by the copyright holders and contributors "as is" and
// any express or implied warranties, including, but not limited to, the implied
// warranties of merchantability and fitness for a particular purpose are disclaimed.
// In no event shall the Intel Corporation or contributors be liable for any direct,
// indirect, incidental, special, exemplary, or consequential damages
// (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused
// and on any theory of liability, whether in contract, strict liability,
// or tort (including negligence or otherwise) arising in any way out of
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#ifdef __GNUC__
# pragma GCC diagnostic ignored "-Wmissing-declarations"
# if defined __clang__ || defined __APPLE__
# pragma GCC diagnostic ignored "-Wmissing-prototypes"
# pragma GCC diagnostic ignored "-Wextra"
# endif
#endif
#ifndef __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__
#include <fstream>
#include "opencv2/ts.hpp"
#include "opencv2/ts/gpu_test.hpp"
#include "opencv2/gpuobjdetect.hpp"
#include "opencv2/objdetect.hpp"
#endif
samples/cpp/CMakeLists.txt
View file @
eda124ec
...
@@ -24,7 +24,6 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
...
@@ -24,7 +24,6 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpufeatures2d/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpufeatures2d/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpuvideo/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpuvideo/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpustereo/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpustereo/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpuobjdetect/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpu/include"
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpu/include"
)
endif
()
endif
()
...
...
samples/gpu/CMakeLists.txt
View file @
eda124ec
...
@@ -3,7 +3,7 @@ SET(OPENCV_GPU_SAMPLES_REQUIRED_DEPS opencv_core opencv_flann opencv_imgproc ope
...
@@ -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_gpucodec opencv_gpuarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc
opencv_gpucodec opencv_gpuarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc
opencv_gpufeatures2d opencv_gpuvideo
opencv_gpuobjdetect
opencv_gpufeatures2d opencv_gpuvideo
opencv_gpustereo opencv_gpulegacy
)
opencv_gpustereo opencv_gpulegacy
)
ocv_check_dependencies
(
${
OPENCV_GPU_SAMPLES_REQUIRED_DEPS
}
)
ocv_check_dependencies
(
${
OPENCV_GPU_SAMPLES_REQUIRED_DEPS
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment