Actions
UML¶
Description¶
1. Config_Reader¶
Public Member Functions
- init__ (self)
Constructor for ConfigReader.
- getProjectedImageWidth (self)
Gets the projected image width.
- getDistanceBetweenProjectors (self)
Gets the distance between projectors.
- getImageWidth (self)
Gets the image width.
- getImageHeight (self)
Gets the image height.
- getImageName (self)
Gets the image name.
- getSide (self)
Gets the side information.
- getGamma (self)
Gets the gamma value.
2. Alpha_Blender¶
Public Member Functions
- init (self)
Constructor for Alpha_Blender.
Private Member Functions
- CalculateOverlap (self)
Calculates the overlap between 2 images.
- AlphaGamma (self)
Applies alpha and gamma blending.
- Display (self)
Displays the blended result.
ImageProcessor
Attributes
- gammaCorrector: An instance of the GammaCorrector class.
- imageBlender: An instance of the ImageBlender class.
Public Member Functions
- adjustImages(leftImagePath, rightImagePath): Accepts two image path strings and returns an array of Mat objects.
- main(args): The entry point of the program.
- displayImage(image, title): Displays an image with a title.
- Mat2BufferedImage(matrix): Converts a Mat object to a BufferedImage.
Public Member Functions
ImageBlender
Attributes
- gammaCorrector: An instance of the GammaCorrector class.
- blendRatio: A double value representing the blending ratio.
Public Member Functions
- blendImages(leftImage, rightImage): Blends two Mat objects (images) and returns a Mat object.
- processImages(leftImagePath, rightImagePath): Processes the images from given paths and returns an array of Mat objects.
Public Member Functions
GammaCorrector
Attributes
- gamma: A double value representing the gamma correction factor.
- Public Member Functions
- gammaCorrection(image): Applies gamma correction to the given image and returns the corrected Mat object.
Private Member Functions
- saturate(val): Ensures values are within a valid range by saturating them and returning a byte.
- main(args): Suggests that this class also contains an entry point, which is unusual unless it is for testing purposes.
Private Member Functions
Updated by Winson MIKE over 1 year ago · 8 revisions