glenoidplanefitting.ui.glenoidplanefitting_demo module

Main entry point function for the various plane fitting functions

glenoidplanefitting.ui.glenoidplanefitting_demo.run_demo(model_file_name, planes='', fried_points='', vault_points='', corr_fried='', output='', visualise=False, config_file=None)[source]
Parameters
  • planes – File name pointing to file containing points for planes method. First three points are for scapula plane in the order of medial border, inferior tip, glenoid center. For left shoulder latter three points are in order of superior glenoid, left inferior glenoid, right inferior glenoid. For right shoulder latter three points are in order of superior glenoid, right inferior glenoid, left inferior glenoid.

  • fried_points – File name pointing to a file containing points for the Friedman method. If left shoulder, points in order of, right glenoid tip, left glenoid tip, scapula tip. If right shoulder, points in order of left glenoid tip, right glenoid tip, scapula tip.

  • vault_points – File name pointing to a file containing points for the vault method. If left shoulder, points in order of, right glenoid tip, left glenoid tip, vault tip. If right shoulder, points in order of, left glenoid tip, right glenoid tip, vault tip.

  • corr_fried – File name pointing to a file containing points for the corrected Friedman method. Input file: If left shoulder, points in order of, right glenoid tip, left glenoid tip, vault tip. If right shoulder, points in order of, left glenoid tip, right glenoid tip, vault tip.

  • output – Output filename, can be planes.vtp, friedman.vtp, or vault.vtp Choosing planes.vtp Writes the transverse plane into a file used as the new axial slice for picking the new landmark points for the 3D corrected Friedman method.

  • config_file – We can pass a configuration file, currently focusing on visualisation parameters