Hugintrunk
0.1
|
implementation of CPEditorPanel Class More...
#include "hugin_config.h"
#include "panoinc_WX.h"
#include "panoinc.h"
#include "hugin/huginApp.h"
#include "hugin/config_defaults.h"
#include "base_wx/CommandHistory.h"
#include "base_wx/wxImageCache.h"
#include "hugin/CPImageCtrl.h"
#include "hugin/TextKillFocusHandler.h"
#include "hugin/CPEditorPanel.h"
#include "base_wx/wxPanoCommand.h"
#include "base_wx/MyProgressDialog.h"
#include "algorithms/optimizer/PTOptimizer.h"
#include "algorithms/basic/CalculateOptimalScale.h"
#include "base_wx/PTWXDlg.h"
#include "base_wx/wxPlatform.h"
#include <algorithm>
#include <float.h>
#include <vector>
#include "vigra/cornerdetection.hxx"
#include "vigra/localminmax.hxx"
#include "vigra_ext/openmp_vigra.h"
#include "vigra_ext/Correlation.h"
#include "vigra_ext/cms.h"
#include "Celeste.h"
Go to the source code of this file.
Macros | |
#define | SORTASCENDING(functionName, var) |
#define | SORTDESCENDING(functionName, var) |
Functions | |
int wxCALLBACK | SortIndexDescending (wxIntPtr item1, wxIntPtr item2, wxIntPtr WXUNUSED(sortData)) |
int wxCALLBACK | SortIndexAscending (wxIntPtr item1, wxIntPtr item2, wxIntPtr WXUNUSED(sortData)) |
HuginBase::SrcPanoImage | GetImageRotatedTo (const HuginBase::SrcPanoImage &img, const vigra::Diff2D &point, int testWidth, double &neededHFOV) |
vigra_ext::CorrelationResult | PointFineTuneProjectionAware (const HuginBase::SrcPanoImage &templ, const vigra::UInt8RGBImage &templImg, vigra::Diff2D templPos, int templSize, const HuginBase::SrcPanoImage &search, const vigra::UInt8RGBImage &searchImg, vigra::Diff2D searchPos, int sWidth) |
function for fine-tune with remapping to stereographic projection More... | |
implementation of CPEditorPanel Class
$Id$
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this software. If not, see http://www.gnu.org/licenses/.
Definition in file CPEditorPanel.cpp.
#define SORTASCENDING | ( | functionName, | |
var | |||
) |
Definition at line 425 of file CPEditorPanel.cpp.
#define SORTDESCENDING | ( | functionName, | |
var | |||
) |
Definition at line 436 of file CPEditorPanel.cpp.
HuginBase::SrcPanoImage GetImageRotatedTo | ( | const HuginBase::SrcPanoImage & | img, |
const vigra::Diff2D & | point, | ||
int | testWidth, | ||
double & | neededHFOV | ||
) |
Definition at line 1135 of file CPEditorPanel.cpp.
References HuginBase::PTools::Transform::createInvTransform(), DEG_TO_RAD, HuginBase::PanoramaOptions::EQUIRECTANGULAR, Matrix3::GetRotationPT(), RAD_TO_DEG, HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setHFOV(), HuginBase::PanoramaOptions::setProjection(), Matrix3::SetRotationPT(), HuginBase::SrcPanoImage::setSize(), HuginBase::PanoramaOptions::setWidth(), and HuginBase::PTools::Transform::transformImgCoord().
Referenced by PointFineTuneProjectionAware().
vigra_ext::CorrelationResult PointFineTuneProjectionAware | ( | const HuginBase::SrcPanoImage & | templ, |
const vigra::UInt8RGBImage & | templImg, | ||
vigra::Diff2D | templPos, | ||
int | templSize, | ||
const HuginBase::SrcPanoImage & | search, | ||
const vigra::UInt8RGBImage & | searchImg, | ||
vigra::Diff2D | searchPos, | ||
int | sWidth | ||
) |
function for fine-tune with remapping to stereographic projection
Definition at line 1217 of file CPEditorPanel.cpp.
References HuginBase::CalculateOptimalScale::calcOptimalPanoScale(), vigra_ext::CorrelationResult::corrPos, HuginBase::PTools::Transform::createInvTransform(), HuginBase::PTools::Transform::createTransform(), DEG_TO_RAD, vigra_ext::destImage(), vigra_ext::destImageRange(), GetImageRotatedTo(), HuginBase::PanoramaOptions::getSize(), HuginBase::PanoramaOptions::getWidth(), HUGIN_FT_ROTATION_SEARCH, HUGIN_FT_ROTATION_START_ANGLE, HUGIN_FT_ROTATION_STEPS, HUGIN_FT_ROTATION_STOP_ANGLE, vigra_ext::INTERP_CUBIC, celeste::max(), vigra_ext::CorrelationResult::maxpos, celeste::min(), vigra_ext::PointFineTune(), vigra_ext::PointFineTuneRotSearch(), hugin_utils::roundi(), HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setHFOV(), HuginBase::PanoramaOptions::setProjection(), HuginBase::PanoramaOptions::setWidth(), vigra_ext::srcImageRange(), HuginBase::PanoramaOptions::STEREOGRAPHIC, vigra_ext::transformImage(), HuginBase::PTools::Transform::transformImgCoord(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by MainFrame::OnFineTuneAll(), and CPEditorPanel::PointFineTune().
int wxCALLBACK SortIndexAscending | ( | wxIntPtr | item1, |
wxIntPtr | item2, | ||
wxIntPtr | WXUNUSEDsortData | ||
) |
Definition at line 416 of file CPEditorPanel.cpp.
Referenced by CPEditorPanel::SortList().
int wxCALLBACK SortIndexDescending | ( | wxIntPtr | item1, |
wxIntPtr | item2, | ||
wxIntPtr | WXUNUSEDsortData | ||
) |
Definition at line 407 of file CPEditorPanel.cpp.
Referenced by CPEditorPanel::SortList().