📄 hplx_hor.h
字号:
/*****************************************************************************/
/* Copyright 1998, Hewlett-Packard Company */
/* All rights reserved */
/* Author: Christos Chrysafis */
/* Version: V2.1 */
/* Last Revised: 10/2/98 */
/*****************************************************************************/
#ifndef HPLX_HOR_H
#define HPLX_HOR_H
/************************************************************************/
/* Class decimator is used for one dimentional
* wavelet transform along lines.
*
* Implements the forward wavelet transform
*
*
*/
/************************************************************************/
/************************************************************************/
typedef struct decimator *decimator_ref;
/************************************************************************/
typedef int (*decimator__terminate__func)
(decimator_ref self);
/************************************************************************/
typedef void (*decimator__decimate__func_fixed)
(decimator_ref self,short int * V);
/************************************************************************/
typedef void (*decimator__decimate__func)
(decimator_ref self,float * V);
/************************************************************************/
typedef void (*decimator__initialize__func)
(decimator_ref self, int X, filter_info_ref info, int c_lvs,
int component_idx);
/************************************************************************/
typedef void (*decimator__set_size__func)
(decimator_ref self, int t);
/************************************************************************/
typedef struct decimator{
int component_idx;
int EvenFilter,xdim;
int DefaultFB,fixed;
int VL_min, VL_max,VH_min, VH_max,V_min, V_max;
int Length,E;
float *VL_Low, *VL_High, *VH_Low, *VH_High;
int *VL_Low_I, *VL_High_I, *VH_Low_I, *VH_High_I;
short int *buffer_I;
int *BufFast;
float *buffer;
int coeff_precision;
int shiftFactor;
decimator__initialize__func initialize;
decimator__initialize__func initialize_fixed;
decimator__decimate__func decimate;
decimator__decimate__func_fixed decimate_fixed;
decimator__set_size__func set_size;
decimator__terminate__func terminate;
}decimator;
extern decimator_ref
create_decimator(void);
/************************************************************************/
/* Class interpolator is used for one dimentional
* wavelet transform along lines.
*
* Implements the inverse wavelet transform
*
*
*/
/************************************************************************/
/************************************************************************/
typedef struct interpolator *interpolator_ref;
/************************************************************************/
typedef int (*interpolator__terminate__func)
(interpolator_ref self);
/************************************************************************/
typedef void (*interpolator__interpolate__func)
(interpolator_ref self,float* V);
/************************************************************************/
typedef void (*interpolator__interpolate__func_fixed)
(interpolator_ref self,short int * V);
/************************************************************************/
typedef void (*interpolator__initialize__func)
(interpolator_ref self, int X, filter_info_ref info, int c_levs,
int component_idx);
/************************************************************************/
typedef void (*interpolator__set_size__func)
(interpolator_ref self, int t);
typedef struct interpolator{
int component_idx;
int VL_min, VL_max, VH_min, VH_max, V_min, V_max;
int EvenFilter,Length;
int DefaultFB,fixed,xdim;
short int *buffer_I;
int * VL_Low_I, * VL_High_I, *VH_Low_I, *VH_High_I;
short int *_data_I;
float *buffer, *VL_Low,*VL_High, *VH_Low, *VH_High;
float *_data;
int *BufFast;
int coeff_precision;
int shiftFactor;
interpolator__initialize__func initialize;
interpolator__initialize__func initialize_fixed;
interpolator__interpolate__func interpolate;
interpolator__interpolate__func_fixed interpolate_fixed;
interpolator__set_size__func set_size;
interpolator__terminate__func terminate;
}interpolator;
extern interpolator_ref
create_interpolator(void);
#endif /* HPLX_HOR_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -