Multi-Projector
Loading...
Searching...
No Matches
image.Image Class Reference

Represents an image and provides functionalities for masking and displaying it. More...

Inheritance diagram for image.Image:

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.
 

Detailed Description

Represents an image and provides functionalities for masking and displaying it.

Constructor & Destructor Documentation

◆ __init__()

image.Image.__init__ ( self,
imageFilePath )

Initializes the Image object by loading an image from the given file path.

Parameters
imageFilePathPath to the image file to be loaded.

Member Function Documentation

◆ displayImage()

image.Image.displayImage ( self)

Displays the image in a window.

The window will remain open until any key is pressed.

◆ mask()

image.Image.mask ( self,
side,
projectionWidthCm,
distanceBetweenProjectorCm,
gammaValue )

Applies a mask to the image based on the given side and projector parameters.

Parameters
sideThe side of the projection to apply the mask ("left" or "right").
projectionWidthCmThe width of the projection in centimeters.
distanceBetweenProjectorCmThe distance between the projectors in centimeters.
gammaValueThe gamma value to apply to the mask.

The documentation for this class was generated from the following file: