Image Component Library (ICL)
InplaceOp.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/InplaceOp.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/ImgBase.h>
35 
36 namespace icl{
37  namespace filter{
38 
40 
48  public:
49 
51  InplaceOp():m_bROIOnly(true){}
52 
54  virtual core::ImgBase* apply(core::ImgBase *src)=0;
55 
57  void setROIOnly(bool roiOnly) {
58  m_bROIOnly=roiOnly;
59  }
60 
62  bool getROIOnly() const {
63  return m_bROIOnly;
64  }
65 
66  private:
68  bool m_bROIOnly;
69  };
70  } // namespace filter
71 }
72 
void setROIOnly(bool roiOnly)
setup the operation to work on the input images ROI only or not
Definition: InplaceOp.h:57
undocument this line if you encounter any issues!
Definition: Any.h:37
bool getROIOnly() const
returns whether operator is in "roi-only" mode or not
Definition: InplaceOp.h:62
InplaceOp()
Create a new Inplace op (ROI-only flag is set to true)
Definition: InplaceOp.h:51
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)
#define ICLFilter_API
Definition: CompatMacros.h:175
bool m_bROIOnly
"roi-only" flag
Definition: InplaceOp.h:68
Interface class for inplace operators.
Definition: InplaceOp.h:47
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131