Linear Methods for Image Interpolation
Data Structures | Typedefs | Functions
lkernels.h File Reference

Interpolation kernel and basis functions for linear interpolation. More...

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

Go to the source code of this file.

Data Structures

struct  interpmethodstruct
 struct describing a linear interpolation method More...

Typedefs

typedef struct interpmethodstruct interpmethod
 struct describing a linear interpolation method

Functions

interpmethodGetInterpMethod (const char *Name)
 Get the interpmethod struct for an interpolation method by name.
float NearestNeighborKernel (float x)
 Bilinear interpolation kernel (KernelRadius = 0.5)

Detailed Description

Interpolation kernel and basis functions for linear interpolation.

Author:
Pascal Getreuer <getreuer@gmail.com>

Copyright (c) 2010-2011, Pascal Getreuer All rights reserved.

This program is free software: you can use, modify and/or redistribute it under the terms of the simplified BSD License. You should have received a copy of this license along this program. If not, see <http://www.opensource.org/licenses/bsd-license.html>.

Definition in file lkernels.h.


Typedef Documentation

struct describing a linear interpolation method


Function Documentation

interpmethod* GetInterpMethod ( const char *  Name)

Get the interpmethod struct for an interpolation method by name.

Parameters:
Namename of the interpolation method
Returns:
pointer to interpmethod struct on success, null pointer on failure.

Choices are

  • "nearest"
  • "bilinear"
  • "bicubic"
  • "lanczosN" with N = 2, 3, or 4
  • "schaumN" with N = 2 or 3
  • "bsplineN" with N = 2, 3, 5, 7, 9, or 11
  • "omomsN" with N = 3, 5 or 7

Definition at line 492 of file lkernels.c.

Here is the caller graph for this function:

float NearestNeighborKernel ( float  x)

Bilinear interpolation kernel (KernelRadius = 0.5)

Parameters:
xcoordinate at which to evaluate the kernel
Returns:
the kernel value at x

Definition at line 34 of file lkernels.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines