Changeset 4559 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 08/10/04 12:31:54 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r4467 r4559 38 38 // should be set using SetNumMinNeighbors 39 39 // 40 // If you don't want to interpolate unreliable pixels but onlyunsuitable41 // (broken) pixels use Set SloppyTreatment().40 // If you want to interpolate unreliable pixels and unsuitable 41 // (broken) pixels use SetHardTreatment(). 42 42 // 43 43 // … … 95 95 // -------------------------------------------------------------------------- 96 96 // 97 // Returns the status of a pixel. If kSloppyTreatment is set a pixel must 98 // be unsuitable to be treated. If not it is enough if it is unreliable 97 // Returns the status of a pixel. If kHardTreatment is set a pixel must 98 // be unsuitable or uriliable to be treated. If not it is treated only if 99 // it is unsuitable 99 100 // (IsBad() checks for any flag) 100 101 // 101 102 Bool_t MBadPixelsTreat::IsPixelBad(Int_t idx) const 102 103 { 103 return TESTBIT(fFlags, k SloppyTreatment) ? (*fBadPixels)[idx].IsUnsuitable() : (*fBadPixels)[idx].IsBad();104 return TESTBIT(fFlags, kHardTreatment) ? (*fBadPixels)[idx].IsBad():(*fBadPixels)[idx].IsUnsuitable() ; 104 105 } 105 106 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h
r4466 r4559 27 27 kUseCentralPixel = 2, 28 28 kProcessRMS = 3, 29 k SloppyTreatment = 429 kHardTreatment = 4 30 30 }; 31 31 … … 59 59 b ? SETBIT(fFlags, kProcessRMS) : CLRBIT(fFlags, kProcessRMS); 60 60 } 61 void Set SloppyTreatment(Bool_t b=kTRUE)61 void SetHardTreatment(Bool_t b=kTRUE) 62 62 { 63 b ? SETBIT(fFlags, k SloppyTreatment) : CLRBIT(fFlags, kSloppyTreatment);63 b ? SETBIT(fFlags, kHardTreatment) : CLRBIT(fFlags, kHardTreatment); 64 64 } 65 65 void SetNumMinNeighbors(Byte_t num) { fNumMinNeighbors=num; }
Note:
See TracChangeset
for help on using the changeset viewer.