Description Usage Arguments Details Value Notes See Also
interp_image
1 | interp_image(image, x, y)
|
x |
(vector) |
y |
(vector) |
img |
(list) containing three components: |
From an image z(x,y)
at evenly spaced grid points x = i*dx
y = j*dy
, return the values of z
at arbirary points
(x, y)
between grid points. The values are calculated using bilinear
interpolation. I.e. for an output point (x, y)
the corners of the
surrounding grid square are identified, and the result is a weighted
combination of these four z
values: z(x1, y1)
, z(x2, y1)
,
z(x1, y2)
, z(x2, y2)
where the weights depend on the distances
from the x
and y
boundaries of the grid square.
The output is a vector of z
values at the position of each
input (x, y)
coordinate.
The input img
should be a list with three components:
img$z
is a vector of nx
evenly spaced x
positions,
img$y
is a vector of ny
evenly spaced y
position,
img$z
is an nx*ny
array of z
values at the
(x,y)
coordinates.
chain_convergence
, contour_matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.