#include <visp3/imgproc/vpCircleHoughTransform.h>
|
| vpCircleHoughTransformParameters () |
|
| vpCircleHoughTransformParameters (const int &gaussianKernelSize, const float &gaussianStdev, const int &sobelKernelSize, const float &lowerCannyThresh, const float &upperCannyThresh, const int &edgeMapFilterNbIter, const std::pair< int, int > ¢erXlimits, const std::pair< int, int > ¢erYlimits, const unsigned int &minRadius, const unsigned int &maxRadius, const int &dilatationNbIter, const float ¢erThresh, const float &radiusThreshRatio, const float &circlePerfectness, const float ¢erMinDistThresh, const float &mergingRadiusDiffThresh) |
|
std::string | toString () const |
|
void | saveConfigurationInJSON (const std::string &jsonPath) const |
|
Class that gather the algorithm parameters.
Definition at line 72 of file vpCircleHoughTransform.h.
◆ vpCircleHoughTransformParameters() [1/2]
vpCircleHoughTransform::vpCircleHoughTransformParameters::vpCircleHoughTransformParameters |
( |
| ) |
|
|
inline |
◆ vpCircleHoughTransformParameters() [2/2]
vpCircleHoughTransform::vpCircleHoughTransformParameters::vpCircleHoughTransformParameters |
( |
const int & |
gaussianKernelSize, |
|
|
const float & |
gaussianStdev, |
|
|
const int & |
sobelKernelSize, |
|
|
const float & |
lowerCannyThresh, |
|
|
const float & |
upperCannyThresh, |
|
|
const int & |
edgeMapFilterNbIter, |
|
|
const std::pair< int, int > & |
centerXlimits, |
|
|
const std::pair< int, int > & |
centerYlimits, |
|
|
const unsigned int & |
minRadius, |
|
|
const unsigned int & |
maxRadius, |
|
|
const int & |
dilatationNbIter, |
|
|
const float & |
centerThresh, |
|
|
const float & |
radiusThreshRatio, |
|
|
const float & |
circlePerfectness, |
|
|
const float & |
centerMinDistThresh, |
|
|
const float & |
mergingRadiusDiffThresh |
|
) |
| |
|
inline |
Construct a new vpCircleHoughTransformParameters object.
- Parameters
-
[in] | gaussianKernelSize | Size of the Gaussian filter kernel used to smooth the input image. Must be an odd number. |
[in] | gaussianStdev | Standard deviation of the Gaussian filter. |
[in] | sobelKernelSize | Size of the Sobel kernels used to compute the gradients. Must be an odd number. |
[in] | lowerCannyThresh | The lower threshold for the Canny operator. Values lower than this value are rejected. A negative value makes the algorithm compute this threshold and the lower one automatically. |
[in] | upperCannyThresh | The upper threshold for the Canny operator. Only values greater than this value are marked as an edge. A negative value makes the algorithm compute this threshold and the lower one automatically. |
[in] | edgeMapFilterNbIter | Number of 8-neighbor connectivity filtering iterations to apply to the edge map. |
[in] | centerXlimits | Minimum and maximum position on the horizontal axis of the center of the circle we want to detect. |
[in] | centerYlimits | Minimum and maximum position on the vertical axis of the center of the circle we want to detect. |
[in] | minRadius | Minimum radius of the circles we want to detect. |
[in] | maxRadius | Maximum radius of the circles we want to detect. |
[in] | dilatationNbIter | Number of times dilatation is performed to detect the maximum number of votes for the center candidates |
[in] | centerThresh | Minimum number of votes a point must exceed to be considered as center candidate. |
[in] | radiusThreshRatio | Minimum number of votes per radian a radius candidate RC_ij of a center candidate CeC_i must have in order that the circle of center CeC_i and radius RC_ij must be considered as circle candidate. |
[in] | circlePerfectness | The scalar product radius RC_ij . gradient(Ep_j) >= m_circlePerfectness * || RC_ij || * || gradient(Ep_j) || to add a vote for the radius RC_ij. |
[in] | centerMinDistThresh | Two circle candidates whose centers are closer than this threshold are considered for merging. |
[in] | mergingRadiusDiffThresh | Maximum radius difference between two circle candidates to consider merging them. |
Definition at line 153 of file vpCircleHoughTransform.h.
◆ createFromJSON()
◆ saveConfigurationInJSON()
void vpCircleHoughTransform::vpCircleHoughTransformParameters::saveConfigurationInJSON |
( |
const std::string & |
jsonPath | ) |
const |
|
inline |
◆ toString()
std::string vpCircleHoughTransform::vpCircleHoughTransformParameters::toString |
( |
| ) |
const |
|
inline |
◆ from_json
Read the detector configuration from JSON. All values are optional and if an argument is not present, the default value defined in the constructor is kept.
- Parameters
-
[in] | j | : The JSON object, resulting from the parsing of a JSON file. |
[out] | params | : The circle Hough transform parameters that will be initialized from the JSON data. |
Definition at line 269 of file vpCircleHoughTransform.h.
◆ to_json
◆ vpCircleHoughTransform