classifier/classifier.py
def compute_texture(fname):
    '''
    Compute features for an image
    ------------------------------
    Parameters
    ----------
    fname : str
        filepath for image to process
    Returns
    -------
    ndarray
        1-D array of features
    '''
    im = mh.colors.rgb2grey(mh.imread(fname))
    im = im.astype(np.uint8)
    return mh.features.haralick(im).ravel()

    Compute features for an image
    ------------------------------
    Parameters
    ----------
    fname : str
        filepath for image to process
    Returns
    -------
    ndarray
        1-D array of features
    
Compute features for an image
Parameters

fname : str
filepath for image to process
Returns

ndarray
1-D array of features
Compute features for an image Parameters fname : str filepath for image to process Returns ndarray 1 - D array of features
def compute_texture(fname):
    im = mh.colors.rgb2grey(mh.imread(fname))
    im = im.astype(np.uint8)
    return mh.features.haralick(im).ravel()
def compute_texture ( fname ) : im = mh . colors . rgb2grey ( mh . imread ( fname ) ) im = im . astype ( np . uint8 ) return mh . features . haralick ( im ) . ravel ( )
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
        1-D array of features
    '''
fname