]> Creatis software - clitk.git/commitdiff
Debug Resample tool
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Mar 2016 08:58:16 +0000 (09:58 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Mar 2016 08:58:16 +0000 (09:58 +0100)
tools/clitkResampleImageGenericFilter.txx

index b42d18349f2f943cb95ed5ca092c931d20986b60..7ecf84298ba01aad9a1a63b749ed326857681309 100644 (file)
@@ -101,13 +101,12 @@ clitk::ResampleImageGenericFilter::UpdateWithInputImageType()
         size[i] = mArgsInfo.size_arg[i];
       filter->SetOutputSize(size);
     }
-    itk::ImageIOBase::Pointer header = clitk::readImageHeader(mArgsInfo.input_arg);
     for(unsigned int i=0; i<dim; i++){
-      origin[i] = header->GetOrigin(i);
+      origin[i] = input->GetOrigin()[i];
     }
     for(unsigned int i=0; i<dim; i++) {
       for(unsigned int j=0;j<dim;j++) {
-          direction(i,j) = header->GetDirection(i)[j];
+          direction(i,j) = input->GetDirection()[i][j];
       }
     }
     filter->SetOutputOrigin(origin);