Can RANSAC be used for fitting splines to noisy 3D point clouds?

  • Thread starter tompish
  • Start date
  • Tags
    Fitting
In summary, the conversation discusses the possibility of creating a model for a spline using a RANSAC method. The individual has a volume of data points and wants to determine a model for a spline shape that visually emerges from the data. Suggestions are made to use Integral Transforms and orthogonal functions to project the data onto the spline model. Other techniques such as smoothing in polar coordinates are also mentioned. There is also a discussion about the criteria that should be used to test the data against the spline model.
  • #1
tompish
2
0
I am wondering if there is any way to create a model that can be used in a RANSAC method where a spline could be determined from a noisy 3d point cloud.

What i have is a volume containing a set of points in each xy-plane, having say 400 of these in the z direction and a spline shape emerges visually while simply looking at the plotted data in 3d space. I already have a line fitting RANSAC scheme where the error is determined by a simple distance measure but i can't get my head around how to determine a model for a spline.

I am unsure if I am posting at the right thread so if I am at the wrong place please refer me to the right place :)
 
Mathematics news on Phys.org
  • #2
It's unclear what you mean by a "spline shape". The term "spline" usually refers to a curve or surface that is used to interpolate a smooth shape between known points or edges. Do you have known points or edges?
 
  • #3
Hey tompish.

This sounds like a good application of Integral Transforms using orthogonal functions.

The idea is that you have these point data, and some kind of spline model and you want to project the point data to the spline model to get an approximation of your signal data that best represents this but in the context of a spline.

If you want to do this, you'll have to take your spline and create an orthogonal basis which you will project your data to. You will need to use the Gram-Schmidt process to construct the orthogonal basis given your spline function.

If you haven't done this kind of thing before, it's going to be a headache, and if someone hasn't already done it (and written up the code as well), then it's still going to be a headache.
 
  • #4
Thanks for the replies.

Stephen:
It is lines i mean by saying "spline shape" visually emerges. I have two pictures of the same point cloud just rotated. Sorry that its hard to see but without any illumination its hard to illustrate depth.

Chiro:
Thanks that says a lot, i have totally forgotten the linear algebra stuff that i learned a while ago. Ill give this a go but i am unsure of what criteria i should imply while testing the rest of the data against a spline model. Just by measuring distance to the spline might be insufficient. Also i think i should use some gradient measure that looks at the slope of the spline, since as it can be seen in the pictures the most prominent spline is not very tilted.
 

Attachments

  • physicsForumPic1.jpg
    physicsForumPic1.jpg
    15.7 KB · Views: 553
  • physicsForumPic2.jpg
    physicsForumPic2.jpg
    14.2 KB · Views: 516
  • #5
You could also try doing smoothing over the points using a polar co-ordinate basis to do the interpolating.

So convert your data to polar co-ordinates and then do a smoothing in the way they do something like say a time series moving average or other similar technique.

You can also search for smoothing techniques in general and apply them in polar space.
 

1. What is Ransac for spline fitting?

Ransac (Random Sample Consensus) is a statistical method used for fitting a mathematical model to a given set of data points. In spline fitting, Ransac is used to find the best-fit spline curve that passes through a set of noisy data points. It is a robust method that can handle outliers and errors in the data.

2. How does Ransac work?

Ransac works by randomly selecting a subset of data points and fitting a model to those points. This model is then tested against the remaining data points. If the model fits well, it is considered as a potential solution. This process is repeated multiple times, and the best-fit model is chosen as the final solution.

3. What are the advantages of using Ransac for spline fitting?

Ransac is a robust method that can handle outliers and errors in the data. It is also computationally efficient and can handle large datasets. Additionally, Ransac does not require any prior knowledge about the data, making it suitable for a wide range of applications.

4. What are the limitations of Ransac for spline fitting?

One of the main limitations of Ransac is that it requires the user to specify certain parameters, such as the number of iterations and the threshold for inliers. These parameters can significantly affect the final result. Additionally, Ransac may not work well if the data contains a large number of outliers or if the data is highly complex.

5. In what fields is Ransac commonly used for spline fitting?

Ransac is commonly used in computer vision, robotics, and computer graphics for tasks such as image registration, 3D reconstruction, and motion estimation. It is also used in geology and remote sensing for fitting curves to geological data and satellite images, respectively.

Similar threads

Replies
2
Views
1K
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
1K
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
26
Views
2K
Replies
1
Views
791
  • General Math
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
24
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
28
Views
3K
Back
Top