Inferential and Ecological Theories of Visual Perception