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 () |
gint | gwy_computation_state_get_state () |
gdouble | gwy_computation_state_get_fraction () |
enum | GwyMergeType |
enum | GwyMaskingType |
enum | GwyWatershedStateType |
enum | GwyOrientation |
enum | GwyDirectionFlags |
enum | GwySignFlags |
enum | GwyTransformDirection |
enum | GwyComputationStateType |
enum | GwyPlaneFitQuantity |
enum | GwyWindowingType |
enum | GwyCorrelationType |
enum | GwyCorrSearchType |
enum | GwyExteriorType |
enum | GwyRotateResizeType |
enum | GwyAffineScalingType |
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.
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.
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.
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.
Common iterative computation iterator state type.
Local plane fitting quantity to request from gwy_data_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). |
Methods to handle pixels outside data.
Many methods currently use a fixed metod of handling of exterior pixels, for example area calculation uses extension (border and mirror coincide), convolution uses mirror extension, rotation fills exterior with a fixed value.
The values corresponding to or calculated from exterior data values are undefined, they may be left unset or set to bogus values. The caller must handle them itself afterwards, for instance by resizing the result to consist of valid data only. |
||
Values of exterior pixels are considered to be equal to the values of the nearest interior pixels. |
||
The data is considered to be periodically repeated, with odd instances reflected (the total period is thus twice the size of the data). |
||
The data is considered to be periodically repeated. |
||
Values of exterior pixels are considered to be all equal to a user-specified value. |
||
Values of exterior pixels are extended using Laplace interpolation (actually extrapolation)
like |
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_data_field_foo_init(GwyDataField *data_field, ...); do { gwy_data_field_foo_iteration(state); /* Update progress using state->fraction, let Gtk+ main loop run, check for abort, ... */ if (aborted) { gwy_data_field_foo_finalize(state); return FALSE; } } while (state->state != GWY_COMPUTATION_STATE_FINISHED); gwy_data_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. |