#include <ShapeRec_FeatureDetector.hxx>
◆ CvContour
◆ CvContoursArray
◆ ShapeRec_FeatureDetector()
ShapeRec_FeatureDetector::ShapeRec_FeatureDetector |
( |
| ) |
|
◆ ComputeContours()
bool ShapeRec_FeatureDetector::ComputeContours |
( |
bool |
useROI = false , |
|
|
ShapeRec_Parameters * |
parameters = 0 |
|
) |
| |
Computes the contours of the image located at imagePath
References contours, ShapeRec_Parameters::findContoursMethod, hierarchy, ShapeRec_ColorFilterParameters::histSize, ShapeRec_ColorFilterParameters::histType, imagePath, ShapeRec_Parameters::kernelSize, ShapeRec_CannyParameters::L2gradient, ShapeRec_CannyParameters::lowThreshold, ShapeRec_ColorFilterParameters::maxThreshold, ShapeRec_CannyParameters::ratio, rect, ShapeRec_ColorFilterParameters::smoothSize, and ShapeRec_ColorFilterParameters::threshold.
◆ ComputeCorners()
void ShapeRec_FeatureDetector::ComputeCorners |
( |
bool |
useROI = false , |
|
|
ShapeRec_Parameters * |
parameters = 0 |
|
) |
| |
Computes the corners of the image located at imagePath
References cornerCount, corners, ShapeRec_CornersParameters::epsilon, imagePath, imgHeight, imgWidth, ShapeRec_Parameters::kernelSize, ShapeRec_CornersParameters::maxIter, ShapeRec_CornersParameters::minDistance, ShapeRec_CornersParameters::qualityLevel, rect, and ShapeRec_CornersParameters::typeCriteria.
◆ ComputeLines()
bool ShapeRec_FeatureDetector::ComputeLines |
( |
| ) |
|
Computes the lines in the image located at imagePath
References imagePath, and lines.
◆ CroppImage()
std::string ShapeRec_FeatureDetector::CroppImage |
( |
| ) |
|
Crops the image located at imagePath to the region of interest given by the user via SetROI and stores the result in /tmp
- Parameters
-
theRect | - Region Of Interest of the image located at imagePath |
References imagePath, and rect.
◆ GetContours()
◆ GetContoursHierarchy()
std::vector<cv::Vec4i> ShapeRec_FeatureDetector::GetContoursHierarchy |
( |
| ) |
|
|
inline |
◆ GetCornerCount()
int ShapeRec_FeatureDetector::GetCornerCount |
( |
| ) |
|
|
inline |
◆ GetCorners()
CvPoint2D32f* ShapeRec_FeatureDetector::GetCorners |
( |
| ) |
|
|
inline |
◆ GetImgHeight()
int ShapeRec_FeatureDetector::GetImgHeight |
( |
| ) |
|
|
inline |
◆ GetImgWidth()
int ShapeRec_FeatureDetector::GetImgWidth |
( |
| ) |
|
|
inline |
◆ GetLines()
std::vector<cv::Vec4i> ShapeRec_FeatureDetector::GetLines |
( |
| ) |
|
|
inline |
◆ SetPath()
void ShapeRec_FeatureDetector::SetPath |
( |
const std::string & |
thePath | ) |
|
Sets the path of the image file to be processed
- Parameters
-
thePath | - Location of the image file |
References imagePath, imgHeight, and imgWidth.
◆ SetROI()
void ShapeRec_FeatureDetector::SetROI |
( |
const QRect & |
theRect | ) |
|
Stores a region of interest given by user in rect
- Parameters
-
theRect | - Region Of Interest of the image located at imagePath |
References rect.
◆ contours
◆ cornerCount
int ShapeRec_FeatureDetector::cornerCount |
|
private |
◆ corners
CvPoint2D32f* ShapeRec_FeatureDetector::corners |
|
private |
◆ hierarchy
std::vector<cv::Vec4i> ShapeRec_FeatureDetector::hierarchy |
|
private |
◆ imagePath
std::string ShapeRec_FeatureDetector::imagePath |
|
private |
◆ imgHeight
int ShapeRec_FeatureDetector::imgHeight |
|
private |
◆ imgWidth
int ShapeRec_FeatureDetector::imgWidth |
|
private |
◆ lines
std::vector<cv::Vec4i> ShapeRec_FeatureDetector::lines |
|
private |
◆ rect
CvRect ShapeRec_FeatureDetector::rect |
|
private |
The documentation for this class was generated from the following files: