Development, validation and test of optical based algorithms for autonomous planetary landing