Industrial Calibration  1.0.0
Loading...
Searching...
No Matches
industrial_calibration::CircleDetectorParams Struct Reference

Public Attributes

float minThreshold = 50
 The minimum grayscale pixel intensity value at which to start the image thresholding (inclusive)
 
float maxThreshold = 220
 The maximum grayscale pixel intensity value at which to stop the image thresholding (inclusive)
 
std::size_t nThresholds = 18
 The number of thresholding steps to apply.
 
size_t minRepeatability = 3
 The number of times a particular circle must be identified to be considered valid (must be <= the number of threshold steps)
 
float circleInclusionRadius = 5
 The radius (pixels) around an identified circle within which new detected blobs will be considered to be the same feature as the circle.
 
float maxRadiusDiff = 5
 The maximum difference in radius (pixels) between an identified circle and a detected blob, above which the blob will not be considered to be the same feature as the previously identified circle.
 
float maxAverageEllipseError = 0.02f
 The maximum average deviation of the contour of a blob from its calculated ellipse fit (percentage)
 
bool filterByColor = true
 Flag for color filtering.
 
uchar circleColor = 0
 Color intensity of circle center in the binary image (value must be 0 or 255)
 
bool filterByArea = true
 Flag for filtering by area.
 
float minArea = 25.0f
 Minimum blob area (px^2)
 
float maxArea = 5000.0f
 Maximum blob area (px^2)
 
bool filterByCircularity = false
 Flag for circularity filtering.
 
float minCircularity = 0.8f
 Minimum blob circularity ratio - for a perfect circle this value is 1.0 / PI (~0.333)
 
float maxCircularity = std::numeric_limits<float>::max()
 
bool filterByInertia = false
 Flag for inertia filtering.
 
float minInertiaRatio = 0.3f
 Minimum blob inertia ratio.
 
float maxInertiaRatio = std::numeric_limits<float>::max()
 Maximum blob inertia ratio - for a perfect circle, this value is 1.0.
 
bool filterByConvexity = true
 Flag for convexity filtering.
 
float minConvexity = 0.95f
 Minimum blob convexity.
 
float maxConvexity = std::numeric_limits<float>::max()
 Maximum blob convexity.
 

Member Data Documentation

◆ maxCircularity

float industrial_calibration::CircleDetectorParams::maxCircularity = std::numeric_limits<float>::max()

@ brief Maximum blob circularity ratio