segmentation_functions.py
def make_8UC(mat, normalized=True):
    """Convert the matrix to the equivalent matrix of the unsigned 8 bit integer datatype."""
    if normalized:
        mat_uint8 = np.array(mat.copy()*255, dtype=np.uint8)
    else:
        mat_uint8 = np.array(normalize(mat)*255, dtype=np.uint8)
    return mat_uint8
Convert the matrix to the equivalent matrix of the unsigned 8 bit integer datatype.
Convert the matrix to the equivalent matrix of the unsigned 8 bit integer datatype.
Convert the matrix to the equivalent matrix of the unsigned 8 bit integer datatype .
def make_8UC(mat, normalized=True):
    if normalized:
        mat_uint8 = np.array(mat.copy()*255, dtype=np.uint8)
    else:
        mat_uint8 = np.array(normalize(mat)*255, dtype=np.uint8)
    return mat_uint8
def make_8UC ( mat , normalized = True ) : if normalized : mat_uint8 = np . array ( mat . copy ( ) * 255 , dtype = np . uint8 ) else : mat_uint8 = np . array ( normalize ( mat ) * 255 , dtype = np . uint8 ) return mat_uint8
Convert the matrix to the equivalent matrix of the unsigned 8 bit integer datatype.
Convert the matrix to the equivalent matrix of the unsigned 8 bit integer datatype .
"""Convert the matrix to the equivalent matrix of the unsigned 8 bit integer datatype."""
mat
normalized