ROP primarily affects premature infants born before 31 weeks of gestation and those with a birth weight of less than 1500 grams. Other risk factors include anemia, blood transfusions, respiratory distress, and infection. The more premature the baby and the lower the birth weight, the higher the risk of developing ROP.