AlbumShaper
1.0a3
|
#include <qimage.h>
#include <q3valuestack.h>
#include <qpoint.h>
Go to the source code of this file.
Functions | |
void | findRegionOfInterest (QPoint topLeftExtreme, QPoint bottomRightExtreme) |
void | findBlobs () |
void | pushPixel (int x, int y, int id) |
void | sortBlobsByDecreasingSize () |
void | findBestTwoBlobs () |
void | desaturateBlobs () |
void | desaturateEntireImage (QPoint topLeftExtreme, QPoint bottomRightExtreme) |
bool | IDedPixel (int x, int y) |
double | desaturateAlpha (int x, int y) |
Variables | |
StatusWidget * | status |
int | updateIncrement |
int | newProgress |
QImage | rawImage |
QImage * | editedImage |
QPoint | topLeft |
QPoint | bottomRight |
int | regionWidth |
int | regionHeight |
int | blobPixelCount |
QPoint | blobTopLeft |
QPoint | blobBottomRight |
int * | regionOfInterest |
Q3ValueStack< QPoint > | spreadablePixels |
Q3ValueStack< int > | blobIDs |
Q3ValueStack< int > | blobSizes |
Q3ValueStack< double > | blobAspectRatios |
int | blobCount |
int * | ids |
int * | sizes |
double * | ratios |
int | id1 |
int | id2 |
double desaturateAlpha | ( | int | x, |
int | y | ||
) |
void desaturateBlobs | ( | ) |
Definition at line 612 of file redEye.cpp.
References bottomRight, desaturateAlpha(), editedImage, and topLeft.
Referenced by removeRedeyeRegions().
void desaturateEntireImage | ( | QPoint | topLeftExtreme, |
QPoint | bottomRightExtreme | ||
) |
Definition at line 643 of file redEye.cpp.
References editedImage.
Referenced by removeRedeyeRegions().
void findBestTwoBlobs | ( | ) |
Definition at line 506 of file redEye.cpp.
References blobCount, id1, id2, ids, ratios, and sizes.
Referenced by removeRedeyeRegions().
void findBlobs | ( | ) |
Definition at line 372 of file redEye.cpp.
References blobAspectRatios, blobBottomRight, blobIDs, blobPixelCount, blobSizes, blobTopLeft, bottomRight, MIN_RED_VAL, pushPixel(), rawImage, regionHeight, regionOfInterest, regionWidth, spreadablePixels, and topLeft.
Referenced by removeRedeyeRegions().
void findRegionOfInterest | ( | QPoint | topLeftExtreme, |
QPoint | bottomRightExtreme | ||
) |
Definition at line 305 of file redEye.cpp.
References bottomRight, StatusWidget::incrementProgress(), MIN_RED_VAL, newProgress, rawImage, status, topLeft, and updateIncrement.
Referenced by removeRedeyeRegions().
bool IDedPixel | ( | int | x, |
int | y | ||
) |
Definition at line 561 of file redEye.cpp.
References bottomRight, id1, id2, regionIndex(), regionOfInterest, regionWidth, and topLeft.
Referenced by desaturateAlpha().
void pushPixel | ( | int | x, |
int | y, | ||
int | id | ||
) |
Definition at line 350 of file redEye.cpp.
References blobBottomRight, blobPixelCount, blobTopLeft, regionHeight, regionOfInterest, regionWidth, and spreadablePixels.
Referenced by findBlobs().
void sortBlobsByDecreasingSize | ( | ) |
Definition at line 468 of file redEye.cpp.
References blobAspectRatios, blobCount, blobIDs, blobSizes, ids, ratios, and sizes.
Referenced by removeRedeyeRegions().
Q3ValueStack<double> blobAspectRatios |
Definition at line 58 of file redEye_internal.h.
Referenced by findBlobs(), and sortBlobsByDecreasingSize().
QPoint blobBottomRight |
Definition at line 50 of file redEye_internal.h.
Referenced by findBlobs(), and pushPixel().
int blobCount |
Definition at line 63 of file redEye_internal.h.
Referenced by findBestTwoBlobs(), and sortBlobsByDecreasingSize().
Q3ValueStack<int> blobIDs |
Definition at line 56 of file redEye_internal.h.
Referenced by findBlobs(), and sortBlobsByDecreasingSize().
int blobPixelCount |
Definition at line 49 of file redEye_internal.h.
Referenced by findBlobs(), and pushPixel().
Q3ValueStack<int> blobSizes |
Definition at line 57 of file redEye_internal.h.
Referenced by findBlobs(), and sortBlobsByDecreasingSize().
QPoint blobTopLeft |
Definition at line 50 of file redEye_internal.h.
Referenced by findBlobs(), and pushPixel().
QPoint bottomRight |
Definition at line 42 of file redEye_internal.h.
Referenced by correctImageTilt(), EditingInterface::crop(), desaturateBlobs(), findBlobs(), findRegionOfInterest(), EditingInterface::handleSelectionChanged(), IDedPixel(), SelectionInterface::keyPressEvent(), SelectionInterface::mouseActionByPosition(), SelectionInterface::mouseMoveEvent(), SelectionInterface::mousePressEvent(), SelectionInterface::mouseReleaseEvent(), SelectionPlacementInterface::paintEvent(), SelectionInterface::paintEvent(), EditingInterface::removeRedeye(), EditingInterface::rotateSelection(), SelectionInterface::scaleSelection(), and SelectionInterface::setSelection().
QImage* editedImage |
Definition at line 37 of file redEye_internal.h.
Referenced by EditingInterface::applyEffect(), EditingInterface::applyImageUpdate(), blackWhiteEffect(), correctImageTilt(), desaturateBlobs(), desaturateEntireImage(), embossEffect(), enhanceImageContrast(), improveColorBalance(), invertEffect(), mosaicEffect(), oilPaintingEffect(), pointillismEffect(), removeRedeyeRegions(), EditingInterface::selectEffect(), and sepiaEffect().
int id1 |
Definition at line 71 of file redEye_internal.h.
Referenced by findBestTwoBlobs(), IDedPixel(), and removeRedeyeRegions().
int id2 |
Definition at line 71 of file redEye_internal.h.
Referenced by findBestTwoBlobs(), and IDedPixel().
int* ids |
Definition at line 64 of file redEye_internal.h.
Referenced by findBestTwoBlobs(), and sortBlobsByDecreasingSize().
int newProgress |
Definition at line 31 of file redEye_internal.h.
Referenced by blackWhiteEffect(), correctImageTilt(), embossEffect(), enhanceImageContrast(), findRegionOfInterest(), improveColorBalance(), mosaicEffect(), oilPaintingEffect(), removeRedeyeRegions(), and sepiaEffect().
double* ratios |
Definition at line 66 of file redEye_internal.h.
Referenced by findBestTwoBlobs(), and sortBlobsByDecreasingSize().
QImage rawImage |
Definition at line 34 of file redEye_internal.h.
Referenced by findBlobs(), findRegionOfInterest(), and removeRedeyeRegions().
int regionHeight |
Definition at line 47 of file redEye_internal.h.
Referenced by findBlobs(), and pushPixel().
int* regionOfInterest |
Definition at line 52 of file redEye_internal.h.
Referenced by findBlobs(), IDedPixel(), and pushPixel().
int regionWidth |
Definition at line 47 of file redEye_internal.h.
Referenced by findBlobs(), IDedPixel(), and pushPixel().
int* sizes |
Definition at line 65 of file redEye_internal.h.
Referenced by findBestTwoBlobs(), and sortBlobsByDecreasingSize().
Q3ValueStack<QPoint> spreadablePixels |
Definition at line 54 of file redEye_internal.h.
Referenced by findBlobs(), and pushPixel().
StatusWidget* status |
Definition at line 21 of file redEye_internal.h.
Referenced by blackWhiteEffect(), embossEffect(), findRegionOfInterest(), oilPaintingEffect(), removeRedeyeRegions(), and sepiaEffect().
QPoint topLeft |
Definition at line 42 of file redEye_internal.h.
Referenced by PhotosIconView::captureClick(), correctImageTilt(), EditingInterface::crop(), desaturateBlobs(), findBlobs(), findRegionOfInterest(), EditingInterface::handleSelectionChanged(), IDedPixel(), SelectionInterface::keyPressEvent(), SelectionInterface::mouseActionByPosition(), SelectionInterface::mouseMoveEvent(), SelectionInterface::mousePressEvent(), SelectionInterface::mouseReleaseEvent(), SelectionPlacementInterface::paintEvent(), SelectionInterface::paintEvent(), EditingInterface::removeRedeye(), removeRedeyeRegions(), EditingInterface::rotateSelection(), SelectionInterface::scaleSelection(), SelectionInterface::setSelection(), and Item::setTextWidth().
int updateIncrement |
Definition at line 28 of file redEye_internal.h.
Referenced by blackWhiteEffect(), correctImageTilt(), embossEffect(), enhanceImageContrast(), findRegionOfInterest(), improveColorBalance(), mosaicEffect(), oilPaintingEffect(), removeRedeyeRegions(), and sepiaEffect().