from pygem import RBF
rbf = RBF('thin_plate_spline')
deformed_mesh = rbf(mesh)Radial Basis Function
For more information see:
Pygem Radial Basis Function implementation RBF Pygem
Radial Basis Function Source code RBF code
Paper source of implementation RBF implemenation
Available function from rbf_factory:
thin_plate_spline
euclidean
gaussian_spline
multi_quadratic_biharmonic_spline
inv_multi_quadratic_biharmonic_spline
beckert_wendland_c2_basis
polyharmonic_spline
RBF
RBF (original_control_points=None, deformed_control_points=None, func='thin_plate_spline', radius=1, smoothing=None, extra_parameter=None)
Class that handles the Radial Basis Functions interpolation on the mesh points
| Type | Default | Details | |
|---|---|---|---|
| original_control_points | NoneType | None | (n_control_points, 3) array with the coordinates of the original interpolation control points before the deformation. Default is the vertices of the unit cube. |
| deformed_control_points | NoneType | None | (n_control_points, 3) array with the coordinates of the interpolation control points after the deformation. Default is the vertices of the unit cube. |
| func | str | thin_plate_spline | MODIFIED: DEFAULT is thin plate spline. Several basis function are already implemented and they are available through the ~pygem.rbf.RBF by passing the name of the right function. |
| radius | int | 1 | Scaling parameter that affects the shape of the basis functions. |
| smoothing | NoneType | None | MODIFIED: added parameter. IF defined, a constant values will be added on the diagonal of the matrix Dcc. s |
| extra_parameter | NoneType | None |
The MIT License (MIT)
Copyright (c) 2016-2020 PyGeM contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.