|
Hugin trunk 0.1
|
#include <hugin_math.h>
Public Member Functions | |
| TDiff2D () | |
| TDiff2D (T x, T y) | |
| TDiff2D (const vigra::Diff2D &d) | |
| bool | operator== (TDiff2D rhs) const |
| bool | operator!= (TDiff2D rhs) const |
| TDiff2D | operator+ (TDiff2D rhs) const |
| TDiff2D | operator+= (TDiff2D rhs) |
| TDiff2D | operator- (TDiff2D rhs) const |
| TDiff2D & | operator*= (double val) |
| TDiff2D | operator* (double val) const |
| double | operator* (TDiff2D val) const |
| vigra::Diff2D | toDiff2D () const |
| T | squareDistance (TDiff2D< T > other) const |
| Return square of the distance to another point. | |
| T | squareLength () const |
| Return the square of the length of the vector. | |
Public Attributes | |
| double | x |
| double | y |
Definition at line 82 of file hugin_math.h.
|
inline |
Definition at line 84 of file hugin_math.h.
Referenced by hugin_utils::TDiff2D< T >::operator+(), and hugin_utils::TDiff2D< T >::operator-().
|
inline |
Definition at line 87 of file hugin_math.h.
|
inline |
Definition at line 90 of file hugin_math.h.
|
inline |
Definition at line 99 of file hugin_math.h.
References threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 128 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 136 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 121 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 104 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::TDiff2D(), threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 109 of file hugin_math.h.
References threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 116 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::TDiff2D(), threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 94 of file hugin_math.h.
References threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Return square of the distance to another point.
Definition at line 147 of file hugin_math.h.
References threshold().
Referenced by HuginBase::clip_insideCircle(), HuginBase::generateArc(), GetDistance(), PerspectiveImageCtrl::GetNearestLinePoint(), PerspectiveImageCtrl::GetNearestRectanglePoint(), and GreatCircleArc::LineSegment::squareDistance().
|
inline |
Return the square of the length of the vector.
Definition at line 153 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by HuginBase::angle_between(), HuginBase::clip_getIntersectionCircle(), and sortByDistance().
|
inline |
Definition at line 141 of file hugin_math.h.
References hugin_utils::roundi(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by CPEditorPanel::estimateAndAddOtherPoint(), CPEditorPanel::NewPointChange(), vigra_ext::PointFineTune(), HuginBase::AllPointSampler::sampleAllPanoPoints(), and HuginBase::RandomPointSampler::sampleRandomPanoPoints().
| double hugin_utils::TDiff2D< T >::x |
Definition at line 158 of file hugin_math.h.
Referenced by HuginBase::angle_between(), HuginBase::SrcPanoImage::calcFocalLength(), HuginBase::CalculateFOV::calcFOV(), HuginBase::SrcPanoImage::calcHFOV(), PreviewCameraTool::ChangeZoomLevel(), DisplayedControlPoint::CheckSelection(), HuginBase::clip_getIntersection(), HuginBase::clip_getIntersectionCircle(), HuginBase::clip_isSide(), vigra_ext::correlateImage(), vigra_ext::correlateImageFast(), CPEvent::CPEvent(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), GreatCircleArc::LineSegment::doGL(), DisplayedControlPoint::DrawLine(), CPEditorPanel::estimateAndAddOtherPoint(), HuginBase::estimateImageAlpha(), CPEditorPanel::EstimatePoint(), HuginBase::MaskPolygon::FindPointNearPos(), FineTuneInterestPoints(), CPEditorPanel::FineTuneNewPoint(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::CalculateFitPanorama::fitPano(), HuginBase::generateArc(), PerspectiveImageCtrl::GetCP(), HuginBase::Exiv2Helper::getCropFactor(), CPImageCtrl::GetMagBitmap(), PreviewEditCPTool::GetSelectedROI(), DragTool::getTranslationShift(), HuginBase::MaskPolygon::getWindingNumber(), CPImageCtrl::invScale(), MaskImageCtrl::invtransform(), PerspectiveImageCtrl::invtransform(), HuginBase::MaskPolygon::isInside(), HuginBase::SrcPanoImage::isInside(), PerspectiveImageCtrl::IsInsideRect(), DisplayedControlPoint::isOccupiedPos(), loadPoints(), loadPointsC(), CPEditorPanel::LocalFineTunePoint(), DragTool::MouseButtonEvent(), PanosphereOverviewCameraTool::MouseButtonEvent(), DragTool::MouseMoveEvent(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), MainFrame::OnFineTuneAll(), MaskImageCtrl::OnLeftMouseUp(), HFOVDialog::OnLoadLensParameters(), CPImageCtrl::OnPaint(), hugin_utils::TDiff2D< T >::operator!=(), hugin_utils::TDiff2D< T >::operator*(), hugin_utils::TDiff2D< T >::operator*(), hugin_utils::TDiff2D< T >::operator*=(), hugin_utils::TDiff2D< T >::operator+(), hugin_utils::TDiff2D< T >::operator+=(), hugin_utils::TDiff2D< T >::operator-(), hugin_utils::TDiff2D< T >::operator==(), vigra_ext::PointFineTune(), CPEditorPanel::PointFineTune(), PointFineTuneProjectionAware(), vigra_ext::radialVigCorrection(), PreviewDragTool::ReallyAfterDrawImagesEvent(), PreviewEditCPTool::ReallyAfterDrawImagesEvent(), GLPreviewRenderer::Resize(), HuginBase::MaskPolygon::rotate90(), CPImageCtrl::roundP(), HuginBase::AllPointSampler::sampleAllPanoPoints(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), CPImageCtrl::scale(), MaskImageCtrl::SelectPointsInsideMouseRect(), CPImageCtrl::setNewPoint(), CPImageCtrl::showPosition(), HuginBase::SmartOptimise::smartOptimize(), GreatCircleArc::LineSegment::squareDistance(), hugin_utils::TDiff2D< T >::squareLength(), DisplayedControlPoint::StartLineControlPoint(), vigra_ext::subpixelMaxima(), hugin_utils::TDiff2D< T >::toDiff2D(), MaskImageCtrl::transform(), PerspectiveImageCtrl::transform(), vigra_ext::RotateTransform::transformImgCoord(), HuginBase::Nona::SpaceTransform::transformImgCoord(), PreviewCameraTool::UpdateCenter(), DisplayedControlPoint::UpdateControlPoint(), MaskImageCtrl::UpdateCrop(), ImagesTreeCtrl::UpdateGroupText(), and ImagesTreeCtrl::UpdateImageText().
| double hugin_utils::TDiff2D< T >::y |
Definition at line 158 of file hugin_math.h.
Referenced by HuginBase::angle_between(), HuginBase::SrcPanoImage::applyEXIFValues(), HuginBase::CalculateFOV::calcFOV(), DisplayedControlPoint::CheckSelection(), HuginBase::clip_getIntersection(), HuginBase::clip_getIntersectionCircle(), HuginBase::clip_isSide(), vigra_ext::correlateImage(), vigra_ext::correlateImageFast(), CPEvent::CPEvent(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), GreatCircleArc::LineSegment::doGL(), DisplayedControlPoint::DrawLine(), CPEditorPanel::estimateAndAddOtherPoint(), HuginBase::MaskPolygon::FindPointNearPos(), FineTuneInterestPoints(), CPEditorPanel::FineTuneNewPoint(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::CalculateFitPanorama::fitPano(), HuginBase::generateArc(), PerspectiveImageCtrl::GetCP(), CPImageCtrl::GetMagBitmap(), PreviewEditCPTool::GetSelectedROI(), DragTool::getTranslationShift(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::MaskPolygon::getWindingNumber(), CPImageCtrl::invScale(), MaskImageCtrl::invtransform(), PerspectiveImageCtrl::invtransform(), HuginBase::MaskPolygon::isInside(), PerspectiveImageCtrl::IsInsideRect(), DisplayedControlPoint::isOccupiedPos(), loadPoints(), loadPointsC(), CPEditorPanel::LocalFineTunePoint(), DragTool::MouseButtonEvent(), DragTool::MouseMoveEvent(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), MainFrame::OnFineTuneAll(), MaskImageCtrl::OnLeftMouseUp(), CPImageCtrl::OnPaint(), hugin_utils::TDiff2D< T >::operator!=(), hugin_utils::TDiff2D< T >::operator*(), hugin_utils::TDiff2D< T >::operator*(), hugin_utils::TDiff2D< T >::operator*=(), hugin_utils::TDiff2D< T >::operator+(), hugin_utils::TDiff2D< T >::operator+=(), hugin_utils::TDiff2D< T >::operator-(), hugin_utils::TDiff2D< T >::operator==(), vigra_ext::PointFineTune(), CPEditorPanel::PointFineTune(), PointFineTuneProjectionAware(), vigra_ext::radialVigCorrection(), PreviewDragTool::ReallyAfterDrawImagesEvent(), PreviewEditCPTool::ReallyAfterDrawImagesEvent(), GLPreviewRenderer::Resize(), HuginBase::MaskPolygon::rotate90(), CPImageCtrl::roundP(), HuginBase::AllPointSampler::sampleAllPanoPoints(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), CPImageCtrl::scale(), MaskImageCtrl::SelectPointsInsideMouseRect(), CPImageCtrl::setNewPoint(), HuginBase::PanoramaOptions::setVFOV(), CPImageCtrl::showPosition(), GreatCircleArc::LineSegment::squareDistance(), hugin_utils::TDiff2D< T >::squareLength(), DisplayedControlPoint::StartLineControlPoint(), vigra_ext::subpixelMaxima(), hugin_utils::TDiff2D< T >::toDiff2D(), MaskImageCtrl::transform(), PerspectiveImageCtrl::transform(), vigra_ext::RotateTransform::transformImgCoord(), DisplayedControlPoint::UpdateControlPoint(), MaskImageCtrl::UpdateCrop(), ImagesTreeCtrl::UpdateGroupText(), and ImagesTreeCtrl::UpdateImageText().