Method for correcting purple distortion in digital images and a computing device employing same
AssigneeAthentech Technologies Inc.
InventorBrian G. JAMES
Life of this patent
Estimating the term…
Abstract
A computing device and a method for correcting color distortion are provided, in particular for correcting purple flare. A digital image has an array of pixels each represented by a green (G), a red (R) and a blue (B) primary color, and for each pixel, the computing device establishes a minimum value between the R and B intensity values, and compares the minimum value and the G intensity value. The original R, G and B intensity values are maintained if the G intensity value is equal or greater than the minimum value. The R and B intensity values are attenuated by an adjustment value if the G intensity value is less than the minimum value. The adjustment value is calculated as the difference of the minimum value and the G intensity value.
Claims26
A method for removing color distortion from a digital image for forming an adjusted, color distortion corrected image comprising:
- selecting an array of pixels from the digital image or portion thereof, each pixel being represented by a first, a second and a third primary color, each primary color having an intensity value;
- for each original pixel in the array:
- establishing a minimum value between the intensity values of the second and the third primary colors;
- comparing the minimum value and the intensity value of the first primary color, and where the intensity value of the first primary color is equal to or greater than the minimum value, establishing an adjusted pixel with the intensity values of the three primary colors equal to those of the original pixel, and
- where the intensity value of the first primary color is less than the minimum value,
- establishing an adjustment value, the adjustment value being the difference of the minimum value and the intensity value of the first primary color;
- attenuating the intensity value of the second primary color by the adjustment value, and
- attenuating the intensity value of the third primary color by the adjustment value for establishing an adjusted pixel, having the original intensity value for the first primary color and attenuated intensity values for the second and third primary colors;
- and
- repopulating the array with the adjusted pixels for forming the adjusted, color distortion corrected image.
A computing device for removing color distortion from a digital image for forming an adjusted, color distortion corrected image comprising:
- a processing structure;
- and
- a storage functionally coupled to said processing structure and storing said digital image;
- said processing structure executing computer-executable code for
- selecting an array of pixels from the digital image or portion thereof, each pixel being represented by a first, a second and a third primary colors, each primary color having an intensity value;
- processing each pixel of the selected pixels to remove color distortion;
- and
- repopulating the array with the adjusted pixels for forming the adjusted, color distortion corrected image;
- wherein said processing comprises:
- establishing a minimum value between the intensity values of the second and the third primary colors;
- comparing the minimum value and the intensity value of the first primary color, and where the intensity value of the first primary color is equal to or greater than the minimum value, establishing an adjusted pixel with the intensity values of the three primary colors equal to those of the original pixel, and
- where the intensity value of the first primary color is less than the minimum value,
- establishing an adjustment value, the adjustment value being the difference of the minimum value and the intensity value of the first primary color;
- attenuating the intensity value of the second primary color by the adjustment value, and
- attenuating the intensity value of the third primary color by the adjustment value for establishing an adjusted pixel, having the original intensity value for the first primary color and attenuated intensity values for the second and third primary colors.
A computer-readable storage device comprising computer-executable instructions for removing purple flare from a digital image for forming an adjusted de-purpled image, wherein the instructions, when executed, cause a processor to perform actions comprising:
- selecting an array of pixels from the digital image or portion thereof, each pixel being represented by a green, a red and a blue primary color, each primary color having an intensity value;
- and
- processing each pixel of the selected pixels to remove color distortion;
- and
- repopulating the array with the adjusted pixels for forming the adjusted, color distortion corrected image;
- wherein processing each pixel of the selected pixels comprises:
- establishing a minimum value between the red and blue intensity values;
- comparing the minimum value and the green intensity value, and where the green intensity value is equal to or greater than the minimum value, establishing an adjusted pixel with the intensity values of the three primary colors equal to those of the original pixel, and
- where the green intensity value is less than the minimum value,
- establishing an adjustment value, the adjustment value being the difference of the minimum value and the green intensity value;
- attenuating the red intensity value by the adjustment value, and
- attenuating the blue intensity value by the adjustment value for establishing an adjusted pixel, having the original green intensity value and attenuated red and blue intensity values.
A method for removing color distortion from a digital image for forming an adjusted, color distortion corrected image comprising:
- selecting an array of pixels from at least a portion of the digital image, each pixel comprising at least a first, a second and a third primary color, each primary color having an intensity value;
- for each original pixel in the array:
- establishing a minimum value being the minimum intensity values of a group of colors comprising at least the second and the third primary colors;
- comparing the minimum value and the intensity value of the first primary color, and where the intensity value of the first primary color is equal to or greater than the minimum value, establishing an adjusted pixel with the intensity values of all primary colors equal to those of the original pixel, and
- where the intensity value of the first primary color is less than the minimum value,
- establishing an adjustment value, the adjustment value being the difference of the minimum value and the intensity value of the first primary color;
- attenuating the intensity value of each of the group of colors by the adjustment value for establishing an adjusted pixel, having attenuated intensity values for the group of colors and the original intensity value for other colors;
- and
- repopulating the array with the adjusted pixels for forming the adjusted, color distortion corrected image.
Dependencies are inferred from the claim text.