Skip to content
Snippets Groups Projects
Commit 42ad99e2 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

Correction sur les interpolateurs.

parent 9496b6a1
Branches
Tags
No related merge requests found
......@@ -99,7 +99,7 @@ GenericInterpolateImageFunction<TInputImage, TFunction, TBoundaryCondition, TCoo
::Modified()
{
Superclass::Modified();
m_TablesHaveBeenGenerated=false;
m_TablesHaveBeenGenerated = false;
}
......@@ -272,22 +272,22 @@ GenericInterpolateImageFunction<TInputImage, TFunction, TBoundaryCondition, TCoo
}
}
if (m_NormalizeWeight == true)
{
double sum = 0.;
{
for( unsigned int dim = 0; dim < ImageDimension; dim++ )
{
{
double sum = 0.;
for( unsigned int i = 0; i < m_WindowSize; i++)
{
// Compute the weight for this m
std::cout<<xWeight[dim][i]<<std::endl;
sum += xWeight[dim][i];
}
}
for( unsigned int dim = 0; dim < ImageDimension; dim++ )
{
std::cout<<"°°°°°°°°°°°°°"<<sum<<std::endl;
for( unsigned int i = 0; i < m_WindowSize; i++)
{
// Compute the weight for this m
xWeight[dim][i] = xWeight[dim][i]/sum;
std::cout<<xWeight[dim][i]<<std::endl;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment