(self, imgfile)
Create a new image processing object for <imgfile>.
Create a new image processing object for <imgfile>.
Create a new image processing object for <imgfile > .
def __init__(self, imgfile):
        """
        Create a new image processing object for <imgfile>.
        """
        if not imgfile:
            raise ValueError("parameter 'imgfile' must be a non-empty, non-None string")
        
        self.imgfile = imgfile
        self.input_img = None
        self.img_w = None
        self.img_h = None
                
        self.gray_img = None  # grayscale version of the input image
        self.edges = None     # edges detected by Canny algorithm
        
        self.lines_hough = []   # contains tuples (rho, theta, theta_norm, DIRECTION_HORIZONTAL or DIRECTION_VERTICAL)
        
        self._load_imgfile()
def __init__ ( self , imgfile ) : if not imgfile : raise ValueError ( "parameter 'imgfile' must be a non-empty, non-None string" ) self . imgfile = imgfile self . input_img = None self . img_w = None self . img_h = None self . gray_img = None # grayscale version of the input image self . edges = None # edges detected by Canny algorithm self . lines_hough = [ ] # contains tuples (rho, theta, theta_norm, DIRECTION_HORIZONTAL or DIRECTION_VERTICAL) self . _load_imgfile ( )