Skip to content

Commit fc0cec6

Browse files
committed
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2 parents 0d74c50 + f5aeecf commit fc0cec6

File tree

7 files changed

+155
-115
lines changed

7 files changed

+155
-115
lines changed

modules/sfm/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ endif()
2727
if(NOT DEFINED GFLAGS_INCLUDE_DIRS AND DEFINED GFLAGS_INCLUDE_DIR)
2828
set(GFLAGS_INCLUDE_DIRS "${GFLAGS_INCLUDE_DIR}")
2929
endif()
30+
if(NOT GFLAGS_LIBRARIES AND TARGET gflags::gflags)
31+
set(GFLAGS_LIBRARIES gflags::gflags)
32+
endif()
3033
if(NOT DEFINED GLOG_INCLUDE_DIRS AND DEFINED GLOG_INCLUDE_DIR)
3134
set(GLOG_INCLUDE_DIRS "${GLOG_INCLUDE_DIR}")
3235
endif()
36+
if(NOT GLOG_LIBRARIES AND TARGET glog::glog)
37+
set(GLOG_LIBRARIES glog::glog)
38+
endif()
3339

3440
if((gflags_FOUND OR Gflags_FOUND OR GFLAGS_FOUND OR GFLAGS_INCLUDE_DIRS) AND (glog_FOUND OR Glog_FOUND OR GLOG_FOUND OR GLOG_INCLUDE_DIRS))
3541
set(__cache_key "${GLOG_INCLUDE_DIRS} ~ ${GFLAGS_INCLUDE_DIRS} ~ ${GLOG_LIBRARIES} ~ ${GFLAGS_LIBRARIES}")

modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FILE(GLOB CORRESPONDENCE_HDRS *.h)
88

99
ADD_LIBRARY(correspondence STATIC ${CORRESPONDENCE_SRC} ${CORRESPONDENCE_HDRS})
1010

11-
TARGET_LINK_LIBRARIES(correspondence LINK_PRIVATE ${GLOG_LIBRARY} multiview)
11+
TARGET_LINK_LIBRARIES(correspondence LINK_PRIVATE ${GLOG_LIBRARIES} multiview)
1212
IF(TARGET Eigen3::Eigen)
1313
TARGET_LINK_LIBRARIES(correspondence LINK_PUBLIC Eigen3::Eigen)
1414
ENDIF()

modules/sfm/src/libmv_light/libmv/multiview/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SET(MULTIVIEW_SRC conditioning.cc
1717
FILE(GLOB MULTIVIEW_HDRS *.h)
1818

1919
ADD_LIBRARY(multiview STATIC ${MULTIVIEW_SRC} ${MULTIVIEW_HDRS})
20-
TARGET_LINK_LIBRARIES(multiview LINK_PRIVATE ${GLOG_LIBRARY} numeric)
20+
TARGET_LINK_LIBRARIES(multiview LINK_PRIVATE ${GLOG_LIBRARIES} numeric)
2121
IF(TARGET Eigen3::Eigen)
2222
TARGET_LINK_LIBRARIES(multiview LINK_PUBLIC Eigen3::Eigen)
2323
ENDIF()

modules/ximgproc/include/opencv2/ximgproc.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ i.e. algorithms which somehow takes into account pixel affinities in natural ima
8181
8282
@defgroup ximgproc_edge_drawing EdgeDrawing
8383
84+
EDGE DRAWING LIBRARY FOR GEOMETRIC FEATURE EXTRACTION AND VALIDATION
85+
86+
Edge Drawing (ED) algorithm is an proactive approach on edge detection problem. In contrast to many other existing edge detection algorithms which follow a subtractive
87+
approach (i.e. after applying gradient filters onto an image eliminating pixels w.r.t. several rules, e.g. non-maximal suppression and hysteresis in Canny), ED algorithm
88+
works via an additive strategy, i.e. it picks edge pixels one by one, hence the name Edge Drawing. Then we process those random shaped edge segments to extract higher level
89+
edge features, i.e. lines, circles, ellipses, etc. The popular method of extraction edge pixels from the thresholded gradient magnitudes is non-maximal supression that tests
90+
every pixel whether it has the maximum gradient response along its gradient direction and eliminates if it does not. However, this method does not check status of the
91+
neighboring pixels, and therefore might result low quality (in terms of edge continuity, smoothness, thinness, localization) edge segments. Instead of non-maximal supression,
92+
ED points a set of edge pixels and join them by maximizing the total gradient response of edge segments. Therefore it can extract high quality edge segments without need for
93+
an additional hysteresis step.
94+
8495
@defgroup ximgproc_fourier Fourier descriptors
8596
8697
@defgroup ximgproc_run_length_morphology Binary morphology on run-length encoded image

modules/ximgproc/include/opencv2/ximgproc/edge_drawing.hpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ namespace ximgproc
1616
//! @{
1717

1818
/** @brief Class implementing the ED (EdgeDrawing) @cite topal2012edge, EDLines @cite akinlar2011edlines, EDPF @cite akinlar2012edpf and EDCircles @cite akinlar2013edcircles algorithms
19-
20-
EDGE DRAWING LIBRARY FOR GEOMETRIC FEATURE EXTRACTION AND VALIDATION
21-
22-
Edge Drawing (ED) algorithm is an proactive approach on edge detection problem. In contrast to many other existing edge detection algorithms which follow a subtractive
23-
approach (i.e. after applying gradient filters onto an image eliminating pixels w.r.t. several rules, e.g. non-maximal suppression and hysteresis in Canny), ED algorithm
24-
works via an additive strategy, i.e. it picks edge pixels one by one, hence the name Edge Drawing. Then we process those random shaped edge segments to extract higher level
25-
edge features, i.e. lines, circles, ellipses, etc. The popular method of extraction edge pixels from the thresholded gradient magnitudes is non-maximal supressiun that tests
26-
every pixel whether it has the maximum gradient response along its gradient direction and eliminates if it does not. However, this method does not check status of the
27-
neighboring pixels, and therefore might result low quality (in terms of edge continuity, smoothness, thinness, localization) edge segments. Instead of non-maximal supression,
28-
ED points a set of edge pixels and join them by maximizing the total gradient response of edge segments. Therefore it can extract high quality edge segments without need for
29-
an additional hysteresis step.
3019
*/
3120

3221
class CV_EXPORTS_W EdgeDrawing : public Algorithm

0 commit comments

Comments
 (0)