[Insight-developers] Unlike in WarpImageFilter, WarpVectorImageFilter::SetDeformationField takes a non-const deformation field

Tom Vercauteren tom.vercauteren at m4x.org
Thu Mar 5 15:06:52 EST 2009


Hi Hans,

Thanks for the information. I have added a note to the bug report so
that we don't forget to fix WarpVectorImageFilter when
WarpImageFilter is fixed.
http://www.itk.org/Bug/view.php?id=8346

In the meantime, I'll duplicate
WarpVectorImageFilter::SetDeformationField to have a const version.

Tom

On Thu, Mar 5, 2009 at 20:51, Hans Johnson <hans-johnson at uiowa.edu> wrote:
> Tom,
>
> Please be aware that there is also an oustanding bug report on the
> WarpImageFilter.  The changes that are necessary will be backwards
> compatible (in all case where the filter currently works).
>
> Hans
>
>
> On 3/5/09 1:41 PM, "Tom Vercauteren" <tom.vercauteren at m4x.org> wrote:
>
>> Hi,
>>
>> Sorry for being so noisy recently...
>>
>> I stumbled on the following problem. The signature of
>> WarpVectorImageFilter::SetDeformationField is
>>   void SetDeformationField( DeformationFieldType * field );
>> instead of
>>   void SetDeformationField( const DeformationFieldType * field );
>> in WarpImageFilter.
>>
>> This requires me to use some const_cast that I would like to avoid.
>> May I just fix this const-correct issue? Or would it also potentially
>> break backwards compatibility?
>>
>> Tom
>>
>> P.S.: The const correctness change to WarpImageFilter was committed
>> some 5 years ago:
>> http://www.itk.org/cgi-bin/viewcvs.cgi/Code/BasicFilters/itkWarpImageFilter.h?
>> root=Insight&r1=1.17&r2=1.18&sortby=date
>> _______________________________________________
>> 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
>
>
>
> Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
>
>


More information about the Insight-developers mailing list