classifier/classifier.py
def compute_lbp(fname):
    '''
    Compute features for an image
    ------------------------------
    Parameters
    ----------
    fname : str
        filepath for image to process
    Returns
    -------
    ndarray
        linear binary patterns
    '''
    imc = mh.imread(fname)
    im = mh.colors.rgb2grey(imc)
    return lbp(im, radius=8, points=6)

    Compute features for an image
    ------------------------------
    Parameters
    ----------
    fname : str
        filepath for image to process
    Returns
    -------
    ndarray
        linear binary patterns
    
Compute features for an image
Parameters

fname : str
filepath for image to process
Returns

ndarray
linear binary patterns
Compute features for an image Parameters fname : str filepath for image to process Returns ndarray linear binary patterns
def compute_lbp(fname):
    imc = mh.imread(fname)
    im = mh.colors.rgb2grey(imc)
    return lbp(im, radius=8, points=6)
def compute_lbp ( fname ) : imc = mh . imread ( fname ) im = mh . colors . rgb2grey ( imc ) return lbp ( im , radius = 8 , points = 6 )
Compute features for an image
Parameters
Compute features for an image Parameters
'''
    Compute features for an image
    ------------------------------
    Parameters
    ----------
    fname : str
        filepath for image to process
    Returns
    -------
    ndarray
        linear binary patterns
    '''
fname