vendor: OpenCV 5.0.0 snapshot at 755e50675d97db9b7d449d8bd6b09888646f6c6e
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
Structured forests for fast edge detection {#tutorial_ximgproc_prediction}
|
||||
==========================================
|
||||
|
||||
Introduction
|
||||
------------
|
||||
|
||||
In this tutorial you will learn how to use structured forests for the purpose of edge detection in
|
||||
an image.
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
@note binarization techniques like Canny edge detector are applicable to edges produced by both
|
||||
algorithms (Sobel and StructuredEdgeDetection::detectEdges).
|
||||
|
||||
Source Code
|
||||
-----------
|
||||
|
||||
@includelineno ximgproc/samples/structured_edge_detection.cpp
|
||||
|
||||
Explanation
|
||||
-----------
|
||||
|
||||
-# **Load source color image**
|
||||
|
||||
@snippet ximgproc/samples/structured_edge_detection.cpp imread
|
||||
|
||||
-# **Convert source image to float [0;1] range**
|
||||
|
||||
@snippet ximgproc/samples/structured_edge_detection.cpp convert
|
||||
|
||||
-# **Run main algorithm**
|
||||
|
||||
@snippet ximgproc/samples/structured_edge_detection.cpp create
|
||||
@snippet ximgproc/samples/structured_edge_detection.cpp detect
|
||||
@snippet ximgproc/samples/structured_edge_detection.cpp nms
|
||||
|
||||
-# **Show results**
|
||||
|
||||
@snippet ximgproc/samples/structured_edge_detection.cpp imshow
|
||||
|
||||
Literature
|
||||
----------
|
||||
|
||||
For more information, refer to the following papers : @cite Dollar2013 @cite Lim2013
|
||||
Reference in New Issue
Block a user