AlbumShaper
1.0a3
|
#include <qimage.h>
#include <qstring.h>
#include <qapplication.h>
#include <math.h>
#include "tilt.h"
#include "tilt_internal.h"
#include "../../gui/statusWidget.h"
Go to the source code of this file.
Macros | |
#define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
#define | MAX(x, y) ((x) < (y) ? (x) : (y)) |
Functions | |
QImage * | correctImageTilt (QString filename, QPoint p1, QPoint p2, StatusWidget *status) |
QRgb | interpolatedPixelValue (double xp, double yp, QImage *image) |
QRgb | blendColors (QRgb color1, QRgb color2, double alpha) |
DPoint | findTwoLineIntersection (DPoint p1, DPoint p2, DPoint p3, DPoint p4) |
#define MAX | ( | x, | |
y | |||
) | ((x) < (y) ? (x) : (y)) |
Definition at line 18 of file tilt.cpp.
Referenced by blendColors(), and correctImageTilt().
#define MIN | ( | x, | |
y | |||
) | ((x) < (y) ? (x) : (y)) |
Definition at line 17 of file tilt.cpp.
Referenced by blendColors(), and correctImageTilt().
QRgb blendColors | ( | QRgb | color1, |
QRgb | color2, | ||
double | alpha | ||
) |
QImage* correctImageTilt | ( | QString | filename, |
QPoint | p1, | ||
QPoint | p2, | ||
StatusWidget * | status | ||
) |
Definition at line 103 of file tilt.cpp.
References bottomRight, editedImage, findTwoLineIntersection(), StatusWidget::incrementProgress(), interpolatedPixelValue(), MAX, MIN, newProgress, StatusWidget::setStatus(), StatusWidget::showProgressBar(), topLeft, updateIncrement, DPoint::x(), and DPoint::y().
Referenced by EditingInterface::finishCorrectTilt().
Definition at line 370 of file tilt.cpp.
References DPoint::x(), and DPoint::y().
Referenced by correctImageTilt().
QRgb interpolatedPixelValue | ( | double | xp, |
double | yp, | ||
QImage * | image | ||
) |
Definition at line 315 of file tilt.cpp.
References blendColors(), height, and width.
Referenced by correctImageTilt().