IDS peak ICV v1.2.0
Loading...
Searching...
No Matches
peak_icv_rotation_feature.hpp
Go to the documentation of this file.
1
11#pragma once
12
16
17namespace peak
18{
19namespace pipeline
20{
21namespace features
22{
23
43{
44public:
53
57 void SetEnabled(bool enabled) override;
58
62 PEAK_COMMON_NO_DISCARD bool IsEnabled() const override;
63
71 void ResetToDefault() override;
72
80 void SetAngle(Rotation angle);
81
89 PEAK_COMMON_NO_DISCARD Rotation GetAngle() const;
90
91private:
93};
94
96 : m_module(module)
97{}
98
99inline void RotationFeature::SetEnabled(bool enabled)
100{
101 m_module.SetRotationEnabled(enabled);
102}
103
104inline bool RotationFeature::IsEnabled() const
105{
106 return m_module.IsRotationEnabled();
107}
108
110{
111 m_module.SetRotationAngle(detail::TransformationModule::defaultRotation);
112}
113
115{
116 m_module.SetRotationAngle(angle);
117}
118
120{
121 return m_module.GetRotationAngle();
122}
123
124} // namespace features
125} // namespace pipeline
126} // namespace peak
Transformation is an image pipeline module that provides mirror and rotation functionality.
void SetRotationAngle(Rotation angle)
Sets the desired rotation angle.
Rotation GetRotationAngle() const
Gets the current rotation angle.
Abstract base class for all image processing pipeline features.
Rotation provides fixed-angle rotation functionality.
RotationFeature(detail::TransformationModule &module)
Creates a RotationFeature for an existing transformation module.
void SetEnabled(bool enabled) override
Enables or disables the feature.
void SetAngle(Rotation angle)
Sets the desired rotation angle.
void ResetToDefault() override
Resets the rotation to the default value.
Rotation GetAngle() const
Gets the current rotation angle.
bool IsEnabled() const override
Indicates whether the feature is currently enabled.
Rotation
Angle parameter for the rotation algorithm.