My Project
|
Public Member Functions | |
__init__ (self) | |
This class is used to store shared data between different classes. | |
write_to_config (self, filename='config.ini') | |
read_from_config (self, filename='config.ini') | |
Public Attributes | |
left_image = None | |
Initializes the SharedData instance. | |
right_image = None | |
int | overlap_region = 200 |
bool | leftSide = True |
project_final_commented.SharedData.SharedData.__init__ | ( | self | ) |
This class is used to store shared data between different classes.
The SharedData class maintains information such as images, overlap region width, and a flag for which side (left or right) is active. This data is accessible to other classes, allowing them to read and modify these shared attributes. The class also includes methods for saving and loading the settings to and from a configuration file.
project_final_commented.SharedData.SharedData.left_image = None |
Initializes the SharedData instance.
The constructor sets up initial values for shared data attributes.