X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkGenericMetric.txx;h=cbbcaa04a81ed6a02e088a4f364a7f7c0292c36f;hb=599d581f20dc1f11699c722d2cf40b958c517c74;hp=58e681aeda3d6f2110d6bd1c86fb0e28b62146b0;hpb=6673fd0ae6026140ca07b3491c093b9600cc91a6;p=clitk.git diff --git a/registration/clitkGenericMetric.txx b/registration/clitkGenericMetric.txx index 58e681a..cbbcaa0 100644 --- a/registration/clitkGenericMetric.txx +++ b/registration/clitkGenericMetric.txx @@ -35,7 +35,7 @@ GenericMetric::GenericMetric() m_Maximize=false; m_Verbose=false; m_FixedImageRegionGiven=false; -#ifdef ITK_USE_OPTIMIZED_REGISTRATION_METHODS +#if defined(ITK_USE_OPTIMIZED_REGISTRATION_METHODS) || ITK_VERSION_MAJOR >= 4 m_FixedImageSamplesIntensityThreshold=0; m_UseFixedImageSamplesIntensityThreshold=false; #endif @@ -274,7 +274,7 @@ GenericMetric::GetMetricPointer( //m_Metric->SetFixedImageRegion(mask_region); -#ifdef ITK_USE_OPTIMIZED_REGISTRATION_METHODS +#if defined(ITK_USE_OPTIMIZED_REGISTRATION_METHODS) || ITK_VERSION_MAJOR >= 4 //============================================================================ // Set the lower intensity threshold @@ -402,13 +402,13 @@ GenericMetric::GetMetricPointer( } // Intensity? - if( m_UseFixedImageSamplesIntensityThreshold && - randIter.Get() < m_FixedImageSamplesIntensityThreshold ) { - ++randIter; - //if (m_Verbose) std::cout << "not in threshold" << std::endl; - count_not_thres++; - continue; - } +// if( m_UseFixedImageSamplesIntensityThreshold && +// randIter.Get() < m_FixedImageSamplesIntensityThreshold ) { +// ++randIter; +// //if (m_Verbose) std::cout << "not in threshold" << std::endl; +// count_not_thres++; +// continue; +// } // Add point to the numbers fiic.push_back(index);