sksurgeryfredmatplotlib.plotting.interactive_plots module

Functions to support MedPhys Taught Module workshop on calibration and tracking

class sksurgeryfredmatplotlib.plotting.interactive_plots.PlotRegStatistics(plot)[source]

Bases: object

writes the registration statistics

set_visibilities(fids_text, tre_text, exp_tre_text, exp_fre_text, fre_text, score_text, total_score_text, margin_text, repeats_text)[source]

Sets which text boxes will be visible

update_fids_stats(no_fids, mean_fle)[source]

Updates the fids stats display

update_last_score(last_score)[source]

Updates the margin text box

update_margin_stats(margin)[source]

Updates the margin text box

update_repeats(repeats)[source]

Updates the total score text box

update_stats_plot(tre, exp_tre, fre, exp_fre)[source]

Updates the statistics display

update_total_score(total_score)[source]

Updates the total score text box

class sksurgeryfredmatplotlib.plotting.interactive_plots.PlotRegistrations(fixed_plot, moving_plot, stats_plot)[source]

Bases: object

Plots the results of registrations

initialise_new_reg(img, target_point, outline)[source]

resets the registration

plot_fiducials(fixed_points, moving_points, no_fids, mean_fle)[source]

Updates plot with fiducial data

plot_registration_result(actual_tre, expected_tre, fre, expected_fre, transformed_target_2d)[source]

Plots the results of a registration