Generalized mean shift with triangular kernel profile