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
e4307d05
Commit
e4307d05
authored
Mar 13, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made dependency of features2d and calib3d from highgui optional
parent
d68311b9
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
9 deletions
+46
-9
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+6
-1
calibinit.cpp
modules/calib3d/src/calibinit.cpp
+8
-2
checkchessboard.cpp
modules/calib3d/src/checkchessboard.cpp
+6
-1
circlesgrid.cpp
modules/calib3d/src/circlesgrid.cpp
+6
-1
CMakeLists.txt
modules/features2d/CMakeLists.txt
+1
-1
blobdetector.cpp
modules/features2d/src/blobdetector.cpp
+6
-1
oneway.cpp
modules/features2d/src/oneway.cpp
+13
-1
datamatrix.cpp
modules/objdetect/src/datamatrix.cpp
+0
-1
No files found.
cmake/OpenCVModule.cmake
View file @
e4307d05
...
...
@@ -277,7 +277,12 @@ macro(ocv_glob_modules)
if
(
__ocvmodules
)
list
(
SORT __ocvmodules
)
foreach
(
mod
${
__ocvmodules
}
)
if
(
EXISTS
"
${
__path
}
/
${
mod
}
/CMakeLists.txt"
)
if
(
CMAKE_VERSION VERSION_LESS 2.8
)
get_filename_component
(
__realpath
"
${
__path
}
/
${
mod
}
"
ABSOLUTE
)
else
()
get_filename_component
(
__realpath
"
${
__path
}
/
${
mod
}
"
REALPATH
)
endif
()
if
(
EXISTS
"
${
__realpath
}
/CMakeLists.txt"
AND NOT __realpath STREQUAL CMAKE_CURRENT_SOURCE_DIR
)
add_subdirectory
(
"
${
__path
}
/
${
mod
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
mod
}
/.
${
mod
}
"
)
endif
()
endforeach
()
...
...
modules/calib3d/src/calibinit.cpp
View file @
e4307d05
...
...
@@ -65,16 +65,22 @@
//#define ENABLE_TRIM_COL_ROW
//#pragma comment(lib, "highgui200d.lib")
//#define DEBUG_CHESSBOARD
#ifdef DEBUG_CHESSBOARD
# include "opencv2/opencv_modules.hpp"
# ifdef HAVE_OPENCV_HIGHGUI
# include "opencv2/highgui/highgui.hpp"
# else
# undef DEBUG_CHESSBOARD
# endif
#endif
#ifdef DEBUG_CHESSBOARD
static
int
PRINTF
(
const
char
*
fmt
,
...
)
{
va_list
args
;
va_start
(
args
,
fmt
);
return
vprintf
(
fmt
,
args
);
}
#include "..//..//include/opencv/highgui.h"
#else
static
int
PRINTF
(
const
char
*
,
...
)
{
...
...
modules/calib3d/src/checkchessboard.cpp
View file @
e4307d05
...
...
@@ -47,7 +47,12 @@
//#define DEBUG_WINDOWS
#if defined(DEBUG_WINDOWS)
#include "highgui.h"
# include "opencv2/opencv_modules.hpp"
# ifdef HAVE_OPENCV_HIGHGUI
# include "opencv2/highgui/highgui.hpp"
# else
# undef DEBUG_WINDOWS
# endif
#endif
void
icvGetQuadrangleHypotheses
(
CvSeq
*
contours
,
std
::
vector
<
std
::
pair
<
float
,
int
>
>&
quads
,
int
class_id
)
...
...
modules/calib3d/src/circlesgrid.cpp
View file @
e4307d05
...
...
@@ -44,7 +44,12 @@
//#define DEBUG_CIRCLES
#ifdef DEBUG_CIRCLES
#include "opencv2/highgui/highgui.hpp"
# include "opencv2/opencv_modules.hpp"
# ifdef HAVE_OPENCV_HIGHGUI
# include "opencv2/highgui/highgui.hpp"
# else
# undef DEBUG_CIRCLES
# endif
#endif
using
namespace
cv
;
...
...
modules/features2d/CMakeLists.txt
View file @
e4307d05
set
(
the_description
"2D Features Framework"
)
ocv_define_module
(
features2d opencv_imgproc opencv_
highgui opencv_flann
)
ocv_define_module
(
features2d opencv_imgproc opencv_
flann OPTIONAL opencv_highgui
)
modules/features2d/src/blobdetector.cpp
View file @
e4307d05
...
...
@@ -46,7 +46,12 @@
//#define DEBUG_BLOB_DETECTOR
#ifdef DEBUG_BLOB_DETECTOR
#include "opencv2/highgui/highgui.hpp"
# include "opencv2/opencv_modules.hpp"
# ifdef HAVE_OPENCV_HIGHGUI
# include "opencv2/highgui/highgui.hpp"
# else
# undef DEBUG_BLOB_DETECTOR
# endif
#endif
using
namespace
cv
;
...
...
modules/features2d/src/oneway.cpp
View file @
e4307d05
...
...
@@ -8,9 +8,13 @@
*/
#include "precomp.hpp"
#include "opencv2/
highgui/highgui
.hpp"
#include "opencv2/
opencv_modules
.hpp"
#include <stdio.h>
#ifdef HAVE_OPENCV_HIGHGUI
# include "opencv2/highgui/highgui.hpp"
#endif
namespace
cv
{
inline
int
round
(
float
value
)
...
...
@@ -655,6 +659,7 @@ namespace cv{
void
OneWayDescriptor
::
Save
(
const
char
*
path
)
{
#ifdef HAVE_OPENCV_HIGHGUI
for
(
int
i
=
0
;
i
<
m_pose_count
;
i
++
)
{
char
buf
[
1024
];
...
...
@@ -669,6 +674,9 @@ namespace cv{
cvReleaseImage
(
&
patch
);
}
#else
CV_Error
(
CV_StsNotImplemented
,
"This method required opencv_highgui disabled in current build"
);
#endif
}
void
OneWayDescriptor
::
Write
(
CvFileStorage
*
fs
,
const
char
*
name
)
...
...
@@ -1772,6 +1780,7 @@ namespace cv{
void
loadPCAFeatures
(
const
char
*
path
,
const
char
*
images_list
,
vector
<
IplImage
*>&
patches
,
CvSize
patch_size
)
{
#ifdef HAVE_OPENCV_HIGHGUI
char
images_filename
[
1024
];
sprintf
(
images_filename
,
"%s/%s"
,
path
,
images_list
);
FILE
*
pFile
=
fopen
(
images_filename
,
"r"
);
...
...
@@ -1800,6 +1809,9 @@ namespace cv{
cvReleaseImage
(
&
img
);
}
fclose
(
pFile
);
#else
CV_Error
(
CV_StsNotImplemented
,
"This method required opencv_highgui disabled in current build"
);
#endif
}
void
generatePCAFeatures
(
const
char
*
path
,
const
char
*
img_filename
,
FileStorage
&
fs
,
const
char
*
postfix
,
...
...
modules/objdetect/src/datamatrix.cpp
View file @
e4307d05
...
...
@@ -493,7 +493,6 @@ endo: ; // end search for this o
}
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
namespace
cv
{
...
...
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