Last change
on this file since 1431 was 1371, checked in by ansari, 25 years ago |
MAJ documentation, Makefile, ... - Reza 5/1/2001
|
File size:
1.2 KB
|
Line | |
---|
1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
2 | //--------------------------------------------------------------------------
|
---|
3 | // File and Version Information:
|
---|
4 | // Simple Operations on Maps
|
---|
5 | // Description:
|
---|
6 | //
|
---|
7 | // History (add to end):
|
---|
8 | // Sophie April, 2000 - creation
|
---|
9 | // code from Reza
|
---|
10 | //------------------------------------------------------------------------
|
---|
11 |
|
---|
12 | #ifndef MapOperation_SEEN
|
---|
13 | #define MapOperation_SEEN
|
---|
14 |
|
---|
15 | #include "machdefs.h"
|
---|
16 | #include <math.h>
|
---|
17 | #include "ndatablock.h"
|
---|
18 | #include "pixelmap.h"
|
---|
19 |
|
---|
20 | namespace SOPHYA {
|
---|
21 |
|
---|
22 | //! Class for simple mathematical operation on maps
|
---|
23 |
|
---|
24 | template <class T>
|
---|
25 | class MapOperations {
|
---|
26 | public:
|
---|
27 | void meanSig(NDataBlock<T> const & dbl, double& gmoy, double& gsig);
|
---|
28 | void sphTosph(PixelMap<T>& in, PixelMap<T>& out);
|
---|
29 |
|
---|
30 | void Sph2Sph(PixelMap<T>& in, PixelMap<T>& out);
|
---|
31 | void MeanSig(NDataBlock<T> const & dbl, double& gmoy, double& gsig);
|
---|
32 | };
|
---|
33 |
|
---|
34 | template <class T>
|
---|
35 | inline void Sph2Sph(PixelMap<T>& in, PixelMap<T>& out)
|
---|
36 | { MapOperations<T> a; a.sphTosph(in,out); }
|
---|
37 |
|
---|
38 | template <class T>
|
---|
39 | inline void MeanSig(NDataBlock<T> const & dbl, double& gmoy, double& gsig)
|
---|
40 | { MapOperations<T> a; a.meanSig(dbl,gmoy,gsig); }
|
---|
41 |
|
---|
42 | } // namespace SOPHYA
|
---|
43 |
|
---|
44 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.