| Top |
| const GwyEnum * | gwy_merge_type_get_enum () |
| const GwyEnum * | gwy_masking_type_get_enum () |
| const GwyEnum * | gwy_orientation_get_enum () |
| const GwyEnum * | gwy_interpolation_type_get_enum () |
| const GwyEnum * | gwy_windowing_type_get_enum () |
| const GwyEnum * | gwy_correlation_type_get_enum () |
| const GwyEnum * | gwy_direction_flags_get_enum () |
| const GwyEnum * | gwy_sign_flags_get_enum () |
| gint | gwy_computation_state_get_state () |
| gdouble | gwy_computation_state_get_fraction () |
| enum | GwyOrientation |
| enum | GwyDirectionFlags |
| enum | GwySignFlags |
| enum | GwyTransformDirection |
| enum | GwyMergeType |
| enum | GwyMaskingType |
| enum | GwyComputationStateType |
| enum | GwyPlaneFitQuantity |
| enum | GwyWindowingType |
| enum | GwyCorrSearchType |
| enum | GwyRotateResizeType |
| GwyComputationState |
const GwyEnum *
gwy_merge_type_get_enum (void);
Returns GwyEnum for GwyMergeType enum type.
const GwyEnum *
gwy_masking_type_get_enum (void);
Returns GwyEnum for GwyMaskingType enum type.
const GwyEnum *
gwy_orientation_get_enum (void);
Returns GwyEnum for GwyOrientation enum type.
const GwyEnum *
gwy_interpolation_type_get_enum (void);
Returns GwyEnum for GwyInterpolationType enum type.
const GwyEnum *
gwy_windowing_type_get_enum (void);
Returns GwyEnum for GwyWindowingType enum type.
const GwyEnum *
gwy_correlation_type_get_enum (void);
Returns GwyEnum for GwyCorrelationType enum type.
const GwyEnum *
gwy_direction_flags_get_enum (void);
Returns GwyEnum for GwyDirectionFlags enum type.
const GwyEnum *
gwy_sign_flags_get_enum (void);
Returns GwyEnum for GwySignFlags enum type.
gint
gwy_computation_state_get_state (GwyComputationState *compstate);
Gets the state field of a computation state struct.
Useful mostly for language bindings.
gdouble
gwy_computation_state_get_fraction (GwyComputationState *compstate);
Gets the fraction field of a computation state struct.
Orientation type.
The enum is identical to GtkOrientation and the values should be interchangeable. It is, however, available in non-GUI context.
See also GwyDirectionFlags for flags, if the directions are not exclusive (and possibly ‘none’ is also an option).
Orientation flags.
If needed, zero (no flag set) can be used to represent no direction.
See also GwyOrientation for the exclusive variant (the orientation is always exactly one of the two).
Transform (namely integral transform) direction.
In FFT, it is equal to sign of the exponent, that is the backward transform uses -1, the forward transform +1. This is the opposite sign convention to FFTW (for instance), so care must be taken when mixing operations.
Mask handling in procedures that can apply masking.
Note at present many procedures do not have a masking argument and hence cannot apply masks in exclude mode.
Common iterative computation iterator state type.
Local plane fitting quantity to request from gwy_field_area_fit_local_planes() and similar functions.
|
Constant coefficient (mean value). |
||
|
Linear coefficient in |
||
|
Linear coefficient in |
||
|
Slope orientation in (x,y) plane (in radians). |
||
|
Absolute slope value (that is sqrt(bx*bx + by*by)). |
||
|
Residual sum of squares. |
||
|
Slope-reduced residual sum of squares. |
Frequency windowing type.
Type of correlation search output.
|
Raw average of data values multiplied by kernel values. |
||
|
Local mean value is subtracted from data before kernel multiplication. |
||
|
In addition, result is normalised by dividing by the local variance. |
||
|
Raw mean square difference between data and kernel values. |
||
|
Mean values of data and kernel are adjusted before summing the squared differences. |
||
|
In addition, result is normalised by dividing by the local variance. |
||
|
Score from phase-only correlation (since 2.63). |
Type of rotated data field size determination method.
typedef struct {
guint state;
gdouble fraction;
} GwyComputationState;
State of iterative computation.
Iterators usually append their own private state data, therefore it must not be assumed the public fields state
and fraction
are the only fields.
A typical iteration, assuming an iterative computation `foo' with the default GwyComputationStateType state could be:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
GwyComputationStateType *state; state = gwy_field_foo_init(GwyField *field, ...); do { gwy_field_foo_iteration(state); /* Update progress using state->fraction, let Gtk+ main loop run, check for abort, ... */ if (aborted) { gwy_field_foo_finalize(state); return FALSE; } } while (state->state != GWY_COMPUTATION_STATE_FINISHED); gwy_field_foo_finalize(state); return TRUE; |
Current computation state, usually of GwyComputationStateType, but particular iterators can define their own types. |
||
Fraction of computation completed. For staged algorithms, the fraction refers to the current stage only. |