Patent ID: 8774506

Claim:
A redeye image detection method for detecting at least one red eye image in an input image, comprising: deriving an edge detection result by performing an edge detection process to detect an edge characteristic of the input image, wherein the step of performing the edge detection process comprises: performing an erosion process for pixels within the input image, the erosion process including utilizing an erosion mask to process each pixel in the input image, replacing a luminance value of a center pixel in the erosion mask with a luminance value of the darkest pixel in the erosion mask, and deriving an erosion result; performing a dilation process for pixels within the input image, the dilation process including utilizing a dilation mask to process each pixel in the input image, replacing a luminance value of a center pixel in the dilation mask with a luminance value of the brightest pixel in the dilation mask, and deriving a dilation result; and comparing corresponding pixel luminance values in the erosion result and the dilation result, wherein when a luminance difference between a pixel in the erosion result and a corresponding pixel in the dilation result is larger than a threshold, labeling the pixel as an edge pixel, and generating the edge detection result according to all derived edge pixels; deriving a red pixel detection result by performing a red pixel detection process to detect red pixels in the input image; and utilizing a determining circuit to derive a preliminary detection result according to the edge detection result and the red pixel detection result, and derive the at least one redeye image according to the preliminary detection result; wherein the step of deriving the redeye image according to the preliminary detection result comprises: deriving at least one candidate pixel group from the input image according to the preliminary detection result, wherein the at least one candidate pixel group comprises pixels in the input image to which the preliminary detection results corresponds; deriving at least one target pixel group according to luminance values of pixels in the at least one candidate pixel group, and the step of deriving the target pixel group according to luminance values of pixels in the candidate pixel group comprises: calculating a maximum value of the luminance values of the pixels in the candidate pixel group and an average luminance value of the pixels in the candidate pixel group; and determining that the candidate pixel group is the target pixel group when a difference between the maximum value and the average value is larger than a threshold; and deriving at least one redeye image according to the at least one target pixel group.