algorithm/surf_tools.py
def _mask_by_gradient(refpt, neighbor_set, valuemask):
    """
    mask neighbor set by valuemask that choose vertices with value smaller than value of vertex refpt
    """
    return set([i for i in neighbor_set if valuemask[i]<valuemask[refpt]])

    mask neighbor set by valuemask that choose vertices with value smaller than value of vertex refpt
    
mask neighbor set by valuemask that choose vertices with value smaller than value of vertex refpt
mask neighbor set by valuemask that choose vertices with value smaller than value of vertex refpt
def _mask_by_gradient(refpt, neighbor_set, valuemask):
    return set([i for i in neighbor_set if valuemask[i]<valuemask[refpt]])
def _mask_by_gradient ( refpt , neighbor_set , valuemask ) : return set ( [ i for i in neighbor_set if valuemask [ i ] < valuemask [ refpt ] ] )
mask neighbor set by valuemask that choose vertices with value smaller than value of vertex refpt
mask neighbor set by valuemask that choose vertices with value smaller than value of vertex refpt
"""
    mask neighbor set by valuemask that choose vertices with value smaller than value of vertex refpt
    """
refpt
neighbor_set
valuemask