fw4spl
SThreshold.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #pragma once
8 
9 #include "opImageFilter/config.hpp"
10 
11 #include <fwServices/IOperator.hpp>
12 
13 namespace opImageFilter
14 {
15 
44 class OPIMAGEFILTER_CLASS_API SThreshold : public ::fwServices::IOperator
45 {
46 
47 public:
48 
50 
51  OPIMAGEFILTER_API SThreshold() noexcept;
52 
53  OPIMAGEFILTER_API virtual ~SThreshold() noexcept override;
54 
55 protected:
56 
57  OPIMAGEFILTER_API void starting() override;
58 
59  OPIMAGEFILTER_API void stopping() override;
60 
62  OPIMAGEFILTER_API void configuring() override;
63 
65  OPIMAGEFILTER_API void updating() override;
66 
67 private:
68 
70  double m_threshold;
71 };
72 
73 } // namespace opImageFilter
The namespace opImageFilter contains several operators on image.
This interface defines operator service API.
Definition: IOperator.hpp:25
Apply a threshold on an image.
Definition: SThreshold.hpp:44
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.