Ideal observer analysis of detection in natural scenes