Image Component Library (ICL)
GradientImage.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLFilter/src/ICLFilter/GradientImage.h **
10 ** Module : ICLFilter **
11 ** Authors: Christof Elbrechter **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
34 #include <ICLCore/Img.h>
35 
36 namespace icl{
37  namespace filter{
38 
40 
59  public:
60 
63  calculateXYOnly=0,
64  calculateIntensity=1,
65  calculateAngle=2,
66  calculateAll=3
67  };
68 
71 
73  void update(const core::ImgBase *src, calculationMode mode=calculateAll);
74 
76  const core::Img16s &getGradXImage() const{ return m_oX; }
77 
79  const core::Img16s &getGradYImage() const{ return m_oY; }
80 
82  const core::Img32f &getGradIntensityImage() const { return m_oI; }
83 
85  const core::Img32f &getGradAngleImage() const { return m_oA; }
86 
88  void normalize();
89  private:
93  };
94  } // namespace filter
95 }
96 
core::Img16s m_oY
Definition: GradientImage.h:91
undocument this line if you encounter any issues!
Definition: Any.h:37
const core::Img16s & getGradYImage() const
return current Y-Gradient image
Definition: GradientImage.h:79
const core::Img16s & getGradXImage() const
return current X-Gradient image
Definition: GradientImage.h:76
const core::Img32f & getGradIntensityImage() const
return current Gradient-Intensity image
Definition: GradientImage.h:82
const core::Img32f & getGradAngleImage() const
return current Gradient-Angle image
Definition: GradientImage.h:85
core::Img16s m_oBuf
Definition: GradientImage.h:90
ICLQt_API core::Img< T > filter(const core::Img< T > &image, const std::string &filter)
applies a filter operation on the source image (affinity for float)
GradientImage()
Empty constructor.
Definition: GradientImage.h:70
calculationMode
flags to indicate which gradient information should be calculated
Definition: GradientImage.h:62
Class for calculation of gradient image information.
Definition: GradientImage.h:58
math::FixedColVector< T, 4 > normalize(const math::FixedMatrix< T, 1, 4 > &v)
normalize a vector to length 1
Definition: HomogeneousMath.h:97
#define ICLFilter_API
Definition: CompatMacros.h:175
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
The Img class implements the ImgBase Image interface with type specific functionalities .
Definition: Img.h:49
core::Img32f m_oI
Definition: GradientImage.h:92