UML » History » Version 8
Winson MIKE , 01/18/2024 01:54 PM
1 | 1 | Winson MIKE | h1. UML |
---|---|---|---|
2 | |||
3 | !PBL4.png! |
||
4 | 2 | Bohan HO | |
5 | 3 | Winson MIKE | h2. *Description* |
6 | |||
7 | 5 | Winson MIKE | h3. 1. *Config_Reader* |
8 | 3 | Winson MIKE | |
9 | 4 | Bohan HO | Public Member Functions |
10 | |||
11 | |||
12 | 3 | Winson MIKE | * init__ (self) |
13 | 1 | Winson MIKE | Constructor for ConfigReader. |
14 | 2 | Bohan HO | |
15 | 3 | Winson MIKE | * getProjectedImageWidth (self) |
16 | 2 | Bohan HO | Gets the projected image width. |
17 | 1 | Winson MIKE | |
18 | 3 | Winson MIKE | * getDistanceBetweenProjectors (self) |
19 | 1 | Winson MIKE | Gets the distance between projectors. |
20 | 2 | Bohan HO | |
21 | 3 | Winson MIKE | * getImageWidth (self) |
22 | 1 | Winson MIKE | Gets the image width. |
23 | |||
24 | 3 | Winson MIKE | * getImageHeight (self) |
25 | 2 | Bohan HO | Gets the image height. |
26 | |||
27 | 3 | Winson MIKE | * getImageName (self) |
28 | 1 | Winson MIKE | Gets the image name. |
29 | 2 | Bohan HO | |
30 | 3 | Winson MIKE | * getSide (self) |
31 | Gets the side information. |
||
32 | 2 | Bohan HO | |
33 | 3 | Winson MIKE | * getGamma (self) |
34 | 2 | Bohan HO | Gets the gamma value. |
35 | |||
36 | |||
37 | 5 | Winson MIKE | h3. 2. *Alpha_Blender* |
38 | 1 | Winson MIKE | |
39 | 4 | Bohan HO | |
40 | 5 | Winson MIKE | *Public Member Functions* |
41 | 4 | Bohan HO | |
42 | 5 | Winson MIKE | * init (self) |
43 | Constructor for Alpha_Blender. |
||
44 | 4 | Bohan HO | |
45 | 5 | Winson MIKE | *Private Member Functions* |
46 | 4 | Bohan HO | |
47 | 5 | Winson MIKE | * CalculateOverlap (self) |
48 | 4 | Bohan HO | Calculates the overlap between 2 images. |
49 | |||
50 | 5 | Winson MIKE | * AlphaGamma (self) |
51 | 4 | Bohan HO | Applies alpha and gamma blending. |
52 | |||
53 | 5 | Winson MIKE | * Display (self) |
54 | 4 | Bohan HO | Displays the blended result. |
55 | 6 | Winson MIKE | |
56 | 7 | Winson MIKE | !S__12148745.jpg! |
57 | 8 | Winson MIKE | |
58 | h3. ImageProcessor |
||
59 | *Attributes* |
||
60 | * gammaCorrector: An instance of the GammaCorrector class. |
||
61 | * imageBlender: An instance of the ImageBlender class. |
||
62 | *Public Member Functions* |
||
63 | * adjustImages(leftImagePath, rightImagePath): Accepts two image path strings and returns an array of Mat objects. |
||
64 | * main(args): The entry point of the program. |
||
65 | * displayImage(image, title): Displays an image with a title. |
||
66 | * Mat2BufferedImage(matrix): Converts a Mat object to a BufferedImage. |
||
67 | |||
68 | h3. ImageBlender |
||
69 | *Attributes* |
||
70 | * gammaCorrector: An instance of the GammaCorrector class. |
||
71 | * blendRatio: A double value representing the blending ratio. |
||
72 | *Public Member Functions* |
||
73 | * blendImages(leftImage, rightImage): Blends two Mat objects (images) and returns a Mat object. |
||
74 | * processImages(leftImagePath, rightImagePath): Processes the images from given paths and returns an array of Mat objects. |
||
75 | |||
76 | h3. GammaCorrector |
||
77 | *Attributes* |
||
78 | * gamma: A double value representing the gamma correction factor. |
||
79 | * Public Member Functions |
||
80 | * gammaCorrection(image): Applies gamma correction to the given image and returns the corrected Mat object. |
||
81 | *Private Member Functions* |
||
82 | * saturate(val): Ensures values are within a valid range by saturating them and returning a byte. |
||
83 | * main(args): Suggests that this class also contains an entry point, which is unusual unless it is for testing purposes. |