Skip to content
Snippets Groups Projects
Commit 8bb41b04 authored by Julien Malik's avatar Julien Malik
Browse files

WRG: fix comparison signed/unsigned

parent bf63d67e
No related branches found
No related tags found
No related merge requests found
...@@ -70,25 +70,26 @@ void ...@@ -70,25 +70,26 @@ void
SarParametricMapFunction<TInputImage, TCoordRep> SarParametricMapFunction<TInputImage, TCoordRep>
::SetPolynomalSize(const IndexType PolynomalSize) ::SetPolynomalSize(const IndexType PolynomalSize)
{ {
unsigned int pointId = 0; typedef typename IndexType::IndexValueType IndexValueType;
PointType coef; IndexValueType pointId = 0;
PointType coef;
m_IsInitialize = false; m_IsInitialize = false;
for(unsigned int i = 0; i <= PolynomalSize[0]; ++i) for (IndexValueType i = 0; i <= PolynomalSize[0]; ++i)
{ {
coef[0] = i; coef[0] = i;
for(unsigned int j = 0; j <= PolynomalSize[1]; ++j) for (IndexValueType j = 0; j <= PolynomalSize[1]; ++j)
{ {
coef[1] = j; coef[1] = j;
m_Coeff->SetPoint(pointId,coef); m_Coeff->SetPoint(pointId, coef);
++pointId; ++pointId;
} }
} }
if(m_PointSet->GetNumberOfPoints() > 0) if (m_PointSet->GetNumberOfPoints() > 0)
{ {
EvaluateParametricCoefficient(); EvaluateParametricCoefficient();
} }
this->Modified(); this->Modified();
} }
template <class TInputImage, class TCoordRep> template <class TInputImage, class TCoordRep>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment