RegionFit
RegionFit[{p1,p2,…},"model"]
finds a geometric region "model" that best fits the points p1,p2,….
RegionFit[{p1,p2,…},"model","prop"]
specifies what fit property "prop" should be returned.
Details and Options
- RegionFit is also known as sample consensus model.
- RegionFit is typically used for fitting and reconstructing regions from a set of points.
- RegionFit[{p1,p2,…},"model"] finds a region that contains the most points pi by iteratively estimating parameters of the specified "model" from a set of points.
- Possible 2D "model" specifications include:
-
"Line" infinite line "Circle" circle - Possible 3D "model" specifications include:
-
"Line" infinite line "Circle" circle "Plane" plane "Sphere" sphere "Cylinder" cylinder "Cone" cone - RegionFit[Point[{p1,p2,…}]] is effectively equivalent to RegionFit[{p1,p2,…}].
- Vertex normals ni for points pi can be specified by Point[{p1,p2,…},VertexNormals{n1,n2,…}].
- RegionFit[{p1,p2,…},"model","prop"] returns the value of the fit property "prop".
- Possible fit properties "prop" include:
-
"BestFit" the best candidate model "Points" set of points "Inliers" points fitting the candidate model "Outliers" points not fitting the candidate model "DistanceVariance" variance of distances to the candidate model "Distances" distances to the best candidate model {prop1,prop2,…} several fit properties - The following options can be given:
-
ConfidenceLevel Automatic desired probability of outlier-free sample Method Automatic method to use PerformanceGoal $PerformanceGoal aspects of performance to try to optimize Tolerance Automatic numerical tolerance to use VertexNormals None vertex normals for points WorkingPrecision Automatic precision to use in computations - Possible settings for Method include:
-
"RANSAC" random sample consensus "LMEDS" least median of squares "MSAC" M-estimator sample consensus "RRANSAC" randomized RANSAC "RMSAC" randomized MSAC "MLESAC" maximum likelihood estimation sample consensus "PROSAC" progressive sample consensus
Examples
open allclose allBasic Examples (2)
Scope (13)
Data (4)
RegionFit works on coordinates:
Models (7)
Properties (2)
RegionFit gives the best fit region:
Options (4)
Tolerance (1)
Use Tolerance to control the maximum distance of inliers:
Applications (3)
Text
Wolfram Research (2021), RegionFit, Wolfram Language function, https://reference.wolfram.com/language/ref/RegionFit.html.
CMS
Wolfram Language. 2021. "RegionFit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RegionFit.html.
APA
Wolfram Language. (2021). RegionFit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RegionFit.html