X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCoeffsToDVF.h;h=911e8a9f7b7dccb8aa41746ea34617a338be2c5e;hb=1d70c4971d5dd20b399252a4ea339b7c878d9b74;hp=603ca70a35111e0e1eed09a6bb5f56f9c22afb28;hpb=5b0a8467f664b624f7fc0a5020cd7610e8da2c13;p=clitk.git diff --git a/common/clitkCoeffsToDVF.h b/common/clitkCoeffsToDVF.h index 603ca70..911e8a9 100644 --- a/common/clitkCoeffsToDVF.h +++ b/common/clitkCoeffsToDVF.h @@ -59,13 +59,13 @@ namespace clitk typedef itk::ImageRegionConstIterator Iterator; Iterator it (coefficientImage, coefficientImage->GetLargestPossibleRegion() ); it.GoToBegin(); - unsigned int i = 0; + unsigned int k = 0; while (! it.IsAtEnd()) { for (unsigned int j = 0; j < dim; j++) - params[i+j]=it.Get()[j]; + params[k+j]=it.Get()[j]; ++it; - i += dim; + k += dim; } transform->SetParameters(params);