PBL4
Loading...
Searching...
No Matches
alpha_blending.ImageProcessingApp Class Reference

Public Member Functions

 __init__ (self, root)
 
 setup_left_tab (self)
 
 setup_right_tab (self)
 
 setup_settings_tab (self)
 
 setup_preview_tab (self)
 
 select_left_image (self)
 
 select_right_image (self)
 
 save_configuration (self)
 
 load_configuration (self)
 
 process_and_save (self)
 
 display_preview (self)
 
 display_image (self, processed_images)
 

Public Attributes

 root = root
 
str left_image_path = ""
 
str right_image_path = ""
 
dict left_params = {}
 
dict right_params = {}
 
dict processed_images = {}
 
 notebook = ttk.Notebook(root)
 
 tab_left = ttk.Frame(self.notebook)
 
 tab_right = ttk.Frame(self.notebook)
 
 tab_settings = ttk.Frame(self.notebook)
 
 tab_preview = ttk.Frame(self.notebook)
 
 process_button = tk.Button(root, text="Process and Save Images", command=self.process_and_save)
 
 progress_bar = ttk.Progressbar(root, orient="horizontal", length=400, mode="determinate")
 
 left_image_label = tk.Label(frame, text="No image selected", wraplength=300, anchor="w", justify="left")
 
 left_projected_image_width = tk.Entry(params_frame)
 
 left_projected_overlap_width = tk.Entry(params_frame)
 
 left_gamma = tk.Entry(params_frame)
 
 left_image_side = tk.IntVar(value=0)
 
 left_transparency_factor = tk.Entry(params_frame)
 
 right_image_label = tk.Label(frame, text="No image selected", wraplength=300, anchor="w", justify="left")
 
 right_projected_image_width = tk.Entry(params_frame)
 
 right_projected_overlap_width = tk.Entry(params_frame)
 
 right_gamma = tk.Entry(params_frame)
 
 right_image_side = tk.IntVar(value=1)
 
 right_transparency_factor = tk.Entry(params_frame)
 
 original_image_label = tk.Label(frame, text="Original Image")
 
 processed_image_label = tk.Label(frame, text="Processed Image")
 
dict right_image_path
 

Member Data Documentation

◆ right_image_path

dict alpha_blending.ImageProcessingApp.right_image_path
Initial value:
= {
'image_name': self.left_image_path,
'projected_image_width': int(self.left_projected_image_width.get()),
'projected_overlap_width': int(self.left_projected_overlap_width.get()),
'gamma': float(self.left_gamma.get()),
'image_side': self.left_image_side.get(),
'transparency_factor': float(self.left_transparency_factor.get())
}

The documentation for this class was generated from the following file: