[Insight-developers] What is LINEAR_INTERPOLATOR_FIXED?

Tom Vercauteren tom.vercauteren at m4x.org
Mon Jul 27 18:13:45 EDT 2009


Ok. Thanks Luis. I'll give it a try.

Tom

On Mon, Jul 27, 2009 at 22:43, Luis Ibanez<luis.ibanez at kitware.com> wrote:
>
> Hi Tom,
>
>
> The linear interpolator in the Code/Review directory has a bug.
> Currently, it doesn't produce the same results as the linear
> interpolator in Code/Common.
>
>
> When you enable that CMake flag, you should see a test failing...
>
>
> We should fix its behavior before we rely on this code.
>
>
>
>    Luis
>
>
>
> -----------------------
> Tom Vercauteren wrote:
>>
>> Hi Luis,
>>
>> I just realized that the optimized registration framework does not use
>> the optimized linear interpolator. Apparently the optimized linear
>> interpolator is not used at all. This is because of the following line
>> in itkLinearInterpolateImageFunction.h:
>>
>> #if defined( ITK_USE_OPTIMIZED_REGISTRATION_METHODS ) && defined(
>> LINEAR_INTERPOLATOR_FIXED )
>> #include "itkOptLinearInterpolateImageFunction.h"
>> #else
>>
>> Any reason for not having
>>
>> #ifdef ITK_USE_OPTIMIZED_REGISTRATION_METHODS
>> #include "itkOptLinearInterpolateImageFunction.h"
>> #else
>>
>> instead? I saw that this modification was done for ITK 3.6
>>
>>
>>  http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkLinearInterpolateImageFunction.h?root=Insight&r1=1.36&r2=1.33&sortby=date
>>
>> but the only commit message is
>>
>>  ENH: Temporarily disabling the redirection of this interpolator to the
>>       OptLinearInterpolateImageFunction class.
>>
>> Should we proceed to re-enabling this functionality?
>>
>> Regards,
>> Tom
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>>
>


More information about the Insight-developers mailing list