Commit 011fbd03 authored by Jamie Mcclelland's avatar Jamie Mcclelland

fixed problem when specifying CP spacing in voxels and using anisotropic...

fixed problem when specifying CP spacing in voxels and using anisotropic voxels for symmetric registrations
parent d4b3c1e3
......@@ -459,9 +459,9 @@ void reg_f3d_sym<T>::Initialise()
if(this->spacing[0]<0)
gridSpacing[0] *= -(this->inputReference->dx+this->inputFloating->dx)/2.f;
if(this->spacing[1]<0)
gridSpacing[1] *= -(this->inputReference->dx+this->inputFloating->dx)/2.f;
gridSpacing[1] *= -(this->inputReference->dy+this->inputFloating->dy)/2.f;
if(this->spacing[2]<0)
gridSpacing[2] *= -(this->inputReference->dx+this->inputFloating->dx)/2.f;
gridSpacing[2] *= -(this->inputReference->dz+this->inputFloating->dz)/2.f;
gridSpacing[0] *= powf(2.0f, (float)(this->levelNumber-1));
gridSpacing[1] *= powf(2.0f, (float)(this->levelNumber-1));
gridSpacing[2] *= powf(2.0f, (float)(this->levelNumber-1));
......
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