def update_data_from_flags(self, flags): """Updates UI elements from the flags. Args: flags (dict[str, _]): Flags corresponding to the tab default binary. """ dlg = self.dlg dropdowns = [ ["first", dlg.dd_depth_video_first], ["last", dlg.dd_depth_video_last], ["background_frame", dlg.dd_depth_video_frame_bg], ] values = [["resolution", dlg.val_depth_options_res]] labels = [ ["var_noise_floor", dlg.label_depth_threshs_1_color_variance], ["var_high_thresh", dlg.label_depth_threshs_2_color_variance], ["blur_radius", dlg.label_depth_threshs_1_fg_mask], ["morph_closing_size", dlg.label_depth_threshs_2_fg_mask], ["threshold", dlg.label_depth_threshs_3_fg_mask], ] checkboxes = [ ["partial_coverage", dlg.cb_depth_options_partial_360], ["use_foreground_masks", dlg.cb_depth_options_use_bg], ["force_recompute", dlg.cb_depth_recompute], ] common.update_data_from_flags( self, flags, dropdowns=dropdowns, values=values, checkboxes=checkboxes, labels=labels, )
def update_data_from_flags(self, flags): """Updates UI elements from the flags. Args: flags (dict[str, _]): Flags corresponding to the tab default binary. """ dlg = self.dlg dropdowns = [["first", dlg.dd_bg_bg_frame_bg]] values = [["resolution", dlg.val_bg_options_res]] checkboxes = [ ["partial_coverage", dlg.cb_bg_options_partial_360], ["force_recompute", dlg.cb_bg_recompute], ] labels = [ ["var_noise_floor", dlg.label_bg_threshs_1_color_variance], ["var_high_thresh", dlg.label_bg_threshs_2_color_variance], ] common.update_data_from_flags( self, flags, dropdowns=dropdowns, values=values, checkboxes=checkboxes, labels=labels, )
def update_data_from_flags(self, flags): """Updates UI elements from the flags. Args: flags (dict[str, _]): Flags corresponding to the tab default binary. """ dlg = self.dlg dropdowns = [ ["color_type", dlg.dd_export_data_type], ["first", dlg.dd_export_data_first], ["last", dlg.dd_export_data_last], ["file_type", dlg.dd_export_data_file_type], ] values = [["width", dlg.val_export_options_res]] checkboxes = [["force_recompute", dlg.cb_export_recompute]] common.update_data_from_flags(self, flags, dropdowns=dropdowns, values=values, checkboxes=checkboxes) # Special case: format if flags["format"] in self.formats.values(): val = self.get_format_from_value(flags["format"]) dep_util.update_qt_dropdown(dlg.dd_export_data_format, val)
def update_data_from_flags(self, flags): """Updates UI elements from the flags. Args: flags (dict[str, _]): Flags corresponding to the tab default binary. """ dropdowns = [["rig_in", self.dlg.dd_calibrate_rig_rigs_res]] common.update_data_from_flags(self, flags, dropdowns=dropdowns)