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
78384d89
Commit
78384d89
authored
Apr 15, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: avoid highgui dependency
parent
169dc9c3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
18 deletions
+25
-18
CMakeLists.txt
modules/calib3d/CMakeLists.txt
+5
-1
calibinit.cpp
modules/calib3d/src/calibinit.cpp
+1
-0
circlesgrid.cpp
modules/calib3d/src/circlesgrid.cpp
+2
-0
CMakeLists.txt
modules/features2d/CMakeLists.txt
+5
-1
blobdetector.cpp
modules/features2d/src/blobdetector.cpp
+12
-16
No files found.
modules/calib3d/CMakeLists.txt
View file @
78384d89
set
(
the_description
"Camera Calibration and 3D Reconstruction"
)
ocv_define_module
(
calib3d opencv_imgproc opencv_features2d WRAP java python
)
set
(
debug_modules
""
)
if
(
DEBUG_opencv_calib3d
)
list
(
APPEND debug_modules opencv_highgui
)
endif
()
ocv_define_module
(
calib3d opencv_imgproc opencv_features2d
${
debug_modules
}
WRAP java python
)
modules/calib3d/src/calibinit.cpp
View file @
78384d89
...
...
@@ -76,6 +76,7 @@
//#define ENABLE_TRIM_COL_ROW
// Requires CMake flag: DEBUG_opencv_calib3d=ON
//#define DEBUG_CHESSBOARD
#define DEBUG_CHESSBOARD_TIMEOUT 0 // 0 - wait for 'q'
...
...
modules/calib3d/src/circlesgrid.cpp
View file @
78384d89
...
...
@@ -43,6 +43,8 @@
#include "precomp.hpp"
#include "circlesgrid.hpp"
#include <limits>
// Requires CMake flag: DEBUG_opencv_calib3d=ON
//#define DEBUG_CIRCLES
#ifdef DEBUG_CIRCLES
...
...
modules/features2d/CMakeLists.txt
View file @
78384d89
set
(
the_description
"2D Features Framework"
)
ocv_define_module
(
features2d opencv_imgproc OPTIONAL opencv_flann opencv_highgui WRAP java python js
)
set
(
debug_modules
""
)
if
(
DEBUG_opencv_features2d
)
list
(
APPEND debug_modules opencv_highgui
)
endif
()
ocv_define_module
(
features2d opencv_imgproc
${
debug_modules
}
OPTIONAL opencv_flann WRAP java python js
)
modules/features2d/src/blobdetector.cpp
View file @
78384d89
...
...
@@ -44,15 +44,11 @@
#include <iterator>
#include <limits>
// Requires CMake flag: DEBUG_opencv_features2d=ON
//#define DEBUG_BLOB_DETECTOR
#ifdef DEBUG_BLOB_DETECTOR
# include "opencv2/opencv_modules.hpp"
# ifdef HAVE_OPENCV_HIGHGUI
# include "opencv2/highgui.hpp"
# else
# undef DEBUG_BLOB_DETECTOR
# endif
#include "opencv2/highgui.hpp"
#endif
namespace
cv
...
...
@@ -200,13 +196,13 @@ void SimpleBlobDetectorImpl::findBlobs(InputArray _image, InputArray _binaryImag
findContours
(
binaryImage
,
contours
,
RETR_LIST
,
CHAIN_APPROX_NONE
);
#ifdef DEBUG_BLOB_DETECTOR
//
Mat keypointsImage;
// cvtColor( binaryImage, keypointsImage, CV_GRAY2RGB
);
//
//
Mat contoursImage;
// cvtColor( binaryImage, contoursImage, CV_GRAY2RGB
);
//
drawContours( contoursImage, contours, -1, Scalar(0,255,0) );
//
imshow("contours", contoursImage );
Mat
keypointsImage
;
cvtColor
(
binaryImage
,
keypointsImage
,
COLOR_GRAY2RGB
);
Mat
contoursImage
;
cvtColor
(
binaryImage
,
contoursImage
,
COLOR_GRAY2RGB
);
drawContours
(
contoursImage
,
contours
,
-
1
,
Scalar
(
0
,
255
,
0
)
);
imshow
(
"contours"
,
contoursImage
);
#endif
for
(
size_t
contourIdx
=
0
;
contourIdx
<
contours
.
size
();
contourIdx
++
)
...
...
@@ -296,12 +292,12 @@ void SimpleBlobDetectorImpl::findBlobs(InputArray _image, InputArray _binaryImag
#ifdef DEBUG_BLOB_DETECTOR
//
circle( keypointsImage, center.location, 1, Scalar(0,0,255), 1 );
circle
(
keypointsImage
,
center
.
location
,
1
,
Scalar
(
0
,
0
,
255
),
1
);
#endif
}
#ifdef DEBUG_BLOB_DETECTOR
//
imshow("bk", keypointsImage );
//
waitKey();
imshow
(
"bk"
,
keypointsImage
);
waitKey
();
#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