56 _(
"Bitmap (*.bmp)|*.bmp|PNG-File (*.png)|*.png"),
59 dlg.SetFilterIndex(
config->Read(
"/lastImageTypeIndex", 0l));
62 config->Write(
"/actualPath",
dlg.GetDirectory());
66 if (!filename.HasExt())
71 filename.SetExt(
"png");
75 filename.SetExt(
"bmp");
79 if (filename.FileExists())
126 m_dc.DestroyClippingRegion();
167 for (
size_t i = 0;
i <
points.size();
i++)
196 opts.
setHFOV(srcImage.getHFOV());
203 const double minLength = std::min<double>(srcImage.getWidth(), srcImage.getHeight()) / 2.0;
204 const double maxR = std::sqrt(
static_cast<double>(srcImage.getWidth()*srcImage.getWidth() + srcImage.getHeight()*srcImage.getHeight())) / (2.0*
minLength);
207 graph.SetChartArea(10, 10, 290, 190);
208 graph.SetChartDisplay(0, -0.1,
maxR, 0.1);
209 graph.DrawGrid(6, 7);
210 std::vector<hugin_utils::FDiff2D>
points;
219 const double rMaxHorzVert = std::max<double>(srcImage.getWidth(), srcImage.getHeight()) / (2.0*
minLength);
237 return graph.GetGraph();
void setHFOV(double h, bool keepView=true)
set the horizontal field of view.
void setProjection(ProjectionFormat f)
set the Projection format and adjust the hfov/vfov if nessecary
void setHeight(unsigned int h)
set panorama height
void setWidth(unsigned int w, bool keepView=true)
set panorama width keep the HFOV, if keepView=true
All variables of a source image.
bool AskUserOverwrite(const wxString &filename, const wxString &caption, wxWindow *parent)
ask user if the given file should be overwritten, return true if the user confirmed the overwritting
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.