Incorporating a wavelet transform into a saliency-based method for online handwriting segmentation