pose_estimation/tools/image.py
def load_im_np(filename):
    '''
    load 1 image to a numpy array
    resulting array will have entries on the interval [0, 1] of type float32
    '''
        
    a = imageio.imread(filename) # will load integers on interval [0,255]
    b = np.asarray(a)
    c = np.float32(b)
    d = c/255.0 # put elements on interval [0,1]
            
    return d

    load 1 image to a numpy array
    resulting array will have entries on the interval [0, 1] of type float32
    
load 1 image to a numpy array
resulting array will have entries on the interval [0, 1] of type float32
load 1 image to a numpy array resulting array will have entries on the interval [ 0 1 ] of type float32
def load_im_np(filename):
    a = imageio.imread(filename) 
    b = np.asarray(a)
    c = np.float32(b)
    d = c/255.0 
    return d
def load_im_np ( filename ) : a = imageio . imread ( filename ) b = np . asarray ( a ) c = np . float32 ( b ) d = c / 255.0 return d
load 1 image to a numpy array
resulting array will have entries on the interval [0, 1] of type float32
load 1 image to a numpy array resulting array will have entries on the interval [ 0 1 ] of type float32
'''
    load 1 image to a numpy array
    resulting array will have entries on the interval [0, 1] of type float32
    ''' # will load integers on interval [0,255] # put elements on interval [0,1]
filename