]> Creatis software - clitk.git/commitdiff
make compatible with ITKv4
authordsarrut <david.sarrut@gmail.com>
Mon, 2 May 2011 09:12:49 +0000 (11:12 +0200)
committerdsarrut <david.sarrut@gmail.com>
Mon, 2 May 2011 09:12:49 +0000 (11:12 +0200)
itk/clitkExtractSliceFilter.txx

index deabdfc5cd53e8bb9128159d9b3eaa606e1c535b..43874d0265f60cd70b11c5916a5b3c5bea85a74c 100644 (file)
@@ -118,6 +118,9 @@ GenerateData() {
     m_index[GetDirection()] = start + i;
     m_region.SetIndex(m_index);
     extract->SetExtractionRegion(m_region);
+#if ITK_VERSION_MAJOR == 4
+    extract->SetDirectionCollapseToSubmatrix();
+#endif
     extract->Update();
     SetNthOutput(i, extract->GetOutput());
   }