Page MenuHomePhabricator

Implement Unit-Test for mitkImageStatisticsCalculator
Closed, ResolvedPublic

Description

There is no Unit-Test for mitkImageStatisticsCalculator.

-> Bad => I'm going to implement one...

Event Timeline

[9eaf18]: Merge branch 'bug-8077-statistics-unit-test'

  • bug-8077-statistics-un

Merged commits:

2011-05-10 15:52:43 Markus Engel [36df2b]
Implemented basic unit test for statistics calculation using planarfigure mask

Basic Unit-test has been implemented that loads a custom testimage, creates various PlanarPolygons and checks if the mitkImageStatisticsCalculator calculates the correct Mean and Sigma.

This test is real basic and will be extended in the future...

[c9ed3a]: Merge branch 'bug-8077-statistics-unit-test'

  • bug-8077-statistics-un

Merged commits:

2011-05-11 11:12:33 Markus Engel [d7d5f6]
fixing failing test, seems like path was falsely formatted for linux

[955fe0]: Merge branch 'bug-8077-statistics-unit-test'

  • bug-8077-statistics-un

Merged commits:

2011-05-12 16:32:46 Markus Engel [6def93]
removed unnecessary code, improved readability


2011-05-12 16:29:00 Markus Engel [4c876b]
added additional testcases; improved precision of checks


2011-05-12 15:43:40 Markus Engel [164522]
Merge branch 'bug-8078-imagestatistics-planarfigure-offset' into bug-8077-statistics-unit-test

  • bug-8078-imagestatistics-planarfigure-offset: introduced new pipeline to create imagemask from PlanarFigure; Build a switch to use two VTK 5.8 classes even when using VTK 5.6 (with VTK 5.8, use the real VTK classes) adding classes from VKT 5.8 needed for statistics calculation removing coordinate-correction to fix offset bug for planarfigure masking

Unit-test has been extended to check some weird angles as well...

is this merged into the snapshot-201105-preparation branch? Doesn't look like it.

reopen for merge in side-branch

(In reply to comment #7)

reopen for merge in side-branch

Meant: snapshot-201105-preparation

Testing bugs are part of their respective modules -> changing component to other, please assign appropriate component.