摘要:
An adaptive median filter (40) provides dynamic detection and correction of digital image defects which are caused by defective or malfunctioning elements of a radiation detector array (20). The adaptive median filter receives (100) lines of pixel values of a digital image that may have defects and a user-defined defect threshold. The lines of pixel values are scanned on a pixel-by-pixel basis using a kernel of n×n pixels, where the kernel contains the candidate pixel being examined (120). Each kernel is numerically reordered (130) and a median value is calculated (140). A defect threshold value is calculated by multiplying the user-defined defect threshold criteria and the candidate pixel value (150). A reference value is calculated by subtracting the candidate pixel value and the median value (160). The reference value is compared to the defect threshold value (170). The candidate pixel value is replaced by the median value (180) if it differs from the median value by more than the predefined defect threshold, e.g., 20%. The adaptive median filter is particularly effective in detecting and correcting double line and double column defects in digital images. In addition, the filter minimizes image blurring and maintains image resolution by filtering only defective pixels.