14 #ifndef GUI_EDITING_HISTOGRAMEDITOR_H 15 #define GUI_EDITING_HISTOGRAMEDITOR_H 41 QWidget *parent=0,
const char* name=0);
50 int &redLeft,
int &redRight,
51 int &greenLeft,
int &greenRight,
52 int &blueLeft,
int &blueRight);
86 double scaleColor(
double color,
int left,
int right );
115 #endif //GUI_EDITING_HISTOGRAMEDITOR_H
void selectPreviewImageType(int selection)
updates preview image
void applyAction()
check for changes to settings, if so
Interface for adjusting image historgram using upper and lower bounds and bright and contrast control...
QComboBox * histogramType
void resetContrast()
reset contrast
HistogramInterface * histogramInterface
Histogram view.
double meanR
Mean color values.
QImage * getModifiedImage()
get modified image that resulted from adjustments
void resetAction()
resets all adjustments
DynamicSlider * brightness
Brightness slider.
void adjustImage(QImage &image)
double scaleColor(double color, int left, int right)
ClickableLabel * contrastIcon
ClickableLabel * brightnessIcon
void keyReleaseEvent(QKeyEvent *e)
HistogramEditor(QString filename, QWidget *parent=0, const char *name=0)
Constructs layout.
void generateAdjustedPreviewImage()
updates adjusted preview image
DynamicSlider * contrast
Contrast slider.
void selectHistogramType(int selection)
updates historgram interface
A more dynamic slider that provides moving tooltips that show the slider value.
ScaledPreviewInterface * previewInterface
Preview image.
void keyPressEvent(QKeyEvent *e)
void getHistBoundaries(int &lumLeft, int &lumRight, int &redLeft, int &redRight, int &greenLeft, int &greenRight, int &blueLeft, int &blueRight)
returns histogram boundaries
QComboBox * previewSelection
void resetBrightness()
reset brightness