1D-TOF: System modeling, processing algorithm design and implementation