Skip to content
Snippets Groups Projects
Commit 0eac0402 authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

ENH: changed SetInput method name to PushBackInput

parent 79c2a72b
Branches
Tags
No related merge requests found
......@@ -74,10 +74,8 @@ public:
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator RandomGeneratorType;
typedef itk::Statistics::EuclideanDistance<PointType> EuclideanDistanceType;
/** Connects the vector data from which the localizations are going to be extracted.
* This is the only input vector data, both the positive and
* negative sample localizations come from it */
void SetInput(const VectorDataType *);
/** Connects the VectorDatas from which the localizations are going to be extracted. */
void PushBackInput(const VectorDataType *);
const VectorDataType * GetInput(unsigned int idx) const;
virtual void Update();
......
......@@ -58,7 +58,7 @@ LabeledSampleLocalizationGenerator<TVectorData>
template <class TVectorData>
void
LabeledSampleLocalizationGenerator<TVectorData>
::SetInput(const VectorDataType * vectorData)
::PushBackInput(const VectorDataType * vectorData)
{
this->Superclass::SetNthInput(this->GetNumberOfInputs(), const_cast<VectorDataType *>(vectorData));
}
......@@ -287,13 +287,6 @@ LabeledSampleLocalizationGenerator<TVectorData>
}
}
//m_RandomGenerator->SetSeed(1234); // dans le polygonhandler
// 1- transmit the points
// 2- generate random negative points from polygons regarding to
// declared points...
} // end namespace otb
#endif
......@@ -60,8 +60,8 @@ int otbLabeledSampleLocalizationGenerator(int argc, char* argv[])
reader2->SetFileName(inputVD2);
reader2->Update();
generator->SetInput(reader1->GetOutput());
generator->SetInput(reader2->GetOutput());
generator->PushBackInput(reader1->GetOutput());
generator->PushBackInput(reader2->GetOutput());
generator->SetPseudoRandom(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment