In this paper, we present a vessel enhancement method, SVM temporal filtering (STF), for X-ray angiographic (XA) images using Support Vector Machine (SVM). We show that the linear SVM applied to vessel enhancement can be regarded as a matched linear filter optimizing the contrast-to-noise ratio in XA images. We propose a non-linear kernel function for the SVM leading to good enhancement with noisy, varying grey-level dynamics at vessel pixels. One key advantage over the matched filters is that an optimal filter is learnt from images, not estimated at design stage. Results on clinical XA images show that learning-based enhancement achieves better results compared to simple subtraction and other image stacking methods.