Models of approximate inference in vision