tomwer.core.process.reconstruction.axis.params.AxisRP#
- class tomwer.core.process.reconstruction.axis.params.AxisRP#
Configuration class for a tomwer
AxisProcess
note: every modification on the parameters will process a call fo changed except axis_url_1 and axis_url_2 which will produce a call to the dedicated axis_url_changed
- AXIS_POSITION_PAR_KEY = 'ROTATION_AXIS_POSITION'#
Key used for the axis position in par files
- property absolute_cor_value#
- property angle_mode#
- property axis_url_1#
the first file to be used for the axis calculation
- property axis_url_2#
the second file to be used for the axis calculation
- axis_urls_changed()#
Callback when the axis url change
- property calculation_input_type#
- changed()#
callback to overwrite when the paramter value changed
- property composite_options: dict#
return specific options for composite cor search
- copy(axis_params, copy_axis_url=True, copy_flip_lr=True)#
- property estimated_cor#
- property extra_cor_options: str#
- property fine_step_x#
- property flip_lr#
- property frame_width: None | float#
- static from_dict(_dict)#
- static get_cor_position_frm_tomwer_file(file_path, entry=None)#
Parse the given .h5 file, looking for axis processes. If found some then return the first value discover
- Parameters:
file_path (str) – tomwer processes file (.h5)
- Returns:
center of rotation or none
- Return type:
Union[None, float]
- get_nabu_cor_options()#
- Return type:
str
- get_nabu_cor_options_as_dict()#
- Return type:
str
- get_nabu_cor_options_as_str()#
return cor option for nabu
- Return type:
str
- get_simple_str()#
special information as a str for mode able to handle both sinogram and radios
- load_from_dict(_dict)#
- property look_at_stdmax#
- property mode#
- n_url()#
- Returns:
number of available url from url_1, url_2
- property near_wx#
- property padding_mode#
- property paganin_preproc#
- property projection_type#
- property relative_cor_value#
- property scale_img2_to_img1#
- set_position_frm_par_file(file_path, entry=None, force=False)#
Set position value from a file
- Parameters:
file_path (str) – path to the par file
force (bool) – if True, force the mode to read and set position_value to None if failed to read the file. Otherwise only mode and position_value when the file read succeed.
- set_relative_value(value)#
- set_value_ref_tomwer(value)#
- property side#
- property sinogram_line#
- property sinogram_subsampling: int#
Subsample radio to speed up processing of the sinogram generation
- to_dict()#
- property use_sinogram#
- property value_ref_nabu#
- property value_ref_tomwer#