Specifications
Intel
®
Image Processing Library Reference Manual
B-4
B
Then, the sought-for intensity D(x
D
,y
D
) is computed by interpolating the
intermediate values I
0
and I
1
along the y-axis:
D(x
D
,y
D
)=I
0
*(y
S1
- y
S
)+I
1
*(y
S
– y
S0
).
To use the linear interpolation, set the parameter
interpolate
to
IPL_INTER_LINEAR.
For images with 1-bit and 8-bit unsigned color channels, the functions
iplWarpAffine, iplRotate,andiplShear compute the coordinates
(x
S
,y
S
) with the accuracy 2
–16
= 1/65536. For images with 16-bit unsigned
color channels, these functions compute the coordinates with floating-point
precision.
Figure B-1 Linear Interpolation
y
x
(x
S0
,y
S0
)
(x
S0
,y
S1
)
(x
S1
,y
S0
)
(x
S1
,y
S1
)
(x
S
,y
S
)
S(x
S0
,y
S1
)
S(x
S0
,y
S0
)
S(x
S1
,y
S0
)
S(x
S1
,y
S1
)
D(x
S
,y
S
)
I
1
intensity
I
0