From 1b9af2a2cb3aceeabe4da34eba007ef385753584 Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Sat, 5 Mar 2011 22:05:02 -0800 Subject: [PATCH] COMP: missing this --- Code/BasicFilters/otbFlexibleDistanceWithMissingValue.txx | 6 +++--- ...otbBinaryFunctorNeighborhoodJoinHistogramImageFilter.txx | 4 ++-- Code/Common/otbBinaryFunctorNeighborhoodImageFilter.txx | 4 ++-- .../otbBinaryFunctorNeighborhoodVectorImageFilter.txx | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Code/BasicFilters/otbFlexibleDistanceWithMissingValue.txx b/Code/BasicFilters/otbFlexibleDistanceWithMissingValue.txx index 6b00ae7838..2987ec4c13 100644 --- a/Code/BasicFilters/otbFlexibleDistanceWithMissingValue.txx +++ b/Code/BasicFilters/otbFlexibleDistanceWithMissingValue.txx @@ -46,7 +46,7 @@ FlexibleDistanceWithMissingValue<TVector> for (unsigned int i = 0; i < x1.Size(); i++) { - if (!IsMissingValue(x1[i]) && !IsMissingValue(x2[i])) + if (!this->IsMissingValue(x1[i]) && !this->IsMissingValue(x2[i])) { temp = vcl_pow(vcl_abs(vcl_pow(x1[i], this->Alpha) - vcl_pow(x2[i], this->Alpha)), this->Beta); distance += temp; @@ -78,7 +78,7 @@ FlexibleDistanceWithMissingValue<TVector> for (unsigned int i = 0; i < measurementVectorSize; i++) { - if (!IsMissingValue(this->GetOrigin()[i]) && !IsMissingValue(x[i])) + if (!this->IsMissingValue(this->GetOrigin()[i]) && !this->IsMissingValue(x[i])) { temp = vcl_pow(vcl_abs(vcl_pow(this->GetOrigin()[i], this->Alpha) - vcl_pow(x[i], this->Alpha)), this->Beta); distance += temp; @@ -96,7 +96,7 @@ FlexibleDistanceWithMissingValue<TVector> if (IsEuclidean()) return Superclass::Evaluate(a, b); // FIXME throw NaN exception instaed of returning 0. ?? - if (IsMissingValue(a) || IsMissingValue(b)) return 0.0; + if (this->IsMissingValue(a) || this->IsMissingValue(b)) return 0.0; double temp = vcl_pow(vcl_abs(vcl_pow(a, this->Alpha) - vcl_pow(b, this->Alpha)), this->Beta); return temp; diff --git a/Code/ChangeDetection/otbBinaryFunctorNeighborhoodJoinHistogramImageFilter.txx b/Code/ChangeDetection/otbBinaryFunctorNeighborhoodJoinHistogramImageFilter.txx index fe653dcef6..79579fcc6a 100644 --- a/Code/ChangeDetection/otbBinaryFunctorNeighborhoodJoinHistogramImageFilter.txx +++ b/Code/ChangeDetection/otbBinaryFunctorNeighborhoodJoinHistogramImageFilter.txx @@ -52,7 +52,7 @@ BinaryFunctorNeighborhoodJoinHistogramImageFilter<TInputImage1, TInputImage2, TO ::SetInput1(const TInputImage1 * image1) { // Process object is not const-correct so the const casting is required. - SetNthInput(0, const_cast<TInputImage1 *>(image1)); + this->SetNthInput(0, const_cast<TInputImage1 *>(image1)); } /** @@ -65,7 +65,7 @@ BinaryFunctorNeighborhoodJoinHistogramImageFilter<TInputImage1, TInputImage2, TO ::SetInput2(const TInputImage2 * image2) { // Process object is not const-correct so the const casting is required. - SetNthInput(1, const_cast<TInputImage2 *>(image2)); + this->SetNthInput(1, const_cast<TInputImage2 *>(image2)); } template <class TInputImage1, class TInputImage2, diff --git a/Code/Common/otbBinaryFunctorNeighborhoodImageFilter.txx b/Code/Common/otbBinaryFunctorNeighborhoodImageFilter.txx index 82a4d2b13d..6d2280e19a 100644 --- a/Code/Common/otbBinaryFunctorNeighborhoodImageFilter.txx +++ b/Code/Common/otbBinaryFunctorNeighborhoodImageFilter.txx @@ -49,7 +49,7 @@ BinaryFunctorNeighborhoodImageFilter<TInputImage1, TInputImage2, TOutputImage, T ::SetInput1(const TInputImage1 * image1) { // Process object is not const-correct so the const casting is required. - SetNthInput(0, const_cast<TInputImage1 *>(image1)); + this->SetNthInput(0, const_cast<TInputImage1 *>(image1)); } /** @@ -62,7 +62,7 @@ BinaryFunctorNeighborhoodImageFilter<TInputImage1, TInputImage2, TOutputImage, T ::SetInput2(const TInputImage2 * image2) { // Process object is not const-correct so the const casting is required. - SetNthInput(1, const_cast<TInputImage2 *>(image2)); + this->SetNthInput(1, const_cast<TInputImage2 *>(image2)); } template <class TInputImage1, class TInputImage2, diff --git a/Code/Common/otbBinaryFunctorNeighborhoodVectorImageFilter.txx b/Code/Common/otbBinaryFunctorNeighborhoodVectorImageFilter.txx index 06219812e5..41d12decef 100644 --- a/Code/Common/otbBinaryFunctorNeighborhoodVectorImageFilter.txx +++ b/Code/Common/otbBinaryFunctorNeighborhoodVectorImageFilter.txx @@ -50,7 +50,7 @@ BinaryFunctorNeighborhoodVectorImageFilter<TInputImage1, TInputImage2, TOutputIm ::SetInput1(const TInputImage1 * image1) { // Process object is not const-correct so the const casting is required. - SetNthInput(0, const_cast<TInputImage1 *>(image1)); + this->SetNthInput(0, const_cast<TInputImage1 *>(image1)); } /** @@ -63,7 +63,7 @@ BinaryFunctorNeighborhoodVectorImageFilter<TInputImage1, TInputImage2, TOutputIm ::SetInput2(const TInputImage2 * image2) { // Process object is not const-correct so the const casting is required. - SetNthInput(1, const_cast<TInputImage2 *>(image2)); + this->SetNthInput(1, const_cast<TInputImage2 *>(image2)); } /** -- GitLab