Smart camera and active vision: the active detector formalism