UML Diagrams » History » Version 12
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 | *1. Blender GUI (User interface):* |
||
| 17 | 11 | Anderson PHILLIP | • The place where the user interacts with the system |
| 18 | • It has tabs for user to choose either Image or Video to process |
||
| 19 | • Users can select input and output, run blending and update status |
||
| 20 | |||
| 21 | 12 | Anderson PHILLIP | *2. Config Reader (Setting):* |
| 22 | 11 | Anderson PHILLIP | • The class to read config.json file |
| 23 | • It gets the detail of the file and provides them to other parts of the program |
||
| 24 | |||
| 25 | 12 | Anderson PHILLIP | *3. Alpha Blender (Image Processor):* |
| 26 | 11 | Anderson PHILLIP | • The core part for handling images |
| 27 | • It corrects the gamma values and creates alpha gradient |
||
| 28 | • The main function alpha_blend_edge blend the edges of two images |
||
| 29 | • It shows the preview of the final image after blending |
||
| 30 | |||
| 31 | 12 | Anderson PHILLIP | *4. Video Processor:* |
| 32 | 11 | Anderson PHILLIP | • It splits each video into two: left and right |
| 33 | • It applies alpha blending to the inner edges of each separated video |
||
| 34 | |||
| 35 | 12 | Anderson PHILLIP | *Config.json (External File):* |
| 36 | 11 | Anderson PHILLIP | • Contains five specific values as the data input for the classes: |
| 37 | 1. blend_width |
||
| 38 | 2. blend_method |
||
| 39 | 3. input_video_path |
||
| 40 | 4. output_dir |
||
| 41 | 5. divide_ratio |
||
| 42 | |||
| 43 | 8 | Jordan Keiwein LAY | |
| 44 | --- |