Two Efficient Visual Methods for Segment Self-localization