This paper addresses contour detection by simulating the human visual system and its application to visual object classification. Unlike previously designed bioinspired contour detection algorithms, we consider contour to be the salience of an edge image, and we extract the salience by simulating the endstopped cell and curvature cell in the visual cortex. Generally, we follow a local-to-global feed-forward architecture, in which the size of the receptive field (RF) increases from the primary visual cortex to the higher visual cortex. Edges are first detected by simple cells in small RFs, where textural details are suppressed by non-classical receptive fields (NCRFs) and sparse coding. Second, edges are integrated into local segments by complex cells. Afterwards, they are combined into the salience of edge images by endstopped cells and curvature cells and are ultimately the core of the final contour. In addition, we also apply the bioinspired contour detection algorithm to visual object classification tasks. Experiments on contour extraction show that, compared with state-of-the-art bioinspired algorithms, our algorithm makes a considerable improvement on contour detection. Experiments on visual object classification show that the contours produced by our proposal are powerful representations of the original images, which implies that our proposal is both biologically plausible and technologically useful. INDEX TERMS Contour detection, curvature cell, image processing, machine vision, biologically inspired computation, visual object classification.