Perspective correction implemented
This commit is contained in:
@@ -177,6 +177,15 @@ class CoarseTransformParams {
|
||||
bool vflip;
|
||||
};
|
||||
|
||||
/**
|
||||
* Common transformation parameters
|
||||
*/
|
||||
class CommonTransformParams {
|
||||
|
||||
public:
|
||||
bool autofill;
|
||||
};
|
||||
|
||||
/**
|
||||
* Parameters of the rotation
|
||||
*/
|
||||
@@ -184,7 +193,6 @@ class RotateParams {
|
||||
|
||||
public:
|
||||
double degree;
|
||||
bool fill;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -193,8 +201,19 @@ class RotateParams {
|
||||
class DistortionParams {
|
||||
|
||||
public:
|
||||
bool uselensfun;
|
||||
double amount;
|
||||
};
|
||||
|
||||
/**
|
||||
* Parameters of the perspective correction
|
||||
*/
|
||||
class PerspectiveParams {
|
||||
|
||||
public:
|
||||
int horizontal;
|
||||
int vertical;
|
||||
};
|
||||
|
||||
/**
|
||||
* Parameters of the vignetting correction
|
||||
@@ -300,8 +319,10 @@ class ProcParams {
|
||||
SHParams sh; ///< Shadow/highlight enhancement parameters
|
||||
CropParams crop; ///< Crop parameters
|
||||
CoarseTransformParams coarse; ///< Coarse transformation (90, 180, 270 deg rotation, h/v flipping) parameters
|
||||
CommonTransformParams commonTrans; ///< Common transformation parameters (autofill)
|
||||
RotateParams rotate; ///< Rotation parameters
|
||||
DistortionParams distortion; ///< Lens distortion correction parameters
|
||||
DistortionParams distortion; ///< Lens distortion correction parameters
|
||||
PerspectiveParams perspective; ///< Perspective correction parameters
|
||||
CACorrParams cacorrection; ///< Lens c/a correction parameters
|
||||
VignettingParams vignetting; ///< Lens vignetting correction parameters
|
||||
ChannelMixerParams chmixer; ///< Channel mixer parameters
|
||||
|
Reference in New Issue
Block a user