Commit 1b9af2a2 authored by Emmanuel Christophe's avatar Emmanuel Christophe

COMP: missing this

parent 8e115c25
......@@ -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;
......
......@@ -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,
......
......@@ -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,
......
......@@ -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));
}
/**
......
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