Skip to content

Commit f3ed3bc

Browse files
committed
Image/interp.m: update doc
1 parent 7fd65e2 commit f3ed3bc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/@Image/interp.m

+12
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,20 @@
33
%
44
% V = interp(IMG, X, Y)
55
% V = interp(IMG, X, Y, Z)
6+
% Evaluates the value(s) within the image at the specified position(s),
7+
% in pixel coordinates.
8+
% The positions X, Y (and Z for 3D images) must be specified with numeric
9+
% arrays the same size.
10+
% For scalar images, the result V has the same size as the input arrays.
11+
%
612
% V = interp(IMG, POS)
13+
% Speifies the positions as a N-by-2 or N-by-3 array of coordinates. The
14+
% result V is a N-by-1 numeric array.
15+
%
716
% V = interp(..., 'method')
17+
% Specifies the interpolation method to use. Valid options are the ones
18+
% available for the interp2 and interp3 functions.
19+
% Default is 'linear'.
820
%
921
% Example
1022
% interp

0 commit comments

Comments
 (0)