28#include "hugin_config.h"
44 wxXmlResource::Get()->LoadDialog(
this,
parent,
"dlg_focallength");
71 message.Printf(
_(
"No or only partial information about field of view was found in image file\n%s\n\nPlease enter the horizontal field of view (HFOV) or the focal length and crop factor."),
fn.c_str());
105 this->
GetSizer()->SetSizeHints(
this);
267 bool autoCenterCrop=
false;
290 m_srcImg.setRadialDistortionCenterShift(
t);
306 std::vector<float>
resp(5);
368 wxString::Format(
_(
"You have given a field of view of %.2f degrees.\n But the orthographic projection is limited to a field of view of 180 degress.\nDo you want still use that high value?"),
m_HFOV),
HuginBase::SrcPanoImage m_srcImg
void OnTypeChanged(wxCommandEvent &e)
wxTextCtrl * m_focalLengthText
HuginBase::SrcPanoImage GetSrcImage()
void OnFocalLengthChanged(wxCommandEvent &e)
HFOVDialog(wxWindow *parent, HuginBase::SrcPanoImage &srcImg)
ctor.
void OnLoadLensParameters(wxCommandEvent &e)
void OnHFOVChanged(wxCommandEvent &e)
void OnOk(wxCommandEvent &e)
void OnCropFactorChanged(wxCommandEvent &e)
wxString m_focalLengthStr
double getHFOV() const
get HFOV in degrees
void setImageSize(const vigra::Size2D &sz)
set image size in pixels
double getCropFactor() const
get crop factor, d35mm/dreal
LensProjectionFormat getProjection() const
get projection type
All variables of a source image.
static double calcFocalLength(SrcPanoImage::Projection proj, double hfov, double crop, vigra::Size2D imageSize)
calcualte focal length, given crop factor and hfov
bool isCircularCrop() const
returns true, if projection requires cicular crop
void setCropMode(CropMode val)
Set the crop mode.
static double calcHFOV(SrcPanoImage::Projection proj, double fl, double crop, vigra::Size2D imageSize)
calculate hfov of an image given focal length, image size and crop factor
#define DEBUG_ASSERT(cond)
bool str2double(const wxString &s, double &d)
wxString doubleTowxString(double d, int digits)
int HuginMessageBox(const wxString &message, const wxString &caption, int style, wxWindow *parent)
include file for the hugin project
include file for the hugin project
const Map::mapped_type & const_map_get(const Map &m, const typename Map::key_type &key)
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.