Hugin trunk 0.1
Loading...
Searching...
No Matches
LensTools.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
10/*
11 * This is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
15 *
16 * This software is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public
22 * License along with this software. If not, see
23 * <http://www.gnu.org/licenses/>.
24 *
25 */
26
27#ifndef LENSTOOLS_H
28#define LENSTOOLS_H
29
30#include <hugin_shared.h>
31#include "panoinc_WX.h"
32#include "panoinc.h"
33#include "base_wx/Command.h"
34
38
40{
48 typedef std::vector<LensInfo> LensInfoVector;
49};
50
56
61
66
68WXIMPEX void SaveLensParameters(const wxString filename, HuginBase::Panorama* pano, unsigned int imgNr);
71
89 bool & cropped, bool & autoCenterCrop, vigra::Rect2D & cropRect);
90
97
98namespace FormatString
99{
110};
111
112#endif // LENSTOOLS_H
WXIMPEX size_t GetSelectedValue(wxControlWithItems *list)
Returns the client value of the selected item from list.
WXIMPEX bool LoadLensParametersChoose(wxWindow *parent, HuginBase::Lens &lens, bool &cropped, bool &autoCenterCrop, vigra::Rect2D &cropRect)
load lens parameters from lens ini file
WXIMPEX void SaveLensParametersToIni(wxWindow *parent, HuginBase::Panorama *pano, const HuginBase::UIntSet images)
saves the lens parameters to ini files, provides all necessary dialogs
WXIMPEX wxString getProjectionString(const HuginBase::SrcPanoImage &img)
Returns translated projection for given image.
WXIMPEX HuginLensTools::LensInfoVector GetLensProjectionList()
return a vector with all available projections
Definition LensTools.cpp:46
WXIMPEX void SelectListValue(wxControlWithItems *list, size_t newValue)
Selects the given value (stored in the client data) in the given list item.
Definition LensTools.cpp:90
WXIMPEX void FillLensProjectionList(wxControlWithItems *list)
Fills a wxControlWithItem with all input projection formats, the client data contains the associated ...
Definition LensTools.cpp:36
WXIMPEX void SaveLensParameters(const wxString filename, HuginBase::Panorama *pano, unsigned int imgNr)
save the lens parameters of the image to a lens file named filename
WXIMPEX wxString getResponseString(const HuginBase::SrcPanoImage &img)
Returns translated response type for given SrcPanoImage.
WXIMPEX bool ApplyLensParameters(wxWindow *parent, HuginBase::Panorama *pano, HuginBase::UIntSet images, PanoCommand::PanoCommand *&command)
applies lens parameter from user selected file to pano using GlobalCmdHist
WXIMPEX bool CheckLensStacks(HuginBase::Panorama *pano, bool allowCancel)
check, if lens and stacks are correctly linked shows message box with short information if not
WXIMPEX void FillBlenderList(wxControlWithItems *list)
Fills a wxControlWithItem with all possible blender options, the client data contains the associated ...
Definition LensTools.cpp:82
Model for a panorama.
Definition Panorama.h:153
All variables of a source image.
Base class for all panorama commands.
Definition Command.h:39
#define WXIMPEX
wxString GetIso(const HuginBase::SrcPanoImage *img)
returns formatted iso value
wxString GetFocalLength(const HuginBase::SrcPanoImage *img)
return focallength and focallength 35 mm as wxString
wxString GetExifDateTime(const HuginBase::SrcPanoImage *img)
returns Exif DateTimeOriginal as formatted wxString
wxString GetExposureTime(const HuginBase::SrcPanoImage *img)
returns formatted exposure time
wxString GetAperture(const HuginBase::SrcPanoImage *img)
returns formatted aperture value
std::set< unsigned int > UIntSet
std::vector< LensInfo > LensInfoVector
vector of LensInfo to hold all available lens types
Definition LensTools.h:48
include file for the hugin project
include file for the hugin project
structure to name of lens projections and their ids
Definition LensTools.h:43
HuginBase::BaseSrcPanoImage::Projection id
Definition LensTools.h:45
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.
Definition threshold.h:41