Feature #466 ยป caculate_overlapzone.py
1 |
|
---|---|
2 |
def overlapPixelCalculator(image_width, projector_image_width, projector_distance): |
3 |
## Function that calculate the overlap zone of two pictures to make the gamma corection
|
4 |
# @param image_width the width of image in pixels
|
5 |
# @param projector_image_width the width of image is scaled by projector
|
6 |
# @param projector_distance the distance of two projectors
|
7 |
# @return the position of the started overlapzone
|
8 |
return round(image_width*(projector_image_width - projector_distance)/projector_image_width) |