Hugintrunk
0.1
|
represents a control point More...
#include <ControlPoint.h>
Public Types | |
enum | OptimizeMode { X_Y = 0, X, Y } |
minimize x,y or both. More... | |
Public Member Functions | |
ControlPoint () | |
ControlPoint (unsigned int img1, double sX, double sY, unsigned int img2, double dX, double dY, int mode=X_Y) | |
bool | operator== (const ControlPoint &o) const |
const std::string | getCPString () const |
returns string which contains all features of a control point used for detecting duplicate control points in the string the image numbers are sorted ascending to cover also mirrored control points More... | |
void | mirror () |
swap (image1Nr,x1,y1) with (image2Nr,x2,y2) More... | |
Public Attributes | |
unsigned int | image1Nr |
unsigned int | image2Nr |
double | x1 |
double | y1 |
double | x2 |
double | y2 |
double | error |
int | mode |
represents a control point
Definition at line 38 of file ControlPoint.h.
minimize x,y or both.
higher numbers mean multiple line control points
Enumerator | |
---|---|
X_Y |
evaluate x,y |
X |
evaluate x, points are on a vertical line |
Y |
evaluate y, points are on a horizontal line |
Definition at line 45 of file ControlPoint.h.
|
inline |
Definition at line 54 of file ControlPoint.h.
|
inline |
Definition at line 62 of file ControlPoint.h.
const std::string HuginBase::ControlPoint::getCPString | ( | ) | const |
returns string which contains all features of a control point used for detecting duplicate control points in the string the image numbers are sorted ascending to cover also mirrored control points
Definition at line 51 of file ControlPoint.cpp.
References image1Nr, image2Nr, mode, x1, x2, y1, and y2.
Referenced by PanoDetector::FilterMatchesInPair().
void HuginBase::ControlPoint::mirror | ( | ) |
swap (image1Nr,x1,y1) with (image2Nr,x2,y2)
Definition at line 42 of file ControlPoint.cpp.
References image1Nr, image2Nr, x1, x2, y1, and y2.
Referenced by HuginBase::Panorama::getCtrlPointsVectorForImage(), PanoCommand::AddCtrlPointCmd::processPanorama(), and CPEditorPanel::UpdateDisplay().
bool HuginBase::ControlPoint::operator== | ( | const ControlPoint & | o | ) | const |
double HuginBase::ControlPoint::error |
Definition at line 94 of file ControlPoint.h.
Referenced by HuginLines::_getVerticalLines(), PreviewControlPointTool::AfterDrawImagesEvent(), CPImagesComboBox::CalcCPDistance(), createCtrlPoints(), HuginBase::PTools::GetAlignInfoCtrlPoints(), CPListCtrl::OnGetItemText(), operator==(), optGetError(), HuginLines::SortByError(), CPEditorPanel::UpdateDisplay(), PreviewLayoutLinesTool::updateLineInformation(), and PanoCommand::UpdateSingleCtrlPointError().
unsigned int HuginBase::ControlPoint::image1Nr |
Definition at line 90 of file ControlPoint.h.
Referenced by HuginLines::_getVerticalLines(), HuginBase::Panorama::addCtrlPoint(), PreviewEditCPTool::AddLineCP(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), CPImagesComboBox::CalcCPDistance(), HuginBase::Panorama::changeControlPoint(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::DisplayedControlPoint(), CPEditorPanel::EstimatePoint(), HuginBase::getCPinMasks(), getCPString(), HuginBase::Panorama::getCtrlPointsVectorForImage(), HuginBase::Panorama::getUnlinkedSubset(), mirror(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), CPListCtrl::OnGetItemText(), operator==(), optGetError(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), PanoCommand::AddCtrlPointCmd::processPanorama(), HuginBase::Panorama::removeDuplicateCtrlPoints(), CPEditorPanel::ShowControlPoint(), DisplayedControlPoint::StartLineControlPoint(), CPEditorPanel::UpdateDisplay(), CPListCtrl::UpdateInternalCPList(), PreviewLayoutLinesTool::updateLineInformation(), and PanoCommand::UpdateSingleCtrlPointError().
unsigned int HuginBase::ControlPoint::image2Nr |
Definition at line 91 of file ControlPoint.h.
Referenced by HuginLines::_getVerticalLines(), HuginBase::Panorama::addCtrlPoint(), PreviewEditCPTool::AddLineCP(), PreviewControlPointTool::AfterDrawImagesEvent(), CPImagesComboBox::CalcCPDistance(), HuginBase::Panorama::changeControlPoint(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::DisplayedControlPoint(), CPEditorPanel::EstimatePoint(), HuginBase::getCPinMasks(), getCPString(), HuginBase::Panorama::getCtrlPointsVectorForImage(), HuginBase::Panorama::getUnlinkedSubset(), mirror(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), CPListCtrl::OnGetItemText(), operator==(), optGetError(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), PanoCommand::AddCtrlPointCmd::processPanorama(), HuginBase::Panorama::removeDuplicateCtrlPoints(), CPEditorPanel::ShowControlPoint(), DisplayedControlPoint::StartLineControlPoint(), CPEditorPanel::UpdateDisplay(), CPListCtrl::UpdateInternalCPList(), PreviewLayoutLinesTool::updateLineInformation(), and PanoCommand::UpdateSingleCtrlPointError().
int HuginBase::ControlPoint::mode |
Definition at line 95 of file ControlPoint.h.
Referenced by HuginLines::_getVerticalLines(), PreviewEditCPTool::AddLineCP(), PreviewControlPointTool::AfterDrawImagesEvent(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::DisplayedControlPoint(), DisplayedControlPoint::Draw(), CPEditorPanel::EstimatePoint(), HuginBase::getCPinMasks(), getCPString(), PanoOperation::CleanControlPointsOperation::GetInternalCommand(), CPEditorPanel::OnCPEvent(), CPListCtrl::OnGetItemText(), operator==(), HuginBase::PTOptEstimator::PTOptEstimator(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::StartLineControlPoint(), and CPEditorPanel::UpdateDisplay().
double HuginBase::ControlPoint::x1 |
Definition at line 92 of file ControlPoint.h.
Referenced by HuginLines::_getVerticalLines(), PreviewEditCPTool::AddLineCP(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), celeste::getCelesteControlPoints(), HuginBase::getCPinMasks(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), operator==(), optGetError(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::ShiftControlPoint(), DisplayedControlPoint::StartLineControlPoint(), DisplayedControlPoint::UpdateControlPoint(), DisplayedControlPoint::UpdateControlPointX(), and CPEditorPanel::UpdateDisplay().
double HuginBase::ControlPoint::x2 |
Definition at line 93 of file ControlPoint.h.
Referenced by HuginLines::_getVerticalLines(), PreviewEditCPTool::AddLineCP(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), DisplayedControlPoint::CheckSelection(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), HuginBase::getCPinMasks(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), operator==(), optGetError(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::ShiftControlPoint(), DisplayedControlPoint::StartLineControlPoint(), DisplayedControlPoint::UpdateControlPoint(), DisplayedControlPoint::UpdateControlPointX(), and CPEditorPanel::UpdateDisplay().
double HuginBase::ControlPoint::y1 |
Definition at line 92 of file ControlPoint.h.
Referenced by HuginLines::_getVerticalLines(), PreviewEditCPTool::AddLineCP(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), celeste::getCelesteControlPoints(), HuginBase::getCPinMasks(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), operator==(), optGetError(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::ShiftControlPoint(), DisplayedControlPoint::StartLineControlPoint(), DisplayedControlPoint::UpdateControlPoint(), DisplayedControlPoint::UpdateControlPointY(), and CPEditorPanel::UpdateDisplay().
double HuginBase::ControlPoint::y2 |
Definition at line 93 of file ControlPoint.h.
Referenced by HuginLines::_getVerticalLines(), PreviewEditCPTool::AddLineCP(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), DisplayedControlPoint::CheckSelection(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), HuginBase::getCPinMasks(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), operator==(), optGetError(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::ShiftControlPoint(), DisplayedControlPoint::StartLineControlPoint(), DisplayedControlPoint::UpdateControlPoint(), DisplayedControlPoint::UpdateControlPointY(), and CPEditorPanel::UpdateDisplay().