Multi-Projector
|
Represents an image and provides functionalities for masking and displaying it. More...
Public Member Functions | |
__init__ (self, imageFilePath) | |
Initializes the Image object by loading an image from the given file path. | |
mask (self, side, projectionWidthCm, distanceBetweenProjectorCm, gammaValue) | |
Applies a mask to the image based on the given side and projector parameters. | |
displayImage (self) | |
Displays the image in a window. | |
Represents an image and provides functionalities for masking and displaying it.
image.Image.__init__ | ( | self, | |
imageFilePath ) |
Initializes the Image object by loading an image from the given file path.
imageFilePath | Path to the image file to be loaded. |
image.Image.displayImage | ( | self | ) |
Displays the image in a window.
The window will remain open until any key is pressed.
image.Image.mask | ( | self, | |
side, | |||
projectionWidthCm, | |||
distanceBetweenProjectorCm, | |||
gammaValue ) |
Applies a mask to the image based on the given side and projector parameters.
side | The side of the projection to apply the mask ("left" or "right"). |
projectionWidthCm | The width of the projection in centimeters. |
distanceBetweenProjectorCm | The distance between the projectors in centimeters. |
gammaValue | The gamma value to apply to the mask. |