ImFusion SDK 4.3
FiducialExtraction Class Reference

#include <ImFusion/Base/FiducialExtraction.h>

Detect circles in the image patch using gradient-based (RANSAC) method. More...

+ Inheritance diagram for FiducialExtraction:

Detailed Description

Detect circles in the image patch using gradient-based (RANSAC) method.

Public Types

enum  GradientFilter { None , Outward , Inward }
 

Public Member Functions

 FiducialExtraction (SharedImage *image)
 Constructor which takes an image where the circles need to be found.
 
 ~FiducialExtraction ()
 Destructor.
 
bool findCircle (const vec2i &patchCenter, const vec2 &patchBboxSize, vec2 &centerOut, double &radiusOut)
 Find a circle in the patch of m_image, specified by bounding box size and its center.
 
void setGradientThreshold (float gradientThreshold)
 Set the gradient threshold.
 
float gradientThreshold () const
 
void setInlierThreshold (double threshold)
 Set inlier threshold in pixels.
 
double inlierThreshold () const
 
void setNormalizePatch (bool normalize)
 Set whether to normalize patch before fiducial extraction. If set to no the patch will be taken from the entire normalized image.
 
bool normalizePatch () const
 
void setGradientFilter (GradientFilter filter)
 
GradientFilter gradientFilter () const
 

Member Enumeration Documentation

◆ GradientFilter

Enumerator
None 

Use all gradients.

Outward 

Only use gradients pointing away from the patch center.

Inward 

Only use gradients pointing towards the patch center.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close