Ignore:
Timestamp:
Nov 7, 2001, 6:31:37 PM (24 years ago)
Author:
cmv
Message:

add FlagOutOfRange cmv 7/11/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/ProcWSophya/ktoibad.h

    r1735 r1736  
    77#include "slinparbuff.h"
    88
     9//////////////////////////////////////////////////////
     10//-- Pour flagguer les samples hors dynamique
     11//   toi BoloIn ---> |FlagOutOfRange| ---> toi BoloOut
     12//////////////////////////////////////////////////////
     13class FlagOutOfRange : public TOIProcessor {
     14public:
     15  FlagOutOfRange(r_8 vmin,r_8 vmax,uint_8 flag=FlgToiOut);
     16  virtual ~FlagOutOfRange();
     17
     18  virtual void  init(void);
     19  virtual void  run(void);
     20
     21  //! Print
     22  void Print(ostream & os);
     23  inline void Print(void) {Print(cout);}
     24
     25protected:
     26  uint_8 flgBad;
     27  r_8 VMin,VMax;
     28};
     29
     30//////////////////////////////////////////////////////
    931//-- Pour rechercher les glitches
    10 //   toi BoloIn ---> |FlagGlitch | ---> toi BoloOut
     32//   toi BoloIn ---> |FlagGlitch| ---> toi BoloOut
     33//////////////////////////////////////////////////////
    1134class FlagGlitch : public TOIProcessor {
    1235public:
     
    4265};
    4366
     67//////////////////////////////////////////////////////
    4468//-- Pour flagguer les samples autour de samples deja flaggues
    45 //   toi BoloIn ---> |FlagAround | ---> toi BoloOut
    46 class FlagAround : public TOIProcessor {
     69//   Permet aussi de flagguer les samples ayant de mauvaises valeurs.
     70//   toi BoloIn ---> |FlagAroundFlag| ---> toi BoloOut
     71//////////////////////////////////////////////////////
     72class FlagAroundFlag : public TOIProcessor {
    4773public:
    48   FlagAround(uint_4 lm,uint_8 flgs=FlgToiAll);
    49   virtual ~FlagAround();
     74  FlagAroundFlag(uint_4 lm,uint_8 flgs=FlgToiAll);
     75  virtual ~FlagAroundFlag();
    5076
    5177  virtual void  init(void);
     
    5682  //! Flagguer autour des samples ayant la valeur flag
    5783  inline void SetFlagAroundFlag(uint_8 flag=FlgToiAll) {flgSample = flag;}
     84  //! Flagguer les samples hors limite
     85  inline void SetLimits(r_8 vmin=1.,r_8 vmax=-1.,uint_8 flag=FlgToiOut)
     86              {VMin=vmin; VMax=vmax; flgBad = flag;}
    5887  //! Print
    5988  void Print(ostream & os);
     
    6190
    6291protected:
    63   uint_8 flgSample,flgAround;
     92  uint_8 flgSample,flgAround,flgBad;
    6493  uint_4 LSide;
     94  r_8 VMin,VMax;
    6595};
    6696
Note: See TracChangeset for help on using the changeset viewer.