}
}
- if (VImageDimension == 4)
+/* if (VImageDimension == 4)
mType == VECTORPIXELIMAGEWITHTIME;
else
- mType == VECTORPIXELIMAGE;
+ mType == VECTORPIXELIMAGE;*/
try {
mImage = vvImageFromITK<VImageDimension,InputPixelType>(output, mType == VECTORPIXELIMAGEWITHTIME);
}
// Set initial sliders values
- int w_ext[6], imsize[3];
+ int w_ext[6], imsize[4];
mCurrentSlicerManager->GetSlicer(0)->GetRegisterExtent(w_ext);
for(int dim=0; dim<slicer->GetDimension() && dim<3; ++dim){
imsize[dim] = w_ext[2*dim+1] - w_ext[2*dim] +1;
double rad = (checkBoxDegrees->checkState()==Qt::Checked)?180./itk::Math::pi:1.;
double angleDiff = euler->GetParameters()[i]-rotSBs[i]->value()/rad+2*itk::Math::pi;
angleDiff = angleDiff - 2*itk::Math::pi*itk::Math::Round<double,double>(angleDiff/(2*itk::Math::pi));
- if(abs(angleDiff)>1.e-4) {
+ if(std::abs(angleDiff)>1.e-4) {
rotSBs[i]->blockSignals(true);
rotSBs[i]->setValue( euler->GetParameters()[i]*rad );
rotSBs[i]->blockSignals(false);