Project

General

Profile

UML Diagrams » History » Version 13

Anderson PHILLIP, 11/13/2025 03:12 PM

1 2 Anderson PHILLIP
[[Wiki|← Back to Start Page]]
2
3 1 Wing Sum TANG
h1. UML Diagrams
4 3 Jordan Keiwein LAY
5 8 Jordan Keiwein LAY
---
6
7 3 Jordan Keiwein LAY
h2. Class Diagram
8 1 Wing Sum TANG
9 11 Anderson PHILLIP
Below are the class diagram representing the main components of the system:
10 8 Jordan Keiwein LAY
11
* **Input Class Diagram**
12 1 Wing Sum TANG
  !{width:60%}input_final.png!
13 11 Anderson PHILLIP
The diagram consists of four class: Blender GUI, Config Reader, Alpha Blender and Video Processor.
14
15 12 Anderson PHILLIP
*Component Breakdown:*
16 13 Anderson PHILLIP
17 12 Anderson PHILLIP
*1. Blender GUI (User interface):*
18 11 Anderson PHILLIP
•	The place where the user interacts with the system
19
•	It has tabs for user to choose either Image or Video to process
20
•	Users can select input and output, run blending and update status
21
22 12 Anderson PHILLIP
*2. Config Reader (Setting):*
23 11 Anderson PHILLIP
•	The class to read config.json file
24
•	It gets the detail of the file and provides them to other parts of the program
25
26 12 Anderson PHILLIP
*3. Alpha Blender (Image Processor):*
27 11 Anderson PHILLIP
•	The core part for handling images
28
•	It corrects the gamma values and creates alpha gradient
29
•	The main function alpha_blend_edge blend the edges of two images 
30
•	It shows the preview of the final image after blending
31
32 12 Anderson PHILLIP
*4. Video Processor:*
33 11 Anderson PHILLIP
•	It splits each video into two: left and right 
34
•	It applies alpha blending to the inner edges of each separated video
35
36 12 Anderson PHILLIP
*Config.json (External File):*
37 11 Anderson PHILLIP
•	Contains five specific values as the data input for the classes: 
38
1.	blend_width
39
2.	blend_method
40
3.	input_video_path
41
4.	output_dir
42
5.	divide_ratio
43
44 8 Jordan Keiwein LAY
45
---