[Insight-users] Problem Using the itkBSplineScatteredDataPointSetToImageFilter on Win32

Otmane Lahlou otmane.lahlou at c-s.fr
Thu Nov 25 06:50:45 EST 2010


Hi Nick,

Thanks you for your feedbacks,

Can those precision values issues be related to the parameter 
m_NumberOfLevels ?
In the test i sent  m_NumberOfLevels  is equal to 10,  and for this 
value the exception is thrown.

In general, the exception is thrown also for  m_NumberOfLevels values  > 5.
But it runs well for m_NumberOfLevels <=5.

Can you give me a brief explication about that, and the way to choose 
the right NumberOfLevels  value ?

Thank you

Otmane


Nicholas Tustison a écrit :
> Hi Otmane,
>
> The problem is that a B-spline object has an open boundary in it's parametric domain, specifically your domain is defined over [0,512).  You're querying a point right on that open boundary.  Although I tried to accommodate calls on the open boundary, due to precision differences, you're getting that error on Win32 vs your Linus distribution.  What you want to do is ensure your query of the B-spline object value is inside the B-spline domain, e.g. 511.9999 instead of 512.
>
> Nick   
>
>
> On Nov 24, 2010, at 1:08 PM, Otmane Lahlou wrote:
>
>   
>> Hi List;
>>
>> I have a problem when i use the  itkBSplineScatteredDataPointSetToImageFilter filter on Win32.
>> Actually, On _Linux distributions it runs well_, but on Win32, the following exception is thrown:
>> Line 1012
>> "Description: itk::ERROR: PointSetToImageFilter(01716750): The collapse point
>> component 512 is outside the corresponding parametric domain of [0, 512]. "
>>
>> I used ITK 3.20, compiled using a Visual C++ 2008 Express.
>> in release mode.
>>
>> You can find a cmake configurable project attached to this mail that shows the problem.
>> If someone can have a look and give me a feedback to confirm the problem
>> or to explain what i missed,  it will be really helpfull.
>>
>> Thanks for help.
>>
>> Otmane
>>
>>
>>
>>
>>
>>
>> <testITKSpline.tar>_____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.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-users
>>     
>
>
>   



More information about the Insight-users mailing list