A class for processing images using gamma correction and blending.
More...
|
| __init__ (self, gamma, blend_ratio=0.21) |
| Constructor for ImageProcessor.
|
|
| process_images (self, left_image_path, right_image_path) |
| Processes two images by applying gamma correction and blending them.
|
|
|
| gamma_corrector |
|
| image_blender |
|
A class for processing images using gamma correction and blending.
◆ __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. |
◆ process_images()
main.ImageProcessor.process_images |
( |
|
self, |
|
|
|
left_image_path, |
|
|
|
right_image_path |
|
) |
| |
Processes two images by applying gamma correction and blending them.
- 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.
- Exceptions
-
FileNotFoundError | If one of the input images is not found. |
The documentation for this class was generated from the following file: