source: Sophya/trunk/SophyaLib/NTools/imageop.h@ 220

Last change on this file since 220 was 220, checked in by ansari, 26 years ago

Creation module DPC/NTools Reza 09/04/99

File size: 2.4 KB
RevLine 
[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
16template <class T>
17void CleanImages(int nImg, Image<T>** imgTab, double nSig=1,
18 double lowbad=-1e20, double highbad=1e20);
19
20
21template <class T>
22float 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);
26template <class T>
27float 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
32int CalFondImage(RzImage *pim, double low, double high, int action);
33
34int 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
38int 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
42template <class T>
43float 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
48template <class T>
49Image<T> * FilterImage(Image<T> const * pim, Image<T> * pom, ImageR4 *matx);
50
51///////////////////////////////////////////////////////////////////
52//// Filtre statistique d'images
53template <class T>
54Image<T> * FilterStat(Image<T> const * pim, Image<T> * pom
55 ,int N,int M,float lowbad,float highbad);
56///////////////////////////////////////////////////////////////////
57//// Spline d'images
58template <class T>
59Image<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
Note: See TracBrowser for help on using the repository browser.