OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Class for representing a single tiepoint on two or more images. More...
#include <TiePoint.h>
Public Types | |
enum | Type { UNASSIGNED, MANUAL, AUTO, GCP } |
Public Member Functions | |
TiePoint () | |
TiePoint (const TiePoint ©) | |
TiePoint (const Json::Value &tp_json_node) | |
Creates new tiepoint from JSON object formatted as: { "id": <unsigned int>="">, // may be ignored if not valid "type": "M"|"A"|"G" For “manual”, “auto”, or “GCP-associated” "imagePoints: [ { "imageId": <string>, "x": <double>, "y": <double>, "covariance": [ cxx, cyy, cxy ], "gcpId": <string> Only if associated with a GCP } ] }. More... | |
virtual | ~TiePoint () |
unsigned int | getImageCount () const |
const std::string & | getTiePointId () const |
void | setTiePointId (const std::string &id) |
void | getImagePoint (unsigned int index, std::string &imageId, ossimDpt &imagePoint, NEWMAT::SymmetricMatrix &cov) const |
Fetches the image point coordinates along with image ID and GCP ID if available. More... | |
void | setImagePoint (std::shared_ptr< Image > image, const ossimDpt &imagePoint, const NEWMAT::SymmetricMatrix &cov) |
Sets image point value and associated measurement covariance for specified image ID. More... | |
Type | getType () const |
void | setType (Type t) |
const std::string & | getGcpId () const |
void | setGcpId (const std::string &id) |
virtual void | loadJSON (const Json::Value &json) |
virtual void | saveJSON (Json::Value &json) const |
virtual std::ostream & | print (std::ostream &out) const |
![]() | |
JsonInterface () | |
virtual | ~JsonInterface () |
Protected Attributes | |
Type | m_type |
std::string | m_tiePointId |
std::vector< std::shared_ptr< Image > > | m_images |
std::vector< ossimDpt > | m_imagePoints |
std::vector< NEWMAT::SymmetricMatrix > | m_covariances |
double | m_gsd |
std::string | m_gcpId |
Static Protected Attributes | |
static int | s_runningId = 1 |
Friends | |
std::ostream & | operator<< (std::ostream &out, const TiePoint &tp) |
Class for representing a single tiepoint on two or more images.
It also represents image-points associated with a ground control point.
Definition at line 28 of file TiePoint.h.
Enumerator | |
---|---|
UNASSIGNED | |
MANUAL | |
AUTO | |
GCP |
Definition at line 32 of file TiePoint.h.
ossim::TiePoint::TiePoint | ( | ) |
Definition at line 18 of file TiePoint.cpp.
ossim::TiePoint::TiePoint | ( | const TiePoint & | copy | ) |
Definition at line 25 of file TiePoint.cpp.
References m_covariances, m_imagePoints, and m_images.
ossim::TiePoint::TiePoint | ( | const Json::Value & | tp_json_node | ) |
Creates new tiepoint from JSON object formatted as: { "id": <unsigned int>="">, // may be ignored if not valid "type": "M"|"A"|"G" For “manual”, “auto”, or “GCP-associated” "imagePoints: [ { "imageId": <string>, "x": <double>, "y": <double>, "covariance": [ cxx, cyy, cxy ], "gcpId": <string> Only if associated with a GCP } ] }.
Definition at line 40 of file TiePoint.cpp.
References loadJSON().
|
virtual |
Definition at line 47 of file TiePoint.cpp.
References m_covariances, m_imagePoints, and m_images.
|
inline |
|
inline |
void ossim::TiePoint::getImagePoint | ( | unsigned int | index, |
std::string & | imageId, | ||
ossimDpt & | imagePoint, | ||
NEWMAT::SymmetricMatrix & | cov | ||
) | const |
Fetches the image point coordinates along with image ID and GCP ID if available.
index | Inout index into the list of images containing this tiepoint |
imageId | Output image ID for the ccorresponding image point |
imagePoint | image coordinates |
cov | image point measurement covariance in (x, y) coordinates |
Definition at line 70 of file TiePoint.cpp.
References m_covariances, m_imagePoints, m_images, and ossimDpt::makeNan().
|
inline |
|
inline |
|
virtual |
Implements ossim::JsonInterface.
Definition at line 126 of file TiePoint.cpp.
References AUTO, GCP, m_covariances, m_gcpId, m_imagePoints, m_images, m_type, MANUAL, and setTiePointId().
Referenced by TiePoint().
|
virtual |
Reimplemented in ATP::AutoTiePoint.
Definition at line 239 of file TiePoint.cpp.
References saveJSON().
|
virtual |
Implements ossim::JsonInterface.
Reimplemented in ATP::AutoTiePoint.
Definition at line 195 of file TiePoint.cpp.
References AUTO, GCP, m_covariances, m_imagePoints, m_images, m_tiePointId, m_type, and MANUAL.
Referenced by print().
void ossim::TiePoint::setGcpId | ( | const std::string & | id | ) |
Definition at line 120 of file TiePoint.cpp.
References GCP, m_gcpId, and m_type.
void ossim::TiePoint::setImagePoint | ( | std::shared_ptr< Image > | image, |
const ossimDpt & | imagePoint, | ||
const NEWMAT::SymmetricMatrix & | cov | ||
) |
Sets image point value and associated measurement covariance for specified image ID.
If the image ID is not found, it will be added as new observation.
Definition at line 88 of file TiePoint.cpp.
References m_covariances, m_imagePoints, and m_images.
void ossim::TiePoint::setTiePointId | ( | const std::string & | id | ) |
Definition at line 54 of file TiePoint.cpp.
References m_tiePointId, and s_runningId.
Referenced by loadJSON().
|
inline |
|
friend |
Definition at line 108 of file TiePoint.h.
|
protected |
Definition at line 117 of file TiePoint.h.
Referenced by getImagePoint(), loadJSON(), saveJSON(), setImagePoint(), TiePoint(), and ~TiePoint().
|
protected |
Definition at line 119 of file TiePoint.h.
Referenced by getGcpId(), loadJSON(), and setGcpId().
|
protected |
Definition at line 118 of file TiePoint.h.
|
protected |
Definition at line 116 of file TiePoint.h.
Referenced by ATP::AutoTiePoint::addImageMatch(), ATP::AutoTiePoint::getCmpImagePoint(), getImagePoint(), ATP::AutoTiePoint::getRefImagePoint(), loadJSON(), ATP::AutoTiePoint::print(), ATP::AutoTiePoint::recomputeResidual(), saveJSON(), setImagePoint(), ATP::AutoTiePoint::setRefImagePt(), ATP::AutoTiePoint::setRefViewPt(), TiePoint(), and ~TiePoint().
|
protected |
Definition at line 115 of file TiePoint.h.
Referenced by getImageCount(), getImagePoint(), loadJSON(), saveJSON(), setImagePoint(), TiePoint(), and ~TiePoint().
|
protected |
Definition at line 114 of file TiePoint.h.
Referenced by getTiePointId(), ATP::AutoTiePoint::print(), saveJSON(), and setTiePointId().
|
protected |
Definition at line 113 of file TiePoint.h.
Referenced by getType(), loadJSON(), saveJSON(), setGcpId(), and setType().
|
staticprotected |
Definition at line 120 of file TiePoint.h.
Referenced by setTiePointId().