the number of red eye pixels within a ring having an inner radius r pupil and an outer radius 1 5 d max and a r pupil d max is the area of the circle in the number of pixels the software then determines a difference between the first ratio and the second ratio r 1 r 2 a large difference indicates that red eye region 204 is probably a pupil with red eye if the difference is less than a threshold the software then rejects the red eye pixels in red eye region 204 as candidates for red eye removal in one embodiment the threshold is 30 i e 0 3 in step 116 the software determines if each remaining red eye region is too close to another red eye region in step 118 the software rejects red eye pixels in each red eye region that is too close to another red eye region steps 116 and 118 are illustrated in reference to red eye regions 204 and 242 in fig6 but in actuality are repeated for each red eye region the software determines a distance d pupil between the geometric centers of red eye regions 204 and 242 the software then determines if distance d pupil is.