digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::AutoRotator Class Reference

Public Member Functions

float rotationAngle (const DImg &img, bool copyDImg=true)
 rotationAngle
 
MetaEngineRotation::TransformationAction rotationOrientation (const DImg &img, int sensitivity, bool copyDImg=true)
 rotationOrientation
 
MetaEngineRotation::TransformationAction rotationOrientation (const QString &img, int sensitivity)
 rotationOrientation
 

Protected Attributes

DNNModelNetmodel = nullptr
 

Member Function Documentation

◆ rotationAngle()

float Digikam::AutoRotator::rotationAngle ( const DImg img,
bool  copyDImg = true 
)
Parameters
imgThe DImg file must be in the same rotation as what is displayed in the image viewer
Returns
The free rotation angle

◆ rotationOrientation() [1/2]

MetaEngineRotation::TransformationAction Digikam::AutoRotator::rotationOrientation ( const DImg img,
int  sensitivity,
bool  copyDImg = true 
)
Parameters
imgThe DImg file must be in the same rotation as what is displayed in the image viewer
sensitivityThe sensitivity of the of the base angle
Returns
The rotation action to be taken

◆ rotationOrientation() [2/2]

MetaEngineRotation::TransformationAction Digikam::AutoRotator::rotationOrientation ( const QString &  img,
int  sensitivity 
)
Parameters
imgThe image file path
sensitivityThe sensitivity of the of the base angle
Returns
The rotation action to be taken