Commit 2dd4e113 authored by Etienne Bougoin's avatar Etienne Bougoin
Browse files

ENH : Add remove point method to GCPsToRPCSensorModelImageFilter

parent 0be44a94
......@@ -135,6 +135,9 @@ public:
* ground points.*/
void AddGCP(const Point2DType& sensorPoint, const Point2DType & groundPoint);
/** Remove a GCP given by it's coordinates */
void RemoveGCP(unsigned int id);
/** Clear all GCPs */
void ClearGCPs();
......
......@@ -116,6 +116,19 @@ GCPsToRPCSensorModelImageFilter< TImage >
this->AddGCP(sensorPoint,groundPointWithElevation);
}
template< class TImage >
void
GCPsToRPCSensorModelImageFilter< TImage >
::RemoveGCP(unsigned int id)
{
if (id < m_GCPsContainer.size())
{
m_GCPsContainer.erase(m_GCPsContainer.begin() + id);
}
this->Modified();
}
template < class TImage >
void
GCPsToRPCSensorModelImageFilter< TImage >
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment