Image Component Library (ICL)
ProximityOp.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/ProximityOp.h **
10 ** Module : ICLFilter **
11 ** Authors: Christof Elbrechter, Andre Justus **
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 <ICLFilter/BinaryOp.h>
35 #include <ICLCore/Img.h>
36 #include <ICLUtils/Uncopyable.h>
37 #include <ICLUtils/Configurable.h>
38 
39 namespace icl {
40  namespace filter{
41 
43 
115  public:
116 
118 
119  enum applymode{
123  };
124 
126 
127  enum optype{
131  };
132 
134 
138 
140  virtual ~ProximityOp(){
141  if(m_poImageBuffer) delete m_poImageBuffer;
143  }
144 
146 
153  ICLFilter_API virtual void apply(const core::ImgBase *poSrc1, const core::ImgBase *poSrc2, core::ImgBase **ppoDst);
154 
156  using BinaryOp::apply;
157 
159 
160  ICLFilter_API void setOpType(optype ot);
161 
163 
165 
167 
169 
171 
173 
174  private:
175 
178 
181  };
182  } // namespace filter
183 } // namespace icl
ICLFilter_API optype getOpType() const
returns the current optype
Definition: ProximityOp.h:130
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
applymode
enum to specify the current apply mode of a ProximityOp
Definition: ProximityOp.h:119
core::Img32f * m_poTemplateBuffer
internal used buffer for handling unsupported formats
Definition: ProximityOp.h:180
Definition: ProximityOp.h:120
virtual void apply(const core::ImgBase *operand1, const core::ImgBase *operand2, core::ImgBase **result)=0
pure virtual apply function
ICLFilter_API applymode getApplyMode() const
returns the current applymode
ICLFilter_API ProximityOp(optype ot, applymode am=valid)
Creates a new ProximityOp object with given apply mode and optype.
core::Img32f * m_poImageBuffer
internal used buffer for handling unsupported formats
Definition: ProximityOp.h:177
Abstract base class for binary image operations.
Definition: BinaryOp.h:42
Definition: ProximityOp.h:121
Definition: ProximityOp.h:129
optype
enum to specify the current operation type of a ProximityOp
Definition: ProximityOp.h:127
Definition: ProximityOp.h:122
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)
virtual ~ProximityOp()
Destructor.
Definition: ProximityOp.h:140
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
ICLFilter_API void setApplyMode(applymode am)
sets the current applymode
#define ICLFilter_API
Definition: CompatMacros.h:175
virtual ICLFilter_API void apply(const core::ImgBase *poSrc1, const core::ImgBase *poSrc2, core::ImgBase **ppoDst)
applies the current op given source image, template and destination image
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
Definition: ProximityOp.h:128
Class for computing proximity measures.
Definition: ProximityOp.h:114
ICLFilter_API void setOpType(optype ot)
sets the current optype