27#ifndef _SELECTCROPASPECTRATIODIALOG_H
28#define _SELECTCROPASPECTRATIODIALOG_H
31#include <wx/listbox.h>
32#include <wx/filename.h>
46 void OnOk(wxCommandEvent& e);
void FillListBox()
read the settings from the file and add them to the list box if the file does not exist,...
void OnAddAspectRatio(wxCommandEvent &e)
handler for adding new aspect ratio setting
wxArrayString m_aspectRatioStrings
array with names of all aspect ratios
void OnOk(wxCommandEvent &e)
handler for Ok, check for valid inputs
void ListBoxSelectionChanged()
implementation of activation/deactivation of buttons if necessary
void SaveAspectRatios()
save the aspect ratios to the file
wxFileName GetAspectRatioFilename() const
returns the file name for the list of aspect ratios
wxListBox * m_aspectList
pointer to wxListBox of aspect ratios
void OnRemoveAspectRatio(wxCommandEvent &e)
handler for removing selected aspect ratio
void LoadAspectRatios()
load aspect ratios from file
~SelectAspectRatioDialog()
destructor, save position and list of aspect ratios
void OnListBoxSelect(wxCommandEvent &e)
event handler for activation/deactivation of buttons if necessary
double GetSelectedAspectRatio() const
returns the selected aspect ratio
std::vector< double > m_aspectRatios
vector with values of all aspect ratios, ratio=width/height
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.