Rail and turnout detection using gradient information and template matching | IEEE Conference Publication | IEEE Xplore