imResample

PURPOSE ^

Fast bilinear image downsampling/upsampling.

SYNOPSIS ^

function B = imResample( A, scale, method, norm )

DESCRIPTION ^

 Fast bilinear image downsampling/upsampling.

 Gives similar results to imresize with the bilinear option and
 antialiasing turned off if scale is near 1, except sometimes the final
 dims are off by 1 pixel. For very small values of the scale imresize is
 faster but only looks at subset of values of original image.

 USAGE
  B = imResample( A, scale, [method], [norm] )

 INPUT
  A        - input image (2D or 3D single, double or uint8 array)
  scale    - scalar resize factor [s] of target height and width [h w]
  method   - ['bilinear'] either 'bilinear' or 'nearest'
  norm     - [1] optionally multiply every output pixel by norm

 OUPUT
   B       - resampled image

 EXAMPLE
  I=single(imread('cameraman.tif')); n=100; s=1/2; method='bilinear';
  tic, for i=1:n, I1=imresize(I,s,method,'Antialiasing',0); end; toc
  tic, for i=1:n, I2=imResample(I,s,method); end; toc
  figure(1); im(I1); figure(2); im(I2);

 See also imresize

 Piotr's Image&Video Toolbox      Version 2.62
 Copyright 2011 Piotr Dollar.  [pdollar-at-caltech.edu]
 Please email me if you find bugs, or have suggestions or questions!
 Licensed under the Lesser GPL [see external/lgpl.txt]

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated by m2html © 2003