In this study, targets and nontargets in a hyperspectral image are characterized in terms of their spectral features. Target detection problem is considered as a two-class classification problem. For this purpose, a vector tunnel algorithm (VTA) is proposed. The vector tunnel is characterized only by the target class information. Then, this method is compared with Euclidean Distance (ED), Spectral Angle Map (SAM) and Support Vector Machine (SVM) algorithms. To obtain the training data belonging to target class, the training regions are selected randomly. After determination of the parameters of the algorithms with the training set, detection procedures are accomplished at each pixel as target or background. Consequently, detection results are displayed as thematic maps.The algorithms are trained with the same training sets, and their comparative performances are tested under various cases. During these studies, various levels of thresholds are evaluated based on the efficiency of the algorithms by means of Receiver Operating Characteristic Curves (ROC) as well as visually.