X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkGenericMetric.txx;h=852c19f858b833fef34d584642e6b14ff52e50ae;hb=103778ec7e0d03e32d9ecfa1306312d32d72ad4c;hp=b5df490d70c64c75986609cde2b134dae33ee6de;hpb=d83d2456795de427652e79600aff8aac47511a7e;p=clitk.git diff --git a/registration/clitkGenericMetric.txx b/registration/clitkGenericMetric.txx index b5df490..852c19f 100644 --- a/registration/clitkGenericMetric.txx +++ b/registration/clitkGenericMetric.txx @@ -35,10 +35,8 @@ GenericMetric::GenericMetric() m_Maximize=false; m_Verbose=false; m_FixedImageRegionGiven=false; -#ifdef ITK_USE_OPTIMISED_REGISTRATION_METHODS m_FixedImageSamplesIntensityThreshold=0; m_UseFixedImageSamplesIntensityThreshold=false; -#endif m_FixedImageMask=NULL; } @@ -273,9 +271,6 @@ GenericMetric::GetMetricPointer( m_Metric->SetFixedImageRegion(m_FixedImageRegion); //m_Metric->SetFixedImageRegion(mask_region); - -#ifdef ITK_USE_OPTIMIZED_REGISTRATION_METHODS - //============================================================================ // Set the lower intensity threshold if (m_ArgsInfo.intThreshold_given) { @@ -337,11 +332,13 @@ GenericMetric::GetMetricPointer( } // Intensity? + /* if( m_UseFixedImageSamplesIntensityThreshold && ( regionIter.Get() < m_FixedImageSamplesIntensityThreshold) ) { ++regionIter; // jump to next pixel continue; } + */ // Add point to the numbers fiic.push_back(index); @@ -400,13 +397,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); @@ -434,12 +431,6 @@ GenericMetric::GetMetricPointer( if (m_Verbose) std::cout<<"number of mask pixels "<