My Project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MaskCreator.MaskCreator Class Reference

Public Member Functions

 __init__ (self, image)
 
 create_mask (self, image_side, mask_width, image_width)
 
 gammaCorrection (self, gamma)
 
 alpha_blending (self, image_side)
 
 mod_intensity (self, image_side)
 

Public Attributes

 result_image
 

Detailed Description

@brief The MaskCreator class performs image modification, including creating masks, gamma correction, alpha blending, and intensity modification.

@details
The class includes methods for:
- Creating masks based on specified parameters.
- Applying gamma correction to the image.
- Performing alpha blending on the image based on the image side.
- Modifying image intensity based on the image side.

@note
Ensure that the OpenCV library is installed (`pip install opencv-python`) before using this class.

@date January 18, 2024

Constructor & Destructor Documentation

◆ __init__()

MaskCreator.MaskCreator.__init__ (   self,
  image 
)
@brief Initializes a MaskCreator object.

@param image: The input image on which modifications will be applied.

Member Function Documentation

◆ alpha_blending()

MaskCreator.MaskCreator.alpha_blending (   self,
  image_side 
)
@brief Performs alpha blending on the image based on the image side.

@param image_side: The side of the image (0 for left, 1 for right).

◆ create_mask()

MaskCreator.MaskCreator.create_mask (   self,
  image_side,
  mask_width,
  image_width 
)
@brief Creates a mask based on specified parameters.

@param image_side: The side of the image (0 for left, 1 for right).
@param mask_width: The width of the mask.
@param image_width: The width of the input image.

◆ gammaCorrection()

MaskCreator.MaskCreator.gammaCorrection (   self,
  gamma 
)
@brief Applies gamma correction to the image.

@param gamma: The gamma value for correction.

◆ mod_intensity()

MaskCreator.MaskCreator.mod_intensity (   self,
  image_side 
)
@brief Modifies image intensity based on the image side.

@param image_side: The side of the image (0 for left, 1 for right).

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