| Top |
| gboolean | gwy_grain_quantity_needs_same_units () |
| GwyUnit * | gwy_grain_quantity_get_units () |
| gdouble * | gwy_nield_get_quantity () |
| void | gwy_nield_get_quantities () |
gboolean
gwy_grain_quantity_needs_same_units (GwyGrainQuantity quantity);
Tests whether a grain quantity is defined only when lateral and value units match.
GwyUnit * gwy_grain_quantity_get_units (GwyGrainQuantity quantity,GwyUnit *siunitxy,GwyUnit *siunitz,GwyUnit *result);
Calculates the units of a grain quantity.
gdouble * gwy_nield_get_quantity (GwyNield *nield,GwyField *field,GwyGrainQuantity quantity,gint *maxgno);
void gwy_nield_get_quantities (GwyNield *nield,GwyField *field,const GwyGrainQuantity *quantities,guint nquantities,gdouble **results);
Calculates multiple characteristics of grains in a number field simultaneously.
See gwy_nield_get_quantity() for some discussion. This function can a lot more efficient than repeated
gwy_nield_get_quantity() if several related grain quantities need to be calculated since
gwy_field_grains_get_values() must do lot of repeated work in such case.
nield |
A number field. |
|
field |
Data field used for height data. For some quantities its values are not used, but its dimensions determine the real dimensions of a pixel. |
|
quantities |
Array of |
[array length=nquantities][transfer none] |
nquantities |
The number of requested different grain values. |
|
results |
Array of length |
Grain quantity to request from gwy_nield_get_quantity() and similar functions.
|
Projected (flat) grain area. |
||
|
Side of a square with the same area as the grain. |
||
|
Radius of a disc with the same area as the grain. |
||
|
Surface area. |
||
|
Minimum value. |
||
|
Maximum value. |
||
|
Mean value. |
||
|
Median value. |
||
|
Flat grain area measured in pixels. This value is redundant but it is useful for filtering. |
||
|
Projected area of the part of grain that is above the half-height, i.e. the height between the minimum and maximum. |
||
|
Length of projected grain boundary. Note for grains not topologically equivalent to disc, only the length of the outer boundary is calculated. |
||
|
Standard deviation of grain values. |
||
|
Minimum lateral bounding size, in other words the minimum length of grain projection to any line in the horizontal plane. |
||
|
Direction of the minimum lateral bounding size (arbitrary one if the minimum is not unique). |
||
|
Maximum lateral bounding size, in other words the maximum length of grain projection to any line in the horizontal plane. |
||
|
Direction of the maximum lateral bounding size (arbitrary one if the maximum is not unique). |
||
|
Grain centre horizontal position, i.e. the mean value of its physical x-coordinates. |
||
|
Grain centre vertical position, i.e. the mean value of its physical y-coordinates. |
||
|
Grain volume calculated with grain basis at |
||
|
Grain volume calculated with grain basis at grain minimum value. This value is a lower bound. |
||
|
Grain volume calculated with grain basis calculated by laplacian interpolation of surrounding values. |
||
|
Spherical angle theta of grain normal (0 is upwards). |
||
|
Spherical angle phi of grain normal (0 is in positive x direction). |
||
|
Maximum value in the grain inner boundary. |
||
|
Minimum value on the grain inner boundary. |
||
|
Grain curvature centre horizontal position. For too small or flat grains it reduces to the horizontal position of geometrical centre. |
||
|
Grain curvature centre vertical position. For too small or flat grains it reduces to the vertical position of geometrical centre. |
||
|
The value at curvature centre. Note this is the value in the origin of the fitted quadratic surface, not at the real surface. |
||
|
Smaller grain curvature. |
||
|
Larger grain curvature. |
||
|
Direction of the smaller grain curvature radius. If the grain is flat or too small the angle is reported as 0. |
||
|
Direction of the larger grain curvature radius. If the grain is flat or too small the angle is reported as π/2. |
||
|
Radius of maximum disc that fits inside the grain |
||
|
Real X-coordinate of the centre of the maximum inscribed disc. |
||
|
Real Y-coordinate of the centre of the maximum inscribed disc. |
||
|
Projected (flat) area of grain convex hull. |
||
|
Radius of minimum circle containing the grain. |
||
|
Real X-coordinate of the centre of the minimum circumcircle. |
||
|
Real Y-coordinate of the centre of the minimum circumcircle. |
||
|
Mean distance from boundary to the grain centre as defined by |
||
|
Length of major semiaxis of equivalent ellipse. |
||
|
Length of minor semiaxis of equivalent ellipse. |
||
|
Orientation of the major axis of equivalent ellipse. |
||
|
Minimum value of Martin diameter. |
||
|
Direction corresponding to minimum Martin diameter. |
||
|
Maximum value of Martin diameter. |
||
|
Direction corresponding to maximum Martin diameter. |