ICF 3.0.5.47
Technical documentation of ICF Libraries
CCaliperParamsComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iipr_CCaliperParamsComp_included
7#define iipr_CCaliperParamsComp_included
8
9
11
12#include <iipr/CCaliperParams.h>
13
14
15namespace iipr
16{
17
18
20{
21public:
23
24 I_BEGIN_COMPONENT(CCaliperParamsComp);
25 I_REGISTER_INTERFACE(iser::ISerializable);
26 I_REGISTER_INTERFACE(ICaliperParams);
27 I_ASSIGN(m_weightThresholdAttrPtr, "WeightThreshold", "Threshold of edge strength in range (0, 1)", true, 0.1);
28 I_ASSIGN(m_polarityModeAttrPtr, "PolarityMode", "Mode of polarity, 0 - reised, 1 - dropped, 2 - any", true, PM_ALL);
29 I_ASSIGN(m_directionModeAttrPtr, "DirectionMode", "Mode of direction, 0 - forward, 1 - backwards", true, DM_FORWARD);
30 I_END_COMPONENT;
31
32protected:
33 // reimplemented (icomp::CComponentBase)
34 void OnComponentCreated() override;
35
36private:
37 I_ATTR(double, m_weightThresholdAttrPtr);
38 I_ATTR(int, m_polarityModeAttrPtr);
39 I_ATTR(int, m_directionModeAttrPtr);
40};
41
42
43} // namespace iipr
44
45
46#endif // !iipr_CCaliperParamsComp_included
47
48
Base class for component implementation.
void OnComponentCreated() override
icomp::CComponentBase BaseClass
@ PM_ALL
Any polarity will be accepted.
Common class for all classes which objects can be archived or restored from archive.
Contains the image processing classes.

© Witold Gantzke and Kirill Lepskiy