From 79d06fa7c6441e99291ad3a1949d241f336573d5 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 12 Jul 2017 08:47:56 +0200 Subject: [PATCH] #3103 BBTK Feature New Normal - Code style --- packages/itk/src/bbitkResampleImageFilter.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/itk/src/bbitkResampleImageFilter.h b/packages/itk/src/bbitkResampleImageFilter.h index 65222c5..da653e6 100644 --- a/packages/itk/src/bbitkResampleImageFilter.h +++ b/packages/itk/src/bbitkResampleImageFilter.h @@ -121,11 +121,11 @@ namespace bbitk size = LPR.GetSize(); // origin = LPR.GetIndex(); //in->GetOrigin(); for (unsigned int i=0;iGetSpacing()[i]; - spacing[i] = bbGetInputSpacing()[i]; - double tmp = (LPR.GetSize()[i]*in->GetSpacing()[i]/spacing[i] ) + 0.5; - size[i] = (long)floor(tmp); + { + origin[i] = LPR.GetIndex()[i]*in->GetSpacing()[i]; + spacing[i] = bbGetInputSpacing()[i]; + double tmp = (LPR.GetSize()[i]*in->GetSpacing()[i]/spacing[i] ) + 0.5; + size[i] = (long)floor(tmp); // size[i] = (long)lrint(LPR.GetSize()[i]*in->GetSpacing()[i]/spacing[i]); } -- 2.47.1