#include <PanoToolsInterface.h>
Public Member Functions | |
| Transform () | |
| construct a new Transform object, without initializing a transformation | |
| ~Transform () | |
| void | createTransform (const vigra::Diff2D &srcSize, VariableMap srcVars, Lens::LensProjectionFormat srcProj, const vigra::Diff2D &destSize, PanoramaOptions::ProjectionFormat destProj, const std::vector< double > &destProjParam, double destHFOV, const vigra::Diff2D &origSrcSize) |
| initialize pano->image transformation | |
| void | createTransform (const PanoramaData &pano, unsigned int imgNr, const PanoramaOptions &dest, vigra::Diff2D srcSize=vigra::Diff2D(0, 0)) |
| create pano -> img transform | |
| void | createTransform (const SrcPanoImage &src, const PanoramaOptions &dest) |
| void | createInvTransform (const vigra::Diff2D &srcSize, VariableMap srcVars, Lens::LensProjectionFormat srcProj, const vigra::Diff2D &destSize, PanoramaOptions::ProjectionFormat destProj, const std::vector< double > &destProjParam, double destHFOV, const vigra::Diff2D &origSrcSize) |
| create image->pano transformation | |
| void | createInvTransform (const PanoramaData &pano, unsigned int imgNr, const PanoramaOptions &dest, vigra::Diff2D srcSize=vigra::Diff2D(0, 0)) |
| create image->pano transformation | |
| void | createInvTransform (const SrcPanoImage &src, const PanoramaOptions &dest) |
| create image->pano transformation | |
| bool | transform (double &x_dest, double &y_dest, double x_src, double y_src) const |
| excecute transform | |
| bool | transform (hugin_utils::FDiff2D &dest, const hugin_utils::FDiff2D &src) const |
| bool | transformImgCoord (double &x_dest, double &y_dest, double x_src, double y_src) const |
| like transform, but return image coordinates, not cartesian coordinates | |
| bool | transformImgCoordPartial (double &x_dest, double &y_dest, double x_src, double y_src) const |
| bool | transformImgCoord (hugin_utils::FDiff2D &dest, const hugin_utils::FDiff2D &src) const |
| bool | emitGLSL (std::ostringstream &oss) const |
Private Member Functions | |
| Transform (const Transform &) | |
| Transform & | operator= (const Transform &) |
| void | updatePTData (const vigra::Diff2D &srcSize, const VariableMap &srcVars, Lens::LensProjectionFormat &srcProj, const vigra::Diff2D &destSize, PanoramaOptions::ProjectionFormat &destProj, const std::vector< double > &destProjParam, double destHFOV) |
Private Attributes | |
| bool | m_initialized |
| Image | m_srcImage |
| Image | m_dstImage |
| MakeParams | m_mp |
| fDesc | m_stack [15] |
| double | m_srcTX |
| double | m_srcTY |
| double | m_destTX |
| double | m_destTY |
Definition at line 105 of file PanoToolsInterface.h.
|
|
construct a new Transform object, without initializing a transformation use createTransform or createInvTransform to create a transformation, and transform to execute it. Definition at line 115 of file PanoToolsInterface.h. |
|
|
Definition at line 42 of file PanoToolsInterface.cpp. References HuginBase::PTools::freeImage(), m_dstImage, and m_srcImage. |
|
|
|
|
||||||||||||
|
create image->pano transformation
Definition at line 88 of file PanoToolsInterface.cpp. References createInvTransform(), HuginBase::PanoramaOptions::getHFOV(), HuginBase::PanoramaOptions::getProjection(), HuginBase::PanoramaOptions::getProjectionParameters(), HuginBase::PanoramaOptions::getSize(), and HuginBase::VariableMap. |
|
||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
create image->pano transformation
variables are only valid for the original input size. To transform a smaller image, like a preview image, the parameters have to be adjusted. The origial image size, for which variables are valid needs to be know for this.
Definition at line 206 of file PanoToolsInterface.cpp. References m_destTX, m_destTY, m_dstImage, m_mp, m_srcImage, m_srcTX, m_srcTY, m_stack, map_get(), and updatePTData(). Referenced by HuginBase::PTOptEstimator::agree(), createInvTransform(), LensCalImageCtrl::DrawView(), HuginBase::CalculateFitPanorama::fitPano(), GreatCircleArc::GreatCircleArc(), main(), PreviewControlPointTool::MakeTransforms(), OutputProjectionInfo::OutputProjectionInfo(), HuginBase::PanoramaOptions::setVFOV(), VertexCoordRemapper::UpdateAndResetIndex(), LayoutRemapper::UpdateAndResetIndex(), PreviewLayoutLinesTool::updateImageCentres(), and work_on_triplets(). |
|
||||||||||||
|
||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
|
|
|
|
||||||||||||
|
Definition at line 246 of file PanoToolsInterface.cpp. References hugin_utils::FDiff2D, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y. |
|
||||||||||||||||||||
|
excecute transform
Definition at line 238 of file PanoToolsInterface.cpp. Referenced by HuginBase::CalculateOptimalScale::calcOptimalPanoScale(), HuginBase::CalculateFitPanorama::fitPano(), HuginBase::PanoramaOptions::getVFOV(), and HuginBase::PanoramaOptions::setVFOV(). |
|
||||||||||||
|
Definition at line 219 of file PanoToolsInterface.h. References hugin_utils::FDiff2D, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y. |
|
||||||||||||||||||||
|
||||||||||||||||||||
|
Definition at line 519 of file PanoToolsTransformGPU.cpp. |
|
||||||||||||||||||||||||||||||||
|
Definition at line 50 of file PanoToolsInterface.cpp. References HuginBase::PTools::freeImage(), m_dstImage, m_srcImage, HuginBase::PTools::setDestImage(), and HuginBase::PTools::setFullImage(). Referenced by createInvTransform(), and createTransform(). |
|
|
Definition at line 246 of file PanoToolsInterface.h. Referenced by createInvTransform(), createTransform(), emitGLSL(), transformImgCoord(), and transformImgCoordPartial(). |
|
|
Definition at line 246 of file PanoToolsInterface.h. Referenced by createInvTransform(), createTransform(), emitGLSL(), transformImgCoord(), and transformImgCoordPartial(). |
|
|
Definition at line 240 of file PanoToolsInterface.h. Referenced by createInvTransform(), createTransform(), updatePTData(), and ~Transform(). |
|
|
Definition at line 237 of file PanoToolsInterface.h. |
|
|
Definition at line 241 of file PanoToolsInterface.h. Referenced by createInvTransform(), and createTransform(). |
|
|
Definition at line 239 of file PanoToolsInterface.h. Referenced by createInvTransform(), createTransform(), updatePTData(), and ~Transform(). |
|
|
Definition at line 245 of file PanoToolsInterface.h. Referenced by createInvTransform(), createTransform(), emitGLSL(), transformImgCoord(), and transformImgCoordPartial(). |
|
|
Definition at line 245 of file PanoToolsInterface.h. Referenced by createInvTransform(), createTransform(), emitGLSL(), transformImgCoord(), and transformImgCoordPartial(). |
|
|
Definition at line 242 of file PanoToolsInterface.h. Referenced by createInvTransform(), and createTransform(). |
1.3.9.1