Toolbox ia870 | List of Figures | Fig. 1.3 | Fig. 1.5

Figure 1.4 - Translation by a vector

Description

Characterization of fitting depends on one basic Euclidean-space operation. The translation of a set by a point is denoted by and is defined by:

Demo Script

01. from handson.lib import draw_se_axis
02. 
03. A = adreadgray('MVBook/fish.png');
04. B = MT.iasetrans(A,np.array([-100,200]))
05. 
06. A = draw_se_axis(A)
07. A = MT.ianeg(A)
08. 
09. B = draw_se_axis_aux(B)
10. B = MT.ianeg(B)
11. 
12. 
13. adshow(A, '(a) Image A')
14. adshow(B, '(b) A translated by the vector x')

(a) Image A

(b) A translated by the vector x