"Within a certain range of a goal location, the difference between memorized and currently experienced views can provide instructions on how to move towards the goal.\n",
"\n",
"The strong colour contrast of terrestrial objects against the sky may be of particular importance to localization and the demonstration that in outdoor scenes, panoramic image differences develop smoothly with distance from a reference location (translational Image Difference Functions, IDFs) and in addition, provide robust visual compass information (rotational IDFs) [Zeil 2012, Visual homing: an insect perspective].\n",
Within a certain range of a goal location, the difference between memorized and currently experienced views can provide instructions on how to move towards the goal.
The strong colour contrast of terrestrial objects against the sky may be of particular importance to localization and the demonstration that in outdoor scenes, panoramic image differences develop smoothly with distance from a reference location (translational Image Difference Functions, IDFs) and in addition, provide robust visual compass information (rotational IDFs) [Zeil 2012, Visual homing: an insect perspective].
### Translational
%% Cell type:code id: tags:
``` python
fromnavipy.comparingimportimagediff
tidf=imagediff(my_scene_current,my_scene_memory)
tidf
```
%% Output
array([[1.09429471e-03],
[1.22631411e-03],
[5.04916451e-04],
[2.91033150e+00]])
%% Cell type:markdown id: tags:
### Rotational
Rotational IDFs is done as follow: The current view is rotated by $\alpha$ and compared pixelwise to the memorised image: