[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
vigra/invariant_features3D.hxx | ![]() |
00001 /************************************************************************/ 00002 /* */ 00003 /* Copyright 2009-2010 by Ullrich Koethe and Janis Fehr */ 00004 /* */ 00005 /* This file is part of the VIGRA computer vision library. */ 00006 /* The VIGRA Website is */ 00007 /* http://hci.iwr.uni-heidelberg.de/vigra/ */ 00008 /* Please direct questions, bug reports, and contributions to */ 00009 /* ullrich.koethe@iwr.uni-heidelberg.de or */ 00010 /* vigra@informatik.uni-hamburg.de */ 00011 /* */ 00012 /* Permission is hereby granted, free of charge, to any person */ 00013 /* obtaining a copy of this software and associated documentation */ 00014 /* files (the "Software"), to deal in the Software without */ 00015 /* restriction, including without limitation the rights to use, */ 00016 /* copy, modify, merge, publish, distribute, sublicense, and/or */ 00017 /* sell copies of the Software, and to permit persons to whom the */ 00018 /* Software is furnished to do so, subject to the following */ 00019 /* conditions: */ 00020 /* */ 00021 /* The above copyright notice and this permission notice shall be */ 00022 /* included in all copies or substantial portions of the */ 00023 /* Software. */ 00024 /* */ 00025 /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND */ 00026 /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES */ 00027 /* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND */ 00028 /* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT */ 00029 /* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, */ 00030 /* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING */ 00031 /* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR */ 00032 /* OTHER DEALINGS IN THE SOFTWARE. */ 00033 /* */ 00034 /************************************************************************/ 00035 00036 #ifndef VIGRA_INVARIANT_FEATURES3D_HXX 00037 #define VIGRA_INVARIANT_FEATURES3D_HXX 00038 00039 #include <complex> 00040 #include "config.hxx" 00041 #include "error.hxx" 00042 #include "utilities.hxx" 00043 #include "mathutil.hxx" 00044 #include "array_vector.hxx" 00045 #include "matrix.hxx" 00046 #include "tinyvector.hxx" 00047 #include "quaternion.hxx" 00048 00049 namespace vigra { 00050 00051 namespace detail { 00052 00053 // computes the normalization for SH base functions 00054 inline double realSH(double l, double m) 00055 { 00056 return std::sqrt((2.0*l + 1.0) / (4.0*M_PI*facLM(l,m))); 00057 00058 } 00059 00060 template<int N, class T, class C> 00061 TinyVector<float, N> centerOfBB(MultiArrayView<N, T, C> const & A) 00062 { 00063 return TinyVector<float, N>(A.shape()) /= 2.0; 00064 } 00065 00066 } // namespace detail 00067 00068 00069 } // namespace vigra 00070 00071 #endif // VIGRA_INVARIANT_FEATURES3D_HXX
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|