41 wxXmlResource::Get()->LoadDialog(
this,
parent,
"mask_load_dialog");
66 if(GetSize().GetWidth()<400)
Definition of mask load dialog.
All variables of a source image.
void SetUserColourPointUnselected(wxColour newColour)
void setImage(const std::string &filename, HuginBase::MaskPolygonVector newMask, HuginBase::MaskPolygonVector masksToDraw, ImageRotation rot)
set the current image and mask list, this loads also the image from cache
void SetUserColourPolygonPositive(wxColour newColour)
void setScale(double factor)
set the scaling factor for mask editing display.
void setNewMasks(HuginBase::MaskPolygonVector newMasks, HuginBase::MaskPolygonVector masksToDraw)
updates masks for currently selected image
void SetUserColourPointSelected(wxColour newColour)
void setPreviewOnly()
if called, the mouse handlers are deactivated
void SetUserColourPolygonNegative(wxColour newColour)
sets the colour for different parts
void UpdatePreviewImage()
void initValues(const HuginBase::SrcPanoImage image, const HuginBase::MaskPolygonVector newMask, const vigra::Size2D maskSize)
sets the default values
void ProcessMask(wxCommandEvent &e)
virtual ~MaskLoadDialog()
wxRadioBox * m_maskRotateMode
wxRadioBox * m_maskScaleMode
HuginBase::MaskPolygonVector m_processedMask
vigra::Size2D m_imageSize
MaskLoadDialog(wxWindow *parent)
Constructor, read from xrc ressource.
HuginBase::MaskPolygonVector m_loadedMask
#define HUGIN_MASK_COLOUR_POINT_SELECTED
#define HUGIN_MASK_COLOUR_POINT_UNSELECTED
#define HUGIN_MASK_COLOUR_POLYGON_NEGATIVE
#define HUGIN_MASK_COLOUR_POLYGON_POSITIVE
std::vector< MaskPolygon > MaskPolygonVector
const int maskOffset
polygon can exceed the image maximal maskOffset pixels in each direction bigger polygons will be clip...
void StoreFramePosition(wxTopLevelWindow *frame, const wxString &basename, const bool ignoreMaximize)
void RestoreFramePosition(wxTopLevelWindow *frame, const wxString &basename, const bool ignoreMaximize)
include file for the hugin project
include file for the hugin project
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.