[Insight-developers] failing tests with TimeVaryingVelocityFieldTransform

Nicholas Tustison ntustison at gmail.com
Fri Sep 30 11:45:55 EDT 2011


Let me see if I can figure that out.


On Sep 30, 2011, at 11:33 AM, Luis Ibanez wrote:

> Hi Nick,
> 
> I just pushed a patch to Gerrit.
> 
> It takes care of the CopyInformation() problem.
> 
> It turned out that I missed that the two images had different
> dimensions and therefore the CopyInformation method can't
> be used here to copy Origin, Spacing, Direction...
> 
> The patch that I just pushed
> http://review.source.kitware.com/#change,3014
> 
> restored the code in your original patch
> http://review.source.kitware.com/#change,2931
> 
> and adds more readable declarations of types and variables.
> 
> Those are the good news...
> 
> 
> The bad news are that in the new patch
> the test fail with the message:
> 
> ....
> 468:      LowerTimeBound: 0.3
> 468:      UpperTimeBound: 0.75
> 468:      NumberOfIntegrationSteps: 10
> 468: Estimated forward displacement vector: [0, 0, 0]
> 468: Failed to produce the correct forward integration.
> 
> 
> Any hints on what could be the source of the problem ?
> 
> 
>    Thanks
> 
>       Luis
> 
> 
> --------------------------
> On Fri, Sep 30, 2011 at 9:51 AM, Nicholas Tustison <ntustison at gmail.com> wrote:
>> Okay, thanks Luis.  That makes sense.  And thanks again
>> for working on this.
>> 
>> 
>> On Sep 30, 2011, at 9:50 AM, Luis Ibanez wrote:
>> 
>>> Hi Nick,
>>> 
>>> That looks familiar.
>>> 
>>> Is due to a change I made in the filter.
>>> 
>>> Replaced
>>> 
>>> SetOrigin
>>> SetSpacing
>>> SetRegions
>>> 
>>> with CopyInformation,
>>> 
>>> but I probably should use a method
>>> that is specific to Images.
>>> 
>>> I'll take care of fixing it.
>>> 
>>> 
>>>    Thanks
>>> 
>>> 
>>>        Luis
>>> 
>>> 
>>> ----------------------
>>> On Fri, Sep 30, 2011 at 8:49 AM, Nicholas Tustison <ntustison at gmail.com> wrote:
>>>> Hi Luis,
>>>> Does the error associated with the TimeVaryingVelocityFieldTransforms
>>>> below look familiar to you or should I dive into trying to fix it?
>>>> Thanks,
>>>> Nick
>>>> 
>>>> Test output
>>>> 
>>>> ITK test driver caught an ITK exception:
>>>> 
>>>> itk::ExceptionObject (0x1189a20)
>>>> Location: "void itk::ImageBase<VImageDimension>::CopyInformation(const
>>>> itk::DataObject*) [with unsigned int VImageDimension = 3u]"
>>>> File:
>>>> /Users/ibanez/Dashboards/src/ITK/Modules/Core/Common/include/itkImageBase.hxx
>>>> Line: 334
>>>> Description: itk::ERROR: Image(0x1189360): itk::ImageBase::CopyInformation()
>>>> cannot cast PKN3itk10DataObjectE to PKN3itk9ImageBaseILj3EEE
>>>> 
>>>> 
>> 
>> 



More information about the Insight-developers mailing list