PBL4_2
|
A class for blending two images using a specified blend ratio and gamma correction. More...
Public Member Functions | |
__init__ (self, gamma_corrector, blend_ratio=0.21) | |
Constructor for ImageBlender. | |
blend_images (self, left_image, right_image) | |
Blends two images together using the blend ratio and gamma correction. | |
process_images (self, left_image_path, right_image_path) | |
Processes two images by applying gamma correction and blending them. | |
Public Attributes | |
gamma_corrector | |
blend_ratio | |
A class for blending two images using a specified blend ratio and gamma correction.
Definition at line 17 of file imageBlender.py.
imageBlender.ImageBlender.__init__ | ( | self, | |
gamma_corrector, | |||
blend_ratio = 0.21 |
|||
) |
Constructor for ImageBlender.
gamma_corrector | An instance of GammaCorrector for applying gamma correction. |
blend_ratio | The ratio at which images will be blended, default is 0.21. |
Definition at line 28 of file imageBlender.py.
imageBlender.ImageBlender.blend_images | ( | self, | |
left_image, | |||
right_image | |||
) |
Blends two images together using the blend ratio and gamma correction.
left_image | The left image to be blended. |
right_image | The right image to be blended. |
Definition at line 41 of file imageBlender.py.
imageBlender.ImageBlender.process_images | ( | self, | |
left_image_path, | |||
right_image_path | |||
) |
Processes two images by applying gamma correction and blending them.
left_image_path | Path to the left image. |
right_image_path | Path to the right image. |
FileNotFoundError | If one of the input images is not found. |
Definition at line 73 of file imageBlender.py.
imageBlender.ImageBlender.blend_ratio |
Definition at line 31 of file imageBlender.py.
imageBlender.ImageBlender.gamma_corrector |
Definition at line 30 of file imageBlender.py.