Understanding Detection in Autofocus Systems