The ContoursQueryProc class performs edge detection followed by contour detection.
More...
#include <ContoursQueryProc.h>
|
| ContoursQueryProc ()=default |
| Constructs a ContoursQueryProc with default method and Canny processor.
|
|
| ~ContoursQueryProc () override=default |
| Destructor.
|
|
bool | process (CVImage &prev_image) override |
| Processes the image using Canny edge detection followed by contour detection.
|
|
void | setCannyPackage (const std::pair< int, int > &p) |
| Sets the Canny threshold pair used in edge detection.
|
|
| ImageProc ()=default |
| Construct a new Image Proc object.
|
|
The ContoursQueryProc class performs edge detection followed by contour detection.
This processor uses Canny edge detection as a pre-processing step and then finds contours using the specified contour approximation method.
◆ process()
bool ContoursQueryProc::process |
( |
CVImage & |
prev_image | ) |
|
|
overridevirtual |
Processes the image using Canny edge detection followed by contour detection.
- Parameters
-
prev_image | The input/output image. |
- Returns
- true if processing succeeds.
Implements ImageProc.
◆ setCannyPackage()
void ContoursQueryProc::setCannyPackage |
( |
const std::pair< int, int > & |
p | ) |
|
|
inline |
Sets the Canny threshold pair used in edge detection.
- Parameters
-
p | The pair of lower and upper thresholds. |
The documentation for this class was generated from the following files:
- extern_app/professionals/library/OpencvQtAdapter/core_library/image_proc/ContoursQueryProc.h
- extern_app/professionals/library/OpencvQtAdapter/core_library/image_proc_src/ContoursQueryProc.cpp