[Insight-developers] itkBoundingBoxTest
Will Schroeder
will.schroeder@kitware.com
Mon, 19 Feb 2001 07:08:49 -0500
Hi Luis-
I will look at this. There is more more to be done in this class to support
multi-dimensional
methods.
Will
At 08:10 PM 2/18/2001 -0500, Luis Ibanez wrote:
>Hi,
>
>itkBoundingBoundTest is producing a seg fault.
>it seems to be caused by the test for insertion
>of points in the VectorContainer of points.
>
>VectorContainer is using a method
>
>InserElement( id, element )
>
>with id = 0;
>
>internally the VectorContainer is a stl::vector,
>so it verifies if the size is large enough to
>receive an element at this position (id).
>
>When the size is insuficient, the stl::vector
>is resized: itkVectorContainer.txx (line 98):
>
>if( id > this->VectorType::size() ) ...
>
>It seems that the comparision should be done
>with id+1, to prevent the use of a void stl::vector.
>
>Can someone verify this ?
>
>Thanks
>
>Luis
>
>
>
>
>
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers