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
67838a7a
Commit
67838a7a
authored
Mar 27, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made dependency of opencv_objdetect from opencv_highgui optional.
parent
e1378aad
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
CMakeLists.txt
modules/objdetect/CMakeLists.txt
+1
-1
latentsvm.cpp
modules/objdetect/src/latentsvm.cpp
+6
-0
latentsvmdetector.cpp
modules/objdetect/src/latentsvmdetector.cpp
+6
-2
precomp.hpp
modules/objdetect/src/precomp.hpp
+5
-1
No files found.
modules/objdetect/CMakeLists.txt
View file @
67838a7a
set
(
the_description
"Object Detection"
)
ocv_define_module
(
objdetect opencv_
highgui opencv_calib3d
)
ocv_define_module
(
objdetect opencv_
calib3d OPTIONAL opencv_highgui
)
modules/objdetect/src/latentsvm.cpp
View file @
67838a7a
...
...
@@ -388,7 +388,9 @@ int showRootFilterBoxes(IplImage *image,
cvRectangle
(
image
,
points
[
i
],
oppositePoint
,
color
,
thickness
,
line_type
,
shift
);
}
#ifdef HAVE_OPENCV_HIGHGUI
cvShowImage
(
"Initial image"
,
image
);
#endif
return
LATENT_SVM_OK
;
}
...
...
@@ -442,7 +444,9 @@ int showPartFilterBoxes(IplImage *image,
color
,
thickness
,
line_type
,
shift
);
}
}
#ifdef HAVE_OPENCV_HIGHGUI
cvShowImage
(
"Initial image"
,
image
);
#endif
return
LATENT_SVM_OK
;
}
...
...
@@ -476,7 +480,9 @@ int showBoxes(IplImage *img,
cvRectangle
(
img
,
points
[
i
],
oppositePoints
[
i
],
color
,
thickness
,
line_type
,
shift
);
}
#ifdef HAVE_OPENCV_HIGHGUI
cvShowImage
(
"Initial image"
,
img
);
#endif
return
LATENT_SVM_OK
;
}
...
...
modules/objdetect/src/latentsvmdetector.cpp
View file @
67838a7a
...
...
@@ -97,7 +97,9 @@ CvSeq* cvLatentSvmDetectObjects(IplImage* image,
CvSeq
*
result_seq
=
0
;
int
error
=
0
;
cvConvertImage
(
image
,
image
,
CV_CVTIMG_SWAP_RB
);
if
(
image
->
nChannels
==
3
)
cvCvtColor
(
image
,
image
,
CV_BGR2RGB
);
// Getting maximum filter dimensions
getMaxFilterDims
((
const
CvLSVMFilterObject
**
)(
detector
->
filters
),
detector
->
num_components
,
detector
->
num_part_filters
,
&
maxXBorder
,
&
maxYBorder
);
...
...
@@ -132,7 +134,9 @@ CvSeq* cvLatentSvmDetectObjects(IplImage* image,
detection
.
rect
=
bounding_box
;
cvSeqPush
(
result_seq
,
&
detection
);
}
cvConvertImage
(
image
,
image
,
CV_CVTIMG_SWAP_RB
);
if
(
image
->
nChannels
==
3
)
cvCvtColor
(
image
,
image
,
CV_RGB2BGR
);
freeFeaturePyramidObject
(
&
H
);
free
(
points
);
...
...
modules/objdetect/src/precomp.hpp
View file @
67838a7a
...
...
@@ -55,11 +55,15 @@
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/core/core_c.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/core/internal.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_HIGHGUI
# include "opencv2/highgui/highgui.hpp"
#endif
#ifdef HAVE_TEGRA_OPTIMIZATION
#include "opencv2/objdetect/objdetect_tegra.hpp"
#endif
...
...
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