[Insight-users] Segfault using itk::PointSet::GetPointData()

Julien Michel julien.michel at c-s.cnes.fr
Mon Mar 10 11:04:33 EDT 2008


Dear ITK users,

When using an empty itk::PointSet, a null pointer will be returned when 
calling the GetPointData() method. On the other hand, the GetPoint() 
method will check for a null pointer and build a new PointContainer if 
needed. This results in a segmentation fault when trying to call the 
Begin() function on GetPointData() without knowing its emptyness. I 
think the method should have the same behaviour than GetPoints().

Should I post it on the bugtracker ?

Best regards,

Julien Michel


More information about the Insight-users mailing list