main module
Module to handle communication between client (static/main.js) and sksurgeryfred server
- main.calculatescore()[source]
Delegates to sksurgery.alogorithms.score to calculate an ablation score.
- main.correlation()[source]
Takes in 2d array, and does linear fit and correlation for each column against the first returns slope, intercept and correlation coefficient if there are less than 4 data points it returns false.
- main.defaultcontour()[source]
Returns a pre-calculated contour image to represent the intraoperative image.
- main.getfle()[source]
Returns values for fiducial localisation errors Values are randomly selected from a uniform distribution from 0.5 to 5.0 pixels
- main.gethighscores()[source]
return the sorted high scores, the ranking and the ref to the lowest score
- main.initdatabase()[source]
here we will create a new document in collection results and return the name of the document. Write some stuff about the date and the versions of fred, core, and fredweb. Create a sub collection of results within the document