Robust visual tracking via samples ranking