PBL Group 21

Loading...
Searching...
No Matches
Classes
main_alpha_blender.py File Reference

This program applies gamma-corrected alpha blending to overlapping projector images. More...

## Classes
class | main_alpha_blender.MainAlphaBlender

## Detailed Description

This program applies gamma-corrected alpha blending to overlapping projector images.

This is for multi-projector edge blending. It assumes two projected images overlap horizontally and creates a smooth alpha transition in the overlap area so that the seam becomes visually less noticeable.

Main idea:

- A linear alpha ramp (fade-in / fade-out) is generated over the overlap region.
- The ramp is then gamma-corrected to match how projectors actually respond to input intensity. (Projectors are not linear devices; without correction, the blended region can look too dark/light.)

Output:

- The output image is saved as a PNG with an updated alpha channel.
- Optionally, the RGB channels in the overlap region are also multiplied by the same mask as a debug visualization (helps confirm the fade direction and mask shape).