Page MenuHomePhabricator

Point Set lacks convenient point removal.
Closed, ResolvedPublic

Description

No convenient method is provided for mitk::PointSet in order to arbitrarily remove points. Workarounds include index removal in the itk points container or replacement by accordingly modified point sets.

Event Timeline

User norajitr has pushed new remote branch:

bug-19138-ConvenientPointRemovalInMitkPointSet

User norajitr has pushed new remote branch:

bug-19138-PointSetLacksConvenientPointRemoval-int0

The point set API has been extended by convenience methods for a) a removal of a point from the point set if that particular point exists and b) a removal of a max id point from the point set.

In case a), an itk points container id check for point existence is performed, and in case b), an iterator pointing at the remaining max id point is returned.

For testing purposes, mitkPointSetTestSuite has been extended by the according test case. That is, for the default point set, remove point is called for non-existent points and non-existent time steps, assuring no removal is performed in these cases. Point removal of max id and non-max-id points is performed and compared to accordingly provided reference point sets.

[cbee9b]: Merge branch 'bug-19138-PointSetLacksConvenientPointRemoval-int0'

Merged commits:

2015-07-15 16:32:56 Tobias Norajitra [da13a5]
Point removal testing cases added to mitkPointSetTestSuite.


2015-07-15 16:32:05 Tobias Norajitra [7a3b42]
Point removal convenience methods for mitkPointSet.