Linear Methods for Image Interpolation
|
00001 00016 #ifndef _LKERNELS_H_ 00017 #define _LKERNELS_H_ 00018 00020 typedef const struct interpmethodstruct 00021 { 00023 const char *Name; 00025 float (*Kernel)(float); 00027 float KernelRadius; 00029 int KernelNormalize; 00031 int PrefilterNumAlpha; 00033 const float *PrefilterAlpha; 00035 float PrefilterScale; 00036 } interpmethod; 00037 00038 interpmethod *GetInterpMethod(const char *Name); 00039 00040 float NearestNeighborKernel(float x); 00041 00042 #endif /* _LKERNELS_H_ */