We propose a delineation algorithm that deals with bar-like structures of different thickness. Detection of linear structures is applicable to several fields ranging from medical images for segmentation of vessels to aerial images for delineation of roads or rivers. The proposed method is suited for any delineation problem and employs a set of BCOSFIRE filters selective for lines and line-endings of different thickness. We determine the most effective filters for the application at hand by Generalized Matrix Learning Vector Quantization (GMLVQ) algorithm. We demonstrate the effectiveness of the proposed method by applying it to the task of vessel segmentation in retinal images. We perform experiments on two benchmark data sets, namely DRIVE...