Skip to content

Developer's Notes

Angeleene (Zemmy) Ang edited this page Jul 12, 2022 · 11 revisions

Current Issues

Adding new file readers

Running tests

Note that running any of the test will cause a vtkOutputWindow afterwards with several warnings. It will either crash by itself or finish showing the warnings. This is a known issue.

The currently available tests (find these under MRICenterline/testing) are as follows:

centerline_interpolation_test

  • Loads a previously annotated case from the database and tries to calculate the centerline
  • Depending on the TESTING flag in the beginning of the file, the test tries to run a full cycle of possible angles from 0 to 180, or tries to change the height of the centerline image from 10 to 100.

point_consistency_test

  • Creates a set of points on the images, moves the slices a few times, creates more points, with a 50msec delay per point/simulated mouse movement. The specifics are in the code itself.
  • The points are then saved to the database and also copied to memory
  • The saved points are loaded from the database.
  • The loaded points (coordinates and slice indices) are compared to the points in the memory

sequence_viewer_case_flag

In sequence_viewer, there would be cases when the next calculated slice index is not correct - e.g., when moving forward from slice 20, sometimes the slice would be calculated as slice 20 again instead of properly showing 21. This test checks if the next calculated slice index is the number after the previous one. If the slice number moves forward, this is labeled as 'case 2' and if not, it is labeled as 'case 1.' For this test to pass, all slice movements must be 'case 2.'

The current fix is to round off the value of the recalculated center before calculating the current slice index.

others

The rest of the tests in the folder are intended for comparing the the v3 and v4 releases of the software and are now obsolete.

Clone this wiki locally