rlsd is the R interface to the LSD model. It can be installed with:
library(devtools) install_github("quantifish/rlsd")