A class for processing images using gamma correction and blending.
More...
A class for processing images using gamma correction and blending.
Definition at line 17 of file main.py.
◆ __init__()
main.ImageProcessor.__init__ |
( |
|
self, |
|
|
|
gamma, |
|
|
|
blend_ratio = 0.21 |
|
) |
| |
Constructor for ImageProcessor.
- Parameters
-
gamma | Gamma value for correction. |
blend_ratio | Blend ratio for image blending, default is 0.21. |
Definition at line 28 of file main.py.
◆ adjust_images()
main.ImageProcessor.adjust_images |
( |
|
self, |
|
|
|
left_image_path, |
|
|
|
right_image_path |
|
) |
| |
Adjusts and blends two images.
- Parameters
-
left_image_path | Path to the left image. |
right_image_path | Path to the right image. |
- Returns
- A tuple of adjusted left, adjusted right, and blended images.
Definition at line 41 of file main.py.
◆ gamma_corrector
main.ImageProcessor.gamma_corrector |
◆ image_blender
main.ImageProcessor.image_blender |
The documentation for this class was generated from the following file: