In this article, we will develop a crater detection algorithm (CDA) for an autonomous crater-based optical navigation system for spacecraft in orbit of the Moon. The aim of an autonomous crater-based optical navigation system is to estimate spacecraft position and attitude from observed…