HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 
23 class CL_API CL_Despike final : public CL_SlidingWindow
24 {
25 public:
26 
28 
29  // must be 'size' floats long.
30  void setDespikeParms(int size,fpreal tolerance,fpreal effect);
31 
32  void reset(fpreal val = 0.0) override;
33 
34  void save(UT_OStream &os) override;
35  bool load(UT_IStream &is, int version) override;
36 
37 private:
38  void doShiftOp(int nsamples, const fpreal *source, int ndest) override;
39 
40  fpreal mySpikeSlope;
41 
42  fpreal myTolerance;
43  fpreal myEffect;
44 };
45 
46 #endif
#define CL_API
Definition: CL_API.h:10
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:803
virtual void reset(fpreal val=0.0)
virtual void save(UT_OStream &os)
GT_API const UT_StringHolder version
__hostdev__ uint64_t last(uint32_t i) const
Definition: NanoVDB.h:5976
GLsizeiptr size
Definition: glcorearb.h:664
fpreal64 fpreal
Definition: SYS_Types.h:277
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual bool load(UT_IStream &is, int version)