[220] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 |
|
---|
| 3 | // Operations non elementaires sur les images.
|
---|
| 4 | // Les operations elementaires sont des methodes de la classe.
|
---|
| 5 |
|
---|
| 6 | // C. Magneville (Version C) E. Aubourg / R. Ansari C++
|
---|
| 7 |
|
---|
| 8 | // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA
|
---|
| 9 |
|
---|
| 10 | #ifndef IMAGEOP_H_SEEN
|
---|
| 11 | #define IMAGEOP_H_SEEN
|
---|
| 12 |
|
---|
| 13 | #include "cimage.h"
|
---|
| 14 | #include "cspline.h"
|
---|
| 15 |
|
---|
| 16 | template <class T>
|
---|
| 17 | void CleanImages(int nImg, Image<T>** imgTab, double nSig=1,
|
---|
| 18 | double lowbad=-1e20, double highbad=1e20);
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | template <class T>
|
---|
| 22 | float ImgFondCielHisto(Image<T> const& img, float binWidth=1, int degre=2,
|
---|
| 23 | float frac=0.5f,
|
---|
| 24 | float low=-999999.0, float high=999999.0,
|
---|
| 25 | int debug=0);
|
---|
| 26 | template <class T>
|
---|
| 27 | float ImgSigmaCiel(Image<T> const& img, int ndata, int binWidth, int taille,
|
---|
| 28 | float frac=0.5f, int degre=2,
|
---|
| 29 | float low=-999999.0, float high=999999.0,
|
---|
| 30 | int debug=0);
|
---|
| 31 |
|
---|
| 32 | int CalFondImage(RzImage *pim, double low, double high, int action);
|
---|
| 33 |
|
---|
| 34 | int FondSigmaCiel(RzImage *pim, float low, float high, int pvsz=100
|
---|
| 35 | ,float nbsig1=3.5f,float nbsig2=7.f,float nbsig3=5.f
|
---|
| 36 | ,float binsg=0.5f,float frac=0.33f,int modu=1,int deb=0);
|
---|
| 37 |
|
---|
| 38 | int RzFondSig2Ciel(RzImage * pim, int vitesse, float FracMax, int NbSigmas, int NBin,
|
---|
| 39 | float *MinPix, float *MaxPix, float *Fond, float *SigFond,
|
---|
| 40 | float *MinAff, float *MaxAff, float *FracNul, float *FracSature);
|
---|
| 41 |
|
---|
| 42 | template <class T>
|
---|
| 43 | float FondLocal(Image<T> const & image, float xcentre, float ycentre,
|
---|
| 44 | float rayon1, float rayon2, float fraclow, float frachigh, int lp=0);
|
---|
| 45 |
|
---|
| 46 | // Filtrage / convolution d'images
|
---|
| 47 |
|
---|
| 48 | template <class T>
|
---|
| 49 | Image<T> * FilterImage(Image<T> const * pim, Image<T> * pom, ImageR4 *matx);
|
---|
| 50 |
|
---|
| 51 | ///////////////////////////////////////////////////////////////////
|
---|
| 52 | //// Filtre statistique d'images
|
---|
| 53 | template <class T>
|
---|
| 54 | Image<T> * FilterStat(Image<T> const * pim, Image<T> * pom
|
---|
| 55 | ,int N,int M,float lowbad,float highbad);
|
---|
| 56 | ///////////////////////////////////////////////////////////////////
|
---|
| 57 | //// Spline d'images
|
---|
| 58 | template <class T>
|
---|
| 59 | Image<T> * CSplineImage(Image<T> const& f1,double pxsz=1.,double x0=0.,double y0=0.
|
---|
| 60 | ,int natural=(int)CSpline::NaturalAll);
|
---|
| 61 | ///////////////////////////////////////////////////////////////////
|
---|
| 62 |
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | #endif
|
---|