| Rev | Line |   | 
|---|
| [1860] | 1 | // This may look like C code, but it is really -*- C++ -*-
 | 
|---|
 | 2 | 
 | 
|---|
 | 3 | // ArchTOIPipe           (C)     CEA/DAPNIA/SPP IN2P3/LAL
 | 
|---|
 | 4 | //                               Eric Aubourg
 | 
|---|
 | 5 | //                               Christophe Magneville
 | 
|---|
 | 6 | //                               Reza Ansari
 | 
|---|
 | 7 | // $Id: noisegen.h,v 1.1 2002-01-15 00:46:25 aubourg Exp $
 | 
|---|
 | 8 | 
 | 
|---|
 | 9 | #ifndef NOISEGEN_H
 | 
|---|
 | 10 | #define NOISEGEN_H
 | 
|---|
 | 11 | 
 | 
|---|
 | 12 | #include "toiprocessor.h"
 | 
|---|
 | 13 | 
 | 
|---|
 | 14 | #include "bruit.h"
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | class NoiseGen : public TOIProcessor {
 | 
|---|
 | 17 | public:
 | 
|---|
 | 18 |   NoiseGen();
 | 
|---|
 | 19 |   virtual ~NoiseGen();
 | 
|---|
 | 20 | 
 | 
|---|
 | 21 |   virtual void init();
 | 
|---|
 | 22 |   virtual void run();
 | 
|---|
 | 23 | 
 | 
|---|
 | 24 | protected:
 | 
|---|
 | 25 |   SOPHYA::NoiseGenerator* gen;
 | 
|---|
 | 26 | 
 | 
|---|
 | 27 |   virtual int   calcMinOut();
 | 
|---|
 | 28 |   virtual int   calcMaxOut();
 | 
|---|
 | 29 | };
 | 
|---|
 | 30 | 
 | 
|---|
 | 31 | class NoiseGenGauss : public NoiseGen {
 | 
|---|
 | 32 | public:
 | 
|---|
 | 33 |   NoiseGenGauss(float sigma);
 | 
|---|
 | 34 | };
 | 
|---|
 | 35 | 
 | 
|---|
 | 36 | class NoiseGenOOF : public NoiseGen {
 | 
|---|
 | 37 | public:
 | 
|---|
 | 38 |   NoiseGenOOF(float fknee, float sigma);
 | 
|---|
 | 39 | };
 | 
|---|
 | 40 | 
 | 
|---|
 | 41 | 
 | 
|---|
 | 42 | 
 | 
|---|
 | 43 | 
 | 
|---|
 | 44 | #endif
 | 
|---|
 | 45 | 
 | 
|---|
 | 46 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.