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