HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CL_Despike.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: CL_Despike.h ( Clip Library, C++)
7  *
8  * COMMENTS:
9  * Does continuous despiking of data
10  *
11  */
12 
13 
14 #ifndef __CL_Despike__
15 #define __CL_Despike__
16 
17 #include "CL_API.h"
18 #include "CL_SlidingWindow.h"
19 #include <SYS/SYS_Types.h>
20 
21 class UT_OStream;
22 
24 {
25 public:
26 
27  CL_Despike(int size,fpreal last);
28  virtual ~CL_Despike();
29 
30  // must be 'size' floats long.
31  void setDespikeParms(int size,fpreal tolerance,fpreal effect);
32 
33  virtual void reset(fpreal val =0.0);
34 
35  virtual void save(UT_OStream &os);
36  virtual bool load(UT_IStream &is, int version);
37 
38 private:
39  virtual void doShiftOp(int nsamples, const fpreal *source, int ndest);
40 
41  fpreal mySpikeSlope;
42 
43  fpreal myTolerance;
44  fpreal myEffect;
45 };
46 
47 #endif
GLsizeiptr size
Definition: glcorearb.h:663
#define CL_API
Definition: CL_API.h:10
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:802
virtual void reset(fpreal val=0.0)
virtual void save(UT_OStream &os)
double fpreal
Definition: SYS_Types.h:263
GLuint GLfloat * val
Definition: glcorearb.h:1607
virtual bool load(UT_IStream &is, int version)