<reponame>xu-minghao317/edge-blending<filename>ImageReader.py
import cv2 as cv
import numpy as np
from ConfigureReader import ConfigureReader

CR = ConfigureReader()

##
# @brief
#
# This class reads images and normalize them into numpy array tuple.


class ImageReader(object):

    # The constructer
    def __init__(self):
        pass

    ##
    # @brief 
    # Get image in a normalized numpy array
    # @return normalized numpy array
    def getImage(self):
        return np.array(cv.imread(CR.getImagePath()[0]))/255, np.array(cv.imread(CR.getImagePath()[1]))/255

import cv2 as cv
import numpy as np
from ConfigureReader import ConfigureReader

CR = ConfigureReader()

##
# @brief
#
# This class reads images and normalize them into numpy array tuple.


class ImageReader(object):

    # The constructer
    def __init__(self):
        pass

    ##
    # @brief 
    # Get image in a normalized numpy array
    # @return normalized numpy array
    def getImage(self):
        return np.array(cv.imread(CR.getImagePath()[0]))/255, np.array(cv.imread(CR.getImagePath()[1]))/255
## # @brief # # This class reads images and normalize them into numpy array tuple. # The constructer ## # @brief # Get image in a normalized numpy array # @return normalized numpy array