27#ifndef LensCalImageCtrl_H
28#define LensCalImageCtrl_H
declaration of functions for finding lines
declaration of helper class for LensCal
All variables of a source image.
xrc handler for LensCalImageCtrl
LensCalImageCtrlXmlHandler()
virtual bool CanHandle(wxXmlNode *node)
virtual wxObject * DoCreateResource()
image previewer for lens calibration GUI
LensCalPreviewMode m_previewMode
which image should be drawn
void SetShowLines(bool showLines)
void DrawView()
draw the view into the offscreen buffer
void SetMode(const LensCalPreviewMode newMode)
set which image (original, edge, remapped/corrected) should be drawn
LensCalImageCtrl()
constructor
wxBitmap m_scaled_img
the scaled image to save resizing
wxImage m_img
the image to adjust (full scale)
HuginBase::PanoramaOptions m_opts
HuginBase::SrcPanoImage::Projection m_projection
void SetLensDistortions(const double newA, const double newB, const double newC, const double newD, const double newE)
updates the internal values of the lens distortions parameters (needed only for remapped image)
void OnPaint(wxPaintEvent &dc)
paint event
HuginBase::SrcPanoImage m_panoimage
wxBitmap m_display_img
the image to display, e.g.
float m_scale
scale factor for scaling from m_img to m_scaled_img
void SetLens(const HuginBase::SrcPanoImage::Projection newProjection, const double newFocallength, const double newCropfactor)
updates the internal values of the lens (needed only for remapped image)
cmsHPROFILE m_monitorProfile
monitor profile
wxImage m_remapped_img
the remapped image as wxImage
vigra::BRGBImage m_edgeImage
the edge image as RGBImage (in m_imageLines the edge image is grayscale (vigra::BImage))
unsigned int m_imageIndex
const LensCalPreviewMode GetMode()
return actual preview mode
void SetEdgeImage()
converts the edge image into wxImage
vigra::BRGBImage m_remappedImage
the remapped image
void Resize(wxSizeEvent &e)
resize event, recalculates the offscreen buffer
void SetImage(ImageLineList *newList, unsigned int newIndex)
set preview setting to given ImageLineList
ImageLineList * m_imageLines
struct with filename, edge image and detected lines
void SetEmptyImage()
set preview to empty image
void OnMouseEvent(wxMouseEvent &e)
void GenerateRemappedImage(const unsigned int newWidth, const unsigned int newHeight)
generates the remapped image suitable for wxImage
bool m_hasMonitorProfile
true, if we found a real monitor profile
wxImage m_edge
the edge detect image (resized scale)
bool m_showLines
true, if the lines should be drawn above the image
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.