Changeset 1104 in Sophya for trunk/SophyaLib/NTools/dynccd.h
- Timestamp:
- Jul 27, 2000, 7:30:57 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/dynccd.h
r896 r1104 6 6 #include "machdefs.h" 7 7 #include "pexceptions.h" 8 #include "cimage.h" 8 9 #include "ppersist.h" 9 10 … … 17 18 18 19 int_4 TypNoise; // Type de calcul du bruit 19 floatMinADU,MaxADU; // Valeur min et max des pixels20 floatGain; // Gain en electron/ADU21 floatRONoise; // Bruit de lecture en electron22 floatRefFond; // Fond de ciel de ref (TypNoise=2)23 floatRefSFond; // Sigma du fond (TypNoise=2) */20 r_8 MinADU,MaxADU; // Valeur min et max des pixels 21 r_8 Gain; // Gain en electron/ADU 22 r_8 RONoise; // Bruit de lecture en electron 23 r_8 RefFond; // Fond de ciel de ref (TypNoise=2) 24 r_8 RefSFond; // Sigma du fond (TypNoise=2) */ 24 25 25 26 /* ===> Les methodes */ 26 DynCCD(int typ=0, float min=-9.e19, floatmax=9.e19,27 float g=1., float ron=0., float rf=0., floatrfs=0.);27 DynCCD(int_4 typ=0, r_8 min=-9.e19, r_8 max=9.e19, 28 r_8 g=1., r_8 ron=0., r_8 rf=0., r_8 rfs=0.); 28 29 29 void Set(int typ=0, float min=-9.e19, floatmax=9.e19,30 float g=1., float ron=0., float rf=0., floatrfs=0.);30 void Set(int_4 typ=0, r_8 min=-9.e19, r_8 max=9.e19, 31 r_8 g=1., r_8 ron=0., r_8 rf=0., r_8 rfs=0.); 31 32 void Print(); 32 float Noise(floatpixel) const;33 r_8 Noise(r_8 pixel) const; 33 34 }; 34 35 35 36 } // Fin du namespace 36 37 37 // Quelques fonctions pour manipuler des images de bruit38 39 class RzImage;40 RzImage * NoiseImage(RzImage const *pim, DynCCD const * dynccd);41 42 template <class T> class Image;43 38 44 39 template <class T> 45 Image<T> * NoiseImage(Image<T> const * pim, DynCCD const *dynccd);40 Image<T> NoiseImage(Image<T> const & pim, DynCCD const & dynccd); 46 41 47 42 template <class T> … … 53 48 { 54 49 c.PutI4(data.TypNoise); 55 c.PutR 4s(&data.MinADU, 6);50 c.PutR8s(&data.MinADU, 6); 56 51 return c; 57 52 } … … 61 56 { 62 57 c.GetI4(data.TypNoise); 63 c.GetR 4s(&data.MinADU, 6);58 c.GetR8s(&data.MinADU, 6); 64 59 return c; 65 60 } 66 61 67 //STRUCTPERSISTIO(DynCCD, TypNoise, sizeof(int_4)+6*sizeof(float)) 62 68 63 69 64
Note:
See TracChangeset
for help on using the changeset viewer.