Function pcms_create_point_based_interpolator
Defined in File interpolator.h
Function Documentation
-
PcmsInterpolatorHandle pcms_create_point_based_interpolator(void *source_points, int source_points_size, void *target_points, int target_points_size, double radius, int degree, int min_req_supports, double lambda, double decay_factor)
Create 2D point-based MLS interpolator for RBF interpolation.
To better select the interpolation parameters, look at their explanation in mls_interpolation function documentation. Call pcms_interpolate function with this interpolator to perform interpolation from source points to target points. Remember to delete the created interpolator using pcms_destroy_interpolator function after use to avoid memory leaks. The user is responsible for ensuring that the source and target points are sustained in memory during the call of this constructor. They are no longer needed after the interpolator is created as they are copied internally.
See also
mls_interpolation, InterpolationBase, MLSPointCloudInterpolation
- Parameters:
source_points – Void pointer to the first source point of double of size source_points_size
source_points_size – Size of source points array \( Number\ of\ source\ points \times 2 \)
target_points – Void pointer to the first target point of double of size target_points_size
target_points_size – Size of target points array \( Number\ of\ target\ points \times 2 \)
radius – Starting radius for support search (always adaptive)
degree – Degree of the MLS basis functions
min_req_supports – Minimum required supports for each target point (maximum allowed supports is three times this value)
lambda – Regularization parameter
decay_factor – Decay factor for weight function
- Returns:
PcmsInterpolatorHandle Handle to the created interpolator