Package image :: Module _image
[hide private]
[frames] | no frames]

Module _image

source code

Functions [hide private]
 
_translate(a, dx, dy, output=None, mode='nearest', cval=0.0)
_translate does positive sub-pixel shifts using bilinear interpolation.
source code
 
translate(a, sdx, sdy, output=None, mode='nearest', cval=0.0)
translate performs a translation of 'a' by (sdx, sdy) storing the result in 'output'.
source code
Variables [hide private]
  __package__ = 'image'

Imports: num, convolve, _correlate, MLab


Function Details [hide private]

translate(a, sdx, sdy, output=None, mode='nearest', cval=0.0)

source code 
translate performs a translation of 'a' by (sdx, sdy)
storing the result in 'output'.

sdx, sdy  are float values.

supported 'mode's include:
    'nearest'   elements beyond boundary come from nearest edge pixel.
    'wrap'      elements beyond boundary come from the opposite array edge.
    'reflect'   elements beyond boundary come from reflection on same array edge.
    'constant'  elements beyond boundary are set to 'cval'