TLIB documentation
 

tlScale.h File Reference


Detailed Description

Internal scaling routines.

#include "tlVision.h"

Include dependency graph for tlScale.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TL_SCALE_DECIMATE   0
#define TL_SCALE_BSPLINE   1

Functions

tlPixeltl_scale_decimate (tlPixel *src, float factor, int width, int height, int pixel_width)
 Decimation interpolation.
tlPixeltl_scale_decimate (tlPixel *src, int new_width, int new_height, int width, int height, int pixel_width)
 Decimation interpolation.
int tl_scale_bspline_init (tlPixel *src, int width, int height, int pixel_width)
 Fast bspline interpolation initialization.
tlPixeltl_scale_bspline (float factor)
 Fast bspline interpolation.
tlPixeltl_scale_bspline (int new_width, int new_height)
 Fast bspline interpolation.
int tl_scale_bspline_cleanup ()
 Fast bspline interpolation cleanup.


Define Documentation

#define TL_SCALE_BSPLINE   1

Scaling method that uses bicubic splines to interpolate scaled pixel values. Slower, yet best method (minimizes scaling error). The version used here uses order 2 polynomials (NOT bicubic) for optimization purposes.

#define TL_SCALE_DECIMATE   0

Scaling method that uses decimation (pick the nearest pixel). This is a fast, noisy (inaccurate) scaling method.



TLIB documentation - generated on 7 May 2008
Please address any questions to seb@tuyphon.com
(C) 2001-2008 - S. Grange
(C) 2001-2007 - VRAI Group, EPFL
All Rights Reserved.