My Project
|
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 | |
@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
MaskCreator.MaskCreator.__init__ | ( | self, | |
image | |||
) |
@brief Initializes a MaskCreator object. @param image: The input image on which modifications will be applied.
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).
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.
MaskCreator.MaskCreator.gammaCorrection | ( | self, | |
gamma | |||
) |
@brief Applies gamma correction to the image. @param gamma: The gamma value for correction.
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).