Claims
- 1. A method for computationally processing a digital image, the method comprising:
providing in a graphical user interface an erasure brush configured to be manipulated by a user to erase features in digital images; receiving user input applying the erasure brush along a path over a displayed image of pixels; establishing an erasure color at each tip application of the erasure brush as the erasure brush moves along the path; and at each tip application, making completely transparent all pixels in the tip region having a color that matches the erasure color at the tip application, making partially transparent any pixels in the tip region having a color that partially matches the erasure color, and decontaminating the colors of the pixels made partially transparent.
- 2. The method of claim 1, wherein:
the erasure brush has a user adjustable geometry for defining the tip region; and the method further comprises configuring the erasure brush in response to a user input to define the geometry of the tip region processed at each tip application.
- 3. The method of claim 1, wherein:
establishing an erasure color at each tip application comprises:
sampling pixel colors in a pre-determined part of the tip region; calculating an average color based on the color of each of the sampled pixels; and defining the erasure color to be the average color.
- 4. The method of claim 3, wherein:
the pre-determined part is in a center region of the erasure brush.
- 5. The method of claim 3, wherein:
the pre-determined part is in a user specified area in the tip region.
- 6. The method of claim 1, wherein:
establishing an erasure color comprises receiving user input selecting the erasure color.
- 7. The method of claim 1, wherein:
the erasure brush is applied in a stroke along the path over a portion of the digital image having a foreground image and a background image; and the method further comprises receiving user input adjusting a shape of the erasure brush to size the tip region such that the stroke includes a portion of a boundary defining an intersection of the foreground image and the background image.
- 8. The method of claim 1, wherein:
the pixels in the tip region having a color that matches the erasure color are made completely transparent by changing their alpha values to zero.
- 9. The method of claim 1, wherein:
the pixels in the tip region that have a color that partially matches the erasure color are made partially transparent by decreasing their alpha values towards zero.
- 10. The method of claim 1, wherein:
the color values of the erasure color and the color values of the pixels lying within the tip region are in a first color space; and the method further comprises changing the color values for the erasure color and the color values of the pixels lying within the tip region to a second color space, and removing a contribution of the erasure color in the second color space, the second color space being different from the first color space.
- 11. The method of claim 1, wherein:
the color values of the erasure color and the color values of the pixels lying within the tip region are in a first color space; and the method further comprises changing the color values for the erasure color and the color values of the pixels lying within the tip region to a second color space, making completely transparent all pixels in the tip region having a color that matches the erasure color in the second color space, making partially transparent any remaining ones of the pixels in the tip region having a color that partially matches the erasure color in the second color space, decontaminating the color of any partially made transparent pixels in the second color space, and converting the decontaminated color values back to the first color space.
- 12. The method of claim 1, wherein:
the erasure color is a background color.
- 13. The method of claim 1, further comprising:
applying a color match function at each tip application, the color match function calculating a match value indicative of the degree that the erasure color matches a color associated with a given pixel lying in the tip region.
- 14. The method of claim 13, wherein:
the match value is derived as a function of the difference between the color of the given pixel lying in the tip region and the erasure color.
- 15. The method of claim 14, further comprising:
defining a first tolerance parameter, the first tolerance parameter defining a measure of color at which the color of any one of the pixels lying within the tip region will be deemed to match the erasure color; and wherein the match value is further calculated based at least in part on the tolerance parameter.
- 16. The method of claim 15, wherein:
the color match function is a tent function, the peak of the tent function being set to the value of the erasure color.
- 17. The method of claim 16, further comprising:
defining a second tolerance parameter, the second tolerance parameter forming a band in proximity to the peak of the tent function, and the color match value being defined to match the erasure color for each of the pixels falling within the band.
- 18. A method for computationally processing a digital image, the method comprising:
providing in a graphical user interface an erasure brush configured to be manipulated by a user to erase features in digital images; receiving user input applying the erasure brush in a stroke along a path over a displayed image of pixels; establishing a keep color at each tip application of the erasure brush as the erasure brush moves along the path, the keep color being a color that is to be kept; and at each tip application, making completely transparent all pixels in the tip region having a color that does not match the keep color, making partially transparent any pixels in the tip region having a color that partially matches the keep color, and decontaminating the colors of the pixels made partially transparent.
- 19. The method of claim 18, wherein:
establishing a keep color at each tip application comprises:
sampling pixel colors in a predetermined part of the tip region; calculating an average color based on the color of each of the sampled pixels; and defining the keep color to be the average color.
- 20. The method of claim 19, wherein:
the predetermined part is in a center region of the erasure brush.
- 21. The method of claim 19, wherein the pre-determined part is in a user specified area in the tip region.
- 22. The method of claim 18, wherein establishing a keep color comprises receiving user input selecting the keep color.
- 23. A computer program product, tangibly embodied on a machine-readable medium, for computationally processing a digital image, comprising instructions operable to cause a computer to:
provide in a graphical user interface an erasure brush configured to be manipulated by a user to erase features in digital images; receive user input applying the erasure brush along a path over a displayed image of pixels; establish an erasure color at each tip application of the erasure brush as the erasure brush moves along the path; and at each tip application, make completely transparent all pixels in the tip region having a color that matches the erasure color at the tip application, make partially transparent pixels in the tip region having a color that partially matches the erasure color, and decontaminate the colors of the pixels made partially transparent.
- 24. The product of claim 23, wherein:
the erasure brush has a user adjustable geometry for defining the tip region; and the computer program further comprises instruction to configure the erasure brush in response to a user input to define the geometry of the tip region processed at each tip application.
- 25. The product of claim 23, wherein:
the instruction to establish an erasure color at each tip application includes instructions to:
sample pixel colors in a pre-determined part of the tip region; calculate an average color based on the color of each of the sampled pixels; and define the erasure color to be the average color.
- 26. The product of claim 25, wherein:
the pre-determined part is a center region of the erasure brush.
- 27. The product of claim 25, wherein:
the pre-determined part is a user specified area in the tip region.
- 28. The product of claim 23, wherein:
the instruction to establish an erasure color at each tip application comprises instructions to receive user input selecting the erasure color.
- 29. The product of claim 23, wherein:
the erasure brush is applied in a stroke along the path over a portion of the digital image having a foreground image and a background image; and the computer program further comprises instructions to receive user input adjusting a shape of the erasure brush to size the tip region such that the stroke includes a portion of a boundary defining an intersection of the foreground image and the background image.
- 30. The product of claim 23, wherein:
the pixels in the tip region having a color that matches the erasure color are made completely transparent by changing their alpha values to zero.
- 31. The product of claim 23, wherein:
the pixels in the tip region that have a color that partially matches the erasure color are made partially transparent by decreasing their alpha values towards zero.
- 32. The product of claim 23, wherein:
the color values of the erasure color and the color values of the pixels lying within the tip region are in a first color space; and the computer program further comprises instructions to change the color values for the erasure color and the color values of the pixels lying within the tip region to a second color space, and remove a contribution of the erasure color in the second color space, the second color space being different from the first color space.
- 33. The product of claim 23, wherein:
the color values of the erasure color and the color values of the pixels lying within the tip region are in a first color space; and the computer program further comprises instructions to change the color values for the erasure color and the color values of the pixels lying within the tip region to a second color space, make completely transparent all pixels in the tip region having a color that matches the erasure color in the second color space, make partially transparent any remaining ones of the pixels in the tip region having a color that partially matches the erasure color in the second color space, decontaminate the color of any partially made transparent pixels in the second color space, and convert the decontaminated color values back to the first color space.
- 34. The product of claim 23, wherein the erasure color is a background color.
- 35. The product of claim 23, further comprising instructions to:
apply a color match function at each tip application, the color match function calculating a match value indicative of the degree that the erasure color matches a color associated with a given pixel lying in the tip region.
- 36. The product of claim 35, wherein:
the match value is derived as a function of the difference between the color of the given pixel lying in the tip region and the erasure color.
- 37. The product of claim 36, further comprising instructions to:
define a first tolerance parameter, the first tolerance parameter defining a measure of color at which the color of any one of the pixels lying within the tip region will be deemed to match the erasure color, wherein the match value is further calculated based at least in part on the tolerance parameter.
- 38. The product of claim 37, wherein the color match function is a tent function, the peak of the tent function being set to the value of the erasure color.
- 39. The product of claim 38, further comprising instructions to:
define a second tolerance parameter, the second tolerance parameter forming a band in proximity to the peak of the tent function, and the color match value being defined to match the erasure color for each of the pixels falling within the band.
- 40. A computer program product, tangibly embodied on a computer-readable medium, for computationally processing a digital image, comprising instructions operable to cause a computer to:
provide in a graphical user interface an erasure brush configured to be manipulated by a user to erase features in digital images; receiving user input applying the erasure brush in a stroke along a path over a displayed image of pixels; establishing a keep color at each tip application of the erasure brush as the erasure brush moves along the path, the keep color being a color that is to be kept; and at each tip application, making completely transparent all pixels in the tip region having a color that does not match the keep color, making partially transparent any pixels in the tip region having a color that partially matches the keep color, and decontaminating the colors of the pixels made partially transparent.
- 41. The product of claim 40, wherein:
the instruction to establish an erasure color at each tip application includes instructions to:
sample pixel colors in a pre-determined part of the tip region; calculate an average color based on the color of each of the sampled pixels; and define the keep color to be the average color.
- 42. The product of claim 41, wherein the pre-determined part is in a center region of the erasure brush.
- 43. The product of claim 41, wherein the pre-determined part is in a user specified area in the tip region.
- 44. The product of claim 40, wherein the instruction to establish a keep color at each tip application comprises instructions to receive user input selecting the keep color.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This is a divisional of U.S. application Ser. No. 09/300,088, filed Apr. 26, 1999 (allowed).
Divisions (1)
|
Number |
Date |
Country |
Parent |
09300088 |
Apr 1999 |
US |
Child |
10162856 |
Jun 2002 |
US |