siavashk / pycpd

Pure Numpy Implementation of the Coherent Point Drift Algorithm
MIT License
510 stars 115 forks source link

Deformable registration - alpha and beta #46

Closed agporto closed 4 years ago

agporto commented 4 years ago

Hi, Thanks for this great library. I have a question that I was wondering if you would be able to answer. If I understand correctly, parameters alpha and beta in the deformable registration step should be scale dependent. In other words, if I were doing two separate registrations (one of small objects, other of large objects), the ideal values for those parameters should be different. Is that your understanding? If so, any chance you would have an idea of how alpha and beta change with the size of the structure?

siavashk commented 4 years ago

Related to #27.

if I were doing two separate registrations (one of small objects, other of large objects), the ideal values for those parameters should be different.

For β, it will depend on the distance between points in the point cloud. Basically β controls how close points should be to each other so that we treat them as a group that should move together. For a large point cloud this is generally true.

⍺ controls the fluiditiy of the point cloud. It does not care about the size of the object.

agporto commented 4 years ago

Thanks for the response! Highly appreciated.

gattia commented 4 years ago

@siavashk is the expert here and he gives good advice.

One additional thought I’ve seen done is normalizing the point clouds. E.g., normalize min/max range to be in 0-1 range, or something to that effect. In that case, you may have smaller differences in the parameters between applications. However, you should probably still tune the optimal parameters for each application.

agporto commented 4 years ago

@gattia Thanks for the suggestion. That is the path that I ended up taking (basically, made the pointcloud fit in a cube of unit size). It seems much easier to deal with than trying to figure out the proper scaling of beta with the size of objects.