core/analysis/similarity_estimator library

Classes

SimilarityFit
Result of a robust fit between two point sets.

Functions

fitSimilarityLeastSquares(Float32List src, Float32List dst, int count, Uint8List? mask) → SimilarityTransform?
Closed-form least-squares similarity over points where mask is set.
fitSimilarityRansac(Float32List src, Float32List dst, int count, {double threshold = 1.0, int iterations = 64, int minInliers = 8, int seed = 0x9E3779B9}) → SimilarityFit?
Fits a similarity transform mapping src onto dst (interleaved x, y, count pairs) with RANSAC on two-point samples, then refines it by least squares on the pairs within threshold pixels.