An ideal observer model of infant object perception