]> Creatis software - clitk.git/blobdiff - registration/clitkShapedBLUTSpatioTemporalDIRGenericFilter.txx
itk4 Remove ITK_USE_OPTIMIZED_REGISTRATION_METHODS
[clitk.git] / registration / clitkShapedBLUTSpatioTemporalDIRGenericFilter.txx
index 963fb7811cbc5f0d24d5298c6478ec01aac4d218..0ef06ab69267e988f01b9821dc44ee6e31485a14 100644 (file)
@@ -623,7 +623,7 @@ namespace clitk
     typename  MetricType::Pointer metric=genericMetric->GetMetricPointer();
     if (movingMask) metric->SetMovingImageMask(movingMask);
 
-#ifdef ITK_USE_OPTIMIZED_REGISTRATION_METHODS
+#if defined(ITK_USE_OPTIMIZED_REGISTRATION_METHODS) || ITK_VERSION_MAJOR >= 4
     if (threadsGiven) metric->SetNumberOfThreads( threads );
 #else
     if (m_Verbose) std::cout<<"Not setting the number of threads (not compiled with USE_OPTIMIZED_REGISTRATION_METHODS)..."<<std::endl;