IDS peak ICV v1.6.0
Loading...
Searching...
No Matches
RotationFeature Class Reference

#include <peak_icv/pipeline/features/peak_icv_rotation_feature.hpp>

Inheritance diagram for RotationFeature:

Public Member Functions

 RotationFeature (detail::TransformationModule &module)
 Creates a RotationFeature for an existing transformation module.
 
void SetEnabled (bool enabled) override
 Enables or disables the feature.
 
bool IsEnabled () const override
 Gets whether this feature is currently enabled.
 
void ResetToDefault () override
 Resets the rotation to the default value.
 
void SetAngle (Rotation angle)
 Sets the desired rotation angle.
 
Rotation GetAngle () const
 Gets the current rotation angle.
 

Detailed Description

Rotation provides fixed-angle rotation functionality.

This feature rotates images in 90-degree increments, based on the rotation mode set via the RotationFeature::SetAngle method.

Warning
When processing images with a Bayer pattern, the result may have a different pixel format, though the bit depth remains unchanged. Ensure your application can handle potential pixel format changes after rotation.

Defaults
See also
Rotation, features::MirrorFeature
Since
ids_peak_icv 1.0

Constructor & Destructor Documentation

◆ RotationFeature()

RotationFeature ( detail::TransformationModule & module)
inlineexplicit

Creates a RotationFeature for an existing transformation module.

Parameters
moduleReference to the underlying detail::TransformationModule.
Since
ids_peak_icv 1.0

Member Function Documentation

◆ GetAngle()

Rotation GetAngle ( ) const
inline

Gets the current rotation angle.

Returns
The currently configured rotation angle.
Since
ids_peak_icv 1.0

◆ IsEnabled()

bool IsEnabled ( ) const
inlineoverridevirtual

Gets whether this feature is currently enabled.

Returns
true if enabled; otherwise false.
Since
ids_peak_icv 1.0

Implements IFeature.

◆ ResetToDefault()

void ResetToDefault ( )
inlineoverridevirtual

Resets the rotation to the default value.

Note
The enabled state does not change when calling this function.
Since
ids_peak_icv 1.0

Implements IFeature.

◆ SetAngle()

void SetAngle ( Rotation angle)
inline

Sets the desired rotation angle.

Parameters
angleThe rotation angle to apply (see Rotation enum).
Since
ids_peak_icv 1.0

◆ SetEnabled()

void SetEnabled ( bool enabled)
inlineoverridevirtual

Enables or disables the feature.

Parameters
enabledSet to true to enable, or false to disable.
Since
ids_peak_icv 1.0

Implements IFeature.