ImFusion C++ SDK 4.5.0
ImFusion::CT::GridBasedDistortionCorrectionUtils Namespace Reference

Utilities for grid-based distortion correction algorithms. More...

Detailed Description

Utilities for grid-based distortion correction algorithms.

Classes

struct  BeadDetection
 Structure representing a detected calibration bead. More...

Functions

std::tuple< mat2, double, vec2 > fitScaleAndRotationRobust (const std::vector< vec2 > &fromIn, const std::vector< vec2 > &toIn)
std::tuple< mat2, double, vec2 > fitScaleAndRotation (const std::vector< vec2 > &fromIn, const std::vector< vec2 > &toIn)
mat3 fitAffineMatrix (const std::vector< vec2 > &src, const std::vector< vec2 > &dst)
std::vector< BeadDetection > houghDetectPoints (SharedImage &si, vec2i radiusPx, float gradientThreshold=0.2, float threshold=0.8, int blurKernelSize=5)
 Detect all beads in a given image using the Hough transform.
std::optional< std::vector< BeadDetection > > morphologicalOpeningDetectPoints (SharedImage &si, double maxDist, const mat3 &latticeToBeads)

Function Documentation

◆ houghDetectPoints()

std::vector< BeadDetection > ImFusion::CT::GridBasedDistortionCorrectionUtils::houghDetectPoints ( SharedImage & si,
vec2i radiusPx,
float gradientThreshold = 0.2,
float threshold = 0.8,
int blurKernelSize = 5 )

Detect all beads in a given image using the Hough transform.

Parameters
radiusPxgives the range of bead radii to search for.
Search Tab / S to search, Esc to close