[gegl/soc-2011-ops] Lens correct header
- From: Robert Sasu <sasurobert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2011-ops] Lens correct header
- Date: Tue, 16 Aug 2011 12:54:04 +0000 (UTC)
commit 7cce9a3c3357dd4bfe940e0a5a81d84a6b7fb994
Author: Robert Sasu <sasu robert gmail com>
Date: Tue Aug 16 15:53:29 2011 +0300
Lens correct header
operations/workshop/lens-correct.h | 25 +++++++++++++++++++------
1 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/operations/workshop/lens-correct.h b/operations/workshop/lens-correct.h
index 8c4e58e..9d41719 100644
--- a/operations/workshop/lens-correct.h
+++ b/operations/workshop/lens-correct.h
@@ -9,18 +9,31 @@
* Note that d is the parameter that's approximately equal to 1 - a - b - c, NOT one of the image
* shift parameters as used in some GUIs.
*/
-typedef struct {
+typedef struct
+{
gfloat a, b, c, d;
} ChannelCorrectionModel;
/* Struct containing all the information required for lens correction. It includes the total size
* of the image plus the correction parameters for each color channel.
*/
-typedef struct {
- GeglRectangle BB; /* Bounding box of the imaged area. */
- gfloat cx, cy; /* Coordinates of lens center within the imaged area. */
- gfloat rscale; /* Scale of the image (1/2 of the shortest side). */
- ChannelCorrectionModel red, green, blue; /* Correction parameters for each color channel. */
+typedef struct
+{
+ GeglRectangle BB; /* Bounding box of the imaged area. */
+ gfloat cx, cy; /* Coordinates of lens center within the imaged area. */
+ gfloat rscale; /* Scale of the image (1/2 of the shortest side). */
+ ChannelCorrectionModel red, green, blue, alpha; /* Correction parameters for each color channel. */
} LensCorrectionModel;
+typedef struct
+{
+ gdouble centre_x;
+ gdouble centre_y;
+ gdouble mult_sq;
+ gdouble mult_qd;
+ gdouble rescale;
+ gdouble brighten;
+ gdouble norm;
+} OldLensDistort;
+
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]