level

level — Plane and rotation leveling

Synopsis




void        gwy_data_field_area_fit_plane   (GwyDataField *dfield,
                                             gint col,
                                             gint row,
                                             gint width,
                                             gint height,
                                             gdouble *pa,
                                             gdouble *pbx,
                                             gdouble *pby);
void        gwy_data_field_plane_coeffs     (GwyDataField *a,
                                             gdouble *ap,
                                             gdouble *bp,
                                             gdouble *cp);
void        gwy_data_field_plane_level      (GwyDataField *a,
                                             gdouble ap,
                                             gdouble bp,
                                             gdouble cp);
void        gwy_data_field_plane_rotate     (GwyDataField *a,
                                             gdouble xangle,
                                             gdouble yangle,
                                             GwyInterpolationType interpolation);

Description

Details

gwy_data_field_area_fit_plane ()

void        gwy_data_field_area_fit_plane   (GwyDataField *dfield,
                                             gint col,
                                             gint row,
                                             gint width,
                                             gint height,
                                             gdouble *pa,
                                             gdouble *pbx,
                                             gdouble *pby);

Fits a plane through a rectangular part of a data field.

dfield : A data field
col : Upper-left column coordinate.
row : Upper-left row coordinate.
width : Area width (number of columns).
height : Area height (number of rows).
pa : Where constant coefficient should be stored (or NULL).
pbx : Where x plane coefficient should be stored (or NULL).
pby : Where y plane coefficient should be stored (or NULL).

Since 1.2.


gwy_data_field_plane_coeffs ()

void        gwy_data_field_plane_coeffs     (GwyDataField *a,
                                             gdouble *ap,
                                             gdouble *bp,
                                             gdouble *cp);

Evaluates coefficients of plane fit of data field.

a : A data field
ap : Constant coefficient.
bp : X coefficient.
cp : Y coefficient.

gwy_data_field_plane_level ()

void        gwy_data_field_plane_level      (GwyDataField *a,
                                             gdouble ap,
                                             gdouble bp,
                                             gdouble cp);

Plane leveling.

a : A data field
ap : Constant coefficient.
bp : X coefficient.
cp : Y coefficient.

gwy_data_field_plane_rotate ()

void        gwy_data_field_plane_rotate     (GwyDataField *a,
                                             gdouble xangle,
                                             gdouble yangle,
                                             GwyInterpolationType interpolation);

Performs rotation of plane along x and y axis.

a : A data field
xangle : rotation angle in x direction (rotation along y axis)
yangle : rotation angle in y direction (rotation along x axis)
interpolation : interpolation type