nabu.app.diag_to_rot
source module nabu.app.diag_to_rot
Functions
-
transform_images — Filter and transform the radios and the weights.
-
total_merit_list — builds three lists : all_merits, all_energies, all_z_transl
-
main — Find the cor as a function f z translation and write an hdf5 which contains interpolable tables. This file can be used subsequently with the correct-rot utility.
source transform_images(diag, args)
Filter and transform the radios and the weights.
Filter the radios, and oversample them along the horizontal line. The method in general is similar to the composite cor finding. Several overlapping positions are used to match redundant contributions at different rotation stages ( theta and theta+180). But beforehand it is beneficial to remove low spatial frequencies. And we do oversampling on the fly.
Parameters
-
diag : object — used member of diag are radios and weights
-
args : object — its member are the application parameters. Here we use only: low_pass, high_pass, ovs ( oversampling factor for the horisontal dimension )
source total_merit_list(arg_tuple)
builds three lists : all_merits, all_energies, all_z_transl
For every pair (theta, theta+180 ) add an item to the list which contains
for "all_merits" a list of merit, one for every overlap in the overlap_list argument, for "all_energies", same logic, but calculating the implied energy, implied in the calculation of the merit, for "all_z_transl" we add the averaged z_transl for the considered pair Parameters: diag: object used member of diag are radios, weights and zpix_transl args: object containing the application parameters. Its used members are ovs, high_pass, low_pass
source find_best_interpolating_line(args)
Find the cor as a function f z translation and write an hdf5 which contains interpolable tables. This file can be used subsequently with the correct-rot utility.
Raises
-
ValueError
-
RuntimeError
source do_height_by_height(args, overlap_list, all_diff, all_energies, all_z_transl)
source do_linear_interpolation(args, overlap_list, all_res, all_energies, all_z_transl)