Recovering curve length from data: an arc-length approach