Project

General

Profile

Feature #1102 » image_reader_writer.py

Sushaant Kathirvel Murugan, 10/24/2024 10:52 AM

 
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
# ˅
4
from config_reader import ConfigReader
5
from mask_creator import MaskCreator
6

    
7

    
8
# ˄
9

    
10

    
11
class ImageReaderWriter(object):
12
    # ˅
13
    # \class ImageReaderWriter
14
    # \brief This class handles image reading and writing 
15
    # along with configuration management and mask creation.
16

    
17
    # \author 
18
    # \version 1.0.0
19
    # date 2024-10-19
20
 
21
    # ˄
22
    
23

    
24
    def __init__(self):
25

    
26
        # \brief Constructor for ImageReaderWriter
27
        #Initializes image file name, configuration reader and mask creator
28
        # \param self the object pointer
29

    
30

    
31
        self.imgFileName = None
32

    
33
        self.__configReader = None
34

    
35
        self.__maskCreator = None
36

    
37
        # ˅
38
        pass
39
        # ˄
40

    
41
    def getImage(self):
42

    
43
        # \brief This function reads the image file 
44
        # \returns image data
45
        # \retval is None if image file is not found
46
        # \bug if invalid file path is provided
47
        # \param self the object pointer
48

    
49
        # ˅
50
        pass
51
        # ˄
52

    
53
    def showImage(self):
54
        # \brief This function displays the image
55

    
56
        # \param self the object pointer
57
        
58
        # ˅
59
        pass
60
        # ˄
61

    
62
    # ˅
63
    
64
    # ˄
65

    
66

    
67
# ˅
68

    
69
# ˄
(4-4/4)