Rail Line Detection Based Photogrammetry