%WARP_SUBPIXEL   Warps image using a coordinate map.
%
% USAGE:
%  out = warp_subpixel(in, map, method)
%
% PARAMETERS:
%  map:    Tensor image specifying coordinates of interest.
%  method: 'linear', '3-cubic', 'nearest'
%  out:    Image containing the interpolated values
%
% DEFAULTS:
%  method = 'linear'
%
% NOTES:
%  OUT has size equal to MAP, and tensor elements equal to IN.
%  MAP must have a number of tensor elements equal to the dimensionality
%  of IN.
%
% DIPlib:
%  This function calls the DIPlib function <a href="https://diplib.org/diplib-docs/geometry.html#dip-ResampleAt-Image-CL-Image-CL-Image-L-String-CL-Image-Pixel-CL">dip::ResampleAt</a>.

% (c)2019, Wouter Caarls.
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
%    http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the License is distributed on an "AS IS" BASIS,
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
% See the License for the specific language governing permissions and
% limitations under the License.

function out = get_subpixel(varargin)
out = dip_geometry('warp_subpixel',varargin{:});
