CCIMXDesktop
 
Loading...
Searching...
No Matches
ContoursQueryProc Class Reference

The ContoursQueryProc class performs edge detection followed by contour detection. More...

#include <ContoursQueryProc.h>

Inheritance diagram for ContoursQueryProc:
ImageProc

Public Member Functions

 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.
 
- Public Member Functions inherited from ImageProc
 ImageProc ()=default
 Construct a new Image Proc object.
 

Public Attributes

Processor::ContoursQuery::Method method { Processor::ContoursQuery::DEF }
 The contour approximation method used for this processor.
 

Detailed Description

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.

Member Function Documentation

◆ process()

bool ContoursQueryProc::process ( CVImage prev_image)
overridevirtual

Processes the image using Canny edge detection followed by contour detection.

Parameters
prev_imageThe 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
pThe pair of lower and upper thresholds.

The documentation for this class was generated from the following files: