![]() |
![]() |
Gwyddion Data Processing Library Reference Manual | ![]() |
|
---|---|---|---|---|
void gwy_data_field_correct_laplace_iteration (GwyDataField *data_field, GwyDataField *mask_field, GwyDataField *buffer_field, gdouble corrfactor, gdouble *error); void gwy_data_field_correct_average (GwyDataField *data_field, GwyDataField *mask_field); void gwy_data_field_mask_outliers (GwyDataField *data_field, GwyDataField *mask_field, gdouble thresh); GwyPlaneSymmetry gwy_data_field_unrotate_find_corrections (GwyDataLine *derdist, gdouble *correction);
void gwy_data_field_correct_laplace_iteration (GwyDataField *data_field, GwyDataField *mask_field, GwyDataField *buffer_field, gdouble corrfactor, gdouble *error);
Performs one interation of Laplace data correction.
Tries to remove all the points in mask off the data by using iterative method similar to solving heat flux equation.
Use this function repeatedly until reasonable error
is reached.
data_field : |
Data field to be corrected. |
mask_field : |
Mask of places to be corrected. |
buffer_field : |
Initialized to same size as mask and data. |
corrfactor : |
Correction factor within step. |
error : |
Maximum change within last step. |
void gwy_data_field_correct_average (GwyDataField *data_field, GwyDataField *mask_field);
Fills data under mask with average value.
Simply puts average value of all the data_field
values into
points in data_field
lying under points where mask_field
values
are nonzero.
data_field : |
A data field. |
mask_field : |
Mask of places to be corrected. |
void gwy_data_field_mask_outliers (GwyDataField *data_field, GwyDataField *mask_field, gdouble thresh);
Creates mask of data that are above or below thresh
*sigma from average
height.
Sigma denotes root-mean square deviation
of heights. This criterium corresponds
to usual Gaussian distribution outliers detection for thresh
= 3.
data_field : |
A data field. |
mask_field : |
A data field to be filled with mask. |
thresh : |
Threshold value. |
GwyPlaneSymmetry gwy_data_field_unrotate_find_corrections (GwyDataLine *derdist, gdouble *correction);
Finds rotation corrections.
Rotation correction is computed for for all symmetry types. In addition an estimate is made about the prevalent one.
derdist : |
Angular derivation distribution (normally obrained from
gwy_data_field_slope_distribution() ).
|
correction : |
Corrections for particular symmetry types will be stored
here (indexed by GwyPlaneSymmetry). correction [0] contains
the most probable correction. All angles are in radians.
|
Returns : | The estimate type of prevalent symmetry. |