OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
polar.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2020 by the OpenStructure authors
5 // Copyright (C) 2003-2010 by the IPLT authors
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the Free
9 // Software Foundation; either version 3.0 of the License, or (at your option)
10 // any later version.
11 // This library is distributed in the hope that it will be useful, but WITHOUT
12 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 // details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with this library; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 //------------------------------------------------------------------------------
20 #ifndef IMG_ALG_POLAR_HH
21 #define IMG_ALG_POLAR_HH
22 
23 #include <ost/base.hh>
24 #include <ost/img/algorithm.hh>
25 
26 
27 /*
28  author: Andreas Schenk
29 */
30 
31 
32 namespace ost { namespace img { namespace alg {
33 
34 class DLLEXPORT Polar: public ModOPAlgorithm
35 {
36 public:
37  Polar();
38  Polar(Real sampling);
39  // algorithm interface
40  ImageHandle Visit(const ConstImageHandle& i);
41 private:
42  Real sampling_;
43 };
44 
45 class DLLEXPORT EllipticPolar: public ModOPAlgorithm
46 {
47 public:
48  EllipticPolar(Real ratio=1,Real angle=0,Real sampling=1);
49  // algorithm interface
50  ImageHandle Visit(const ConstImageHandle& i);
51 private:
52  Real ratio_;
53  Real angle_;
54  Real sampling_;
55 };
56 
57 class DLLEXPORT Cartesian: public ModOPAlgorithm
58 {
59 public:
60  Cartesian();
61  // algorithm interface
62  ImageHandle Visit(const ConstImageHandle& i);
63 private:
64 };
65 
66 }}} // ns
67 
68 #endif // IPLT_ALG_POLAR_HH
float Real
Definition: base.hh:44
read-only ImageHandle implementation
out-of-place modification algorithm
Manage shared instances of images.