Changeset 1104 in Sophya for trunk/SophyaLib/NTools/dynccd.h


Ignore:
Timestamp:
Jul 27, 2000, 7:30:57 PM (25 years ago)
Author:
ansari
Message:

Heritage classe Image<T> de TMatrix<T> Reza+CMV 27/7/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/dynccd.h

    r896 r1104  
    66#include "machdefs.h"
    77#include "pexceptions.h"
     8#include "cimage.h"
    89#include "ppersist.h"
    910
     
    1718
    1819  int_4 TypNoise;        // Type de calcul du bruit
    19   float MinADU,MaxADU;   // Valeur min et max des pixels
    20   float Gain;            // Gain en electron/ADU
    21   float RONoise;         // Bruit de lecture en electron 
    22   float RefFond;         // Fond de ciel de ref (TypNoise=2)
    23   float RefSFond;        // 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) */
    2425
    2526/*    ===>  Les methodes   */
    26   DynCCD(int typ=0, float min=-9.e19, float max=9.e19,
    27          float g=1., float ron=0., float rf=0., float rfs=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.);
    2829
    29   void Set(int typ=0, float min=-9.e19, float max=9.e19,
    30          float g=1., float ron=0., float rf=0., float rfs=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.);
    3132  void Print();
    32   float Noise(float pixel) const;
     33  r_8 Noise(r_8 pixel) const;
    3334};
    3435
    3536} // Fin du namespace
    3637
    37 // Quelques fonctions pour manipuler des images de bruit
    38 
    39 class RzImage;
    40 RzImage * NoiseImage(RzImage const *pim, DynCCD const * dynccd);
    41 
    42 template <class T> class Image;
    4338
    4439template <class T>
    45 Image<T> * NoiseImage(Image<T> const * pim, DynCCD const * dynccd);
     40Image<T> NoiseImage(Image<T> const & pim, DynCCD const & dynccd);
    4641
    4742template <class T>
     
    5348{
    5449  c.PutI4(data.TypNoise);
    55   c.PutR4s(&data.MinADU, 6);
     50  c.PutR8s(&data.MinADU, 6);
    5651  return c;
    5752}
     
    6156{
    6257  c.GetI4(data.TypNoise);
    63   c.GetR4s(&data.MinADU, 6);
     58  c.GetR8s(&data.MinADU, 6);
    6459  return c;
    6560}
    6661
    67 //STRUCTPERSISTIO(DynCCD, TypNoise, sizeof(int_4)+6*sizeof(float))
     62
    6863
    6964
Note: See TracChangeset for help on using the changeset viewer.