27#include <wx/dcbuffer.h>
28#include <wx/dcclient.h>
175 const int w = size.GetWidth();
176 const int h = size.GetHeight();
declaration of PreviewWindow class
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
create the control
void setImage(const wxString &filename)
set the current image and mask list, this loads also the image from cache
vigra::ImageImportInfo::ICCProfile m_iccProfile
remember icc profile of currently loaded file
double calcAutoScaleFactor(wxSize size)
calculate new scale factor for this image
double m_scaleFactor
store current scale factor
int scale(int x) const
helper function to scale of width/height
double getScale()
return scale factor, 0 for autoscale
void OnSize(wxSizeEvent &e)
handler called when size of control was changed
void OnPaint(wxPaintEvent &e)
drawing routine
double getScaleFactor() const
get scale factor (calculates factor when fit to window is active)
void setScale(double factor)
set the scaling factor f.
void rescaleImage()
rescale the image
void CorrectImage(wxImage &image, const vigra::ImageImportInfo::ICCProfile &iccProfile, const cmsHPROFILE &monitorProfile)
apply color correction to given image using input iccProfile and monitor profile
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.