26 #ifndef _CREATEBRIGHTIMGDIALOG_H
27 #define _CREATEBRIGHTIMGDIALOG_H
31 #include <vigra/imagecontainer.hxx>
44 bool SetImage(
const wxString& filename, wxString& errorMsg);
48 void OnOk(wxCommandEvent & e);
56 void OnSize(wxSizeEvent& e);
86 #endif //_CREATEBRIGHTIMGDIALOG_H
wxChoice * m_stepWidthChoice
Dialog for create brighter and/or darker versions of an image.
bool CreateAndSaveExposureCorrectedImage(const wxString &filename, const double correction)
create the exposure corrected image and save it to the file
wxBitmap m_scaledwxBitmap
current image as wxBitmap
std::vector< double > m_exposures
CreateBrightImgDlg(wxWindow *parent)
Constructor, read from xrc ressource; restore position.
void OnSize(wxSizeEvent &e)
handler called when size of control was changed
~CreateBrightImgDlg()
destructor, save position
bool SetImage(const wxString &filename, wxString &errorMsg)
load the image, return true on success, otherwise false, error cause is in errorMsg ...
wxStaticBitmap * m_previewBitmap
void OnCreateExposureLevels(wxCommandEvent &e)
update listbox with new exposure values
void RescaleImage()
create rescaled image
wxListCtrl * m_exposuresListBox
void OnExposureChecked(wxListEvent &e)
prevent checking of exposure value 0
void OnExposureSelected(wxListEvent &e)
one exposure selected
vigra::BRGBImage m_scaledImg
current image as vigra::RGBImage
ImageCache::EntryPtr m_image
image cache entry for current image
include file for the hugin project
void CreatewxBitmap(const vigra::BRGBImage &img)
create the wxBitmap version and apply color profiles
double GetExposureStepWidth() const
returns the current selected exposure step width
void OnOk(wxCommandEvent &e)
process all images
long GetCheckedItemCount()
return the number of checked exposures
wxArrayString m_tempFiles
wxArrayString GetTempFiles() const