Module gwy :: Class ExteriorType
[hide private]
[frames] | no frames]

Class ExteriorType

source code

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.


Since: 2.2

Note: All the enumerated values are defined at the module level, not the class level. The are just groupped by class here for easier orientation.

Class Variables [hide private]
  EXTERIOR_BORDER_EXTEND
Values of exterior pixels are considered to be equal to the values of the nearest interior pixels.
  EXTERIOR_FIXED_VALUE
Values of exterior pixels are considered to be all equal to a user-specified value.
  EXTERIOR_LAPLACE
Values of exterior pixels are extended using Laplace interpolation (actually extrapolation) like DataField.laplace_solve().
  EXTERIOR_MIRROR_EXTEND
The data is considered to be periodically repeated, with odd instances reflected (the total period is thus twice the size of the data).
  EXTERIOR_PERIODIC
The data is considered to be periodically repeated.
  EXTERIOR_UNDEFINED
The values corresponding to or calculated from exterior data values are undefined, they may be left unset or set to bogus values.
Class Variable Details [hide private]

EXTERIOR_LAPLACE

Values of exterior pixels are extended using Laplace interpolation (actually extrapolation) like DataField.laplace_solve(). Only some functions implement this method. (Since 2.50)

EXTERIOR_UNDEFINED

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.