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
986d57c7
Commit
986d57c7
authored
May 03, 2017
by
vskarlsruhe
Committed by
Vadim Pisarevsky
May 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update canny_detector.markdown (#8684)
parent
fe241657
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
canny_detector.markdown
...s/imgproc/imgtrans/canny_detector/canny_detector.markdown
+6
-6
No files found.
doc/tutorials/imgproc/imgtrans/canny_detector/canny_detector.markdown
View file @
986d57c7
...
...
@@ -68,7 +68,7 @@ Code
-#
**What does this program do?**
-
Asks the user to enter a numerical value to set the lower threshold for our
*
Canny Edge
Detector
*
(by means of a Trackbar)
Detector
*
(by means of a Trackbar)
.
-
Applies the
*Canny Detector*
and generates a
**mask**
(bright lines representing the edges
on a black background).
-
Applies the mask obtained on the original image and display it in a window.
...
...
@@ -85,19 +85,19 @@ Explanation
Note the following:
-# We establish a ratio of lower:upper threshold of 3:1 (with the variable *ratio*)
-# We establish a ratio of lower:upper threshold of 3:1 (with the variable *ratio*)
.
-# We set the kernel size of \f$3\f$ (for the Sobel operations to be performed internally by the
Canny function)
Canny function)
.
-# We set a maximum value for the lower Threshold of \f$100\f$.
-# Loads the source image:
@snippet cpp/tutorial_code/ImgTrans/CannyDetector_Demo.cpp load
-# Create a matrix of the same type and size of
*src*
(to be
*dst*
)
-# Create a matrix of the same type and size of
*src*
(to be
*dst*
)
:
@snippet cpp/tutorial_code/ImgTrans/CannyDetector_Demo.cpp create_mat
-# Convert the image to grayscale (using the function @ref cv::cvtColor :
-# Convert the image to grayscale (using the function @ref cv::cvtColor
)
:
@snippet cpp/tutorial_code/ImgTrans/CannyDetector_Demo.cpp convert_to_gray
-# Create a window to display the results
-# Create a window to display the results
:
@snippet cpp/tutorial_code/ImgTrans/CannyDetector_Demo.cpp create_window
-# Create a Trackbar for the user to enter the lower threshold for our Canny detector:
@snippet cpp/tutorial_code/ImgTrans/CannyDetector_Demo.cpp create_trackbar
...
...
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