Claims
- 1. A method for antialiasing a computer graphics image using filtering, the method comprising the steps of:
defining a plurality of regions having samples from pixels in the computer graphics image, where the regions are associated with a pixel of interest and adjacent pixels to form an antialiasing filter; determining a contrast for each region; and blending the regions that form the filter based on the contrast for each region.
- 2. A method as in claim 1, wherein the step of defining a plurality of regions further includes the step of including samples from the pixel of interest and adjacent pixels in each of the regions.
- 3. A method as in claim 1, wherein the step of blending the regions that form the filter further includes the step of blending the regions that form the filter by excluding regions from the filter that do not exceed a pre-determined contrast level.
- 4. A method as in claim 1, wherein the step of blending the regions further comprises the step of adjusting the weighting of the samples in each region based on the region's contrast.
- 5. A method as in claim 4, wherein the step of weighting samples based on the region's contrast further comprises the step of weighting samples farther from a center of the pixel of interest with an increased weight when the contrast exceeds a pre-determined threshold.
- 6. A method as in claim 4, wherein the step of weighting samples based on contrast further comprises the step of weighting samples farther from the pixel of interest with a lesser weight when the contrast does not exceed a pre-determined threshold.
- 7. A method as in claim 1, wherein the step of blending the regions that form the filter further includes the step of blending the regions which form the filter by increasing region size for regions when the contrast equals or exceeds a pre-determined contrast.
- 8. A method as in claim 7, wherein the step of increasing region size further includes the step of increasing the number of samples included in the region.
- 9. A method as in claim 1, wherein the step of blending the regions further includes the step of blending the regions that form the filter by decreasing a region size for regions where the contrast falls below a pre-determined contrast level.
- 10. A method as in claim 9, wherein the step of decreasing region size further includes the step of decreasing the number of samples included in the region.
- 11. A method as in claim 1, wherein the step of determining a contrast further comprises the step of determining the contrast by subtracting the sample with the minimum brightness from the sample with the maximum brightness to create a brightness difference.
- 12. A method as in claim 1, wherein the step of determining the contrast ratio, further comprises the step of dividing the sample with the maximum brightness by the sample with the minimum brightness.
- 13. A method as in claim 1, wherein the step of determining the contrast index, further comprises the step of dividing the difference between the sample with the maximum brightness and the sample with the minimum brightness by the sample with the maximum brightness.
- 14. A method for filtering a digital image, comprising the steps of:
defining a plurality of spatial regions that are associated with a pixel of interest, and each spatial region includes samples from adjacent pixels and samples from the pixel of interest; comparing the intensities of samples in the spatial regions to create a contrast value for each region; averaging the samples of each spatial region that exceed a pre-defined contrast value; and replacing the samples of each spatial region that exceed a pre-defined contrast value with the average of the samples.
- 15. A method as in claim 14, further comprising the step of filtering all the samples in the pixel of interest to create a pixel value.
- 16. A method as in claim 15, wherein the step of filtering all the samples in the pixel of interest further comprises the step of filtering all the samples in the pixel of interest by averaging the samples to create the pixel value.
- 17. A method as in claim 14, wherein the step of comparing the intensity of samples further comprises the step of dividing a maximum intensity sample in a region by a minimum intensity sample to produce a contrast ratio.
- 18. A method as in claim 14, wherein the step of comparing the intensity of samples, further comprises the step of dividing difference between the sample with the maximum brightness and the sample with the minimum brightness by the sample with the maximum brightness to produce a contrast index.
- 19. A method as in claim 14, wherein in the steps of averaging the samples and replacing the samples of each spatial region with an average of the samples, further comprises the step of averaging the samples and replacing the samples with the average of the samples when the contrast index exceeds 0.5 or the contrast ratio exceeds 2.0.
- 20. A method for antialiasing computer generated graphic images using a post filter, comprising the steps of:
selecting a pixel of interest; defining a four corners region associated with a corner of the pixel of interest, and the four corners region includes at least one sample from the pixel of interest and pixels adjacent to the four corners region; identifying the maximum and minimum intensity sample values in the four corners region; dividing the maximum intensity sample value by the difference between the maximum and minimum intensity sample values to obtain a contrast ratio; comparing the contrast ratio to a contrast threshold value; replacing each sample in the four corners region with the average of the samples in the four corners region when the contrast ratio meets or exceeds the contrast threshold value.
- 21. A method as in claim 20, further comprising the step of averaging the samples in the pixel of interest to produce a pixel value after the processing on the four corners region has been completed.
- 22. A method as in claim 20, further comprising the step of repeating the steps above for each of four corners of the pixel of interest.
- 23. A method as in claim 20, further comprising the step of including at least one sample from each pixel that is adjacent to the corner of the pixel of interest.
- 24. A method as in claim 23, further comprising the step of including 4 samples in the four corners region where each sample is from a different pixel and one of the samples is from the pixel of interest.
- 25. A method for filtering a digital image, comprising the steps of:
defining a plurality of spatial regions that are associated with a pixel of interest and each spatial region includes regions from adjacent pixels and the pixel of interest; comparing the intensity of samples in the spatial regions to create a contrast value; changing the size of spatial regions based on comparing the contrast value to a pre-defined contrast threshold level; averaging the samples of each spatial region; and replacing the samples of each spatial region with average of the samples.
- 26. A method as in claim 25, wherein the step of changing the size of the spatial regions further includes the step of increasing the size of the spatial regions when the contrast value meets or exceeds the contrast threshold level.
- 27. A method as in claim 26, wherein the step of increasing the size of the spatial regions further includes the step of increasing the number of samples that are included in the spatial region.
- 28. A method as in claim 25, wherein the step of changing the size of the spatial regions further includes the step of decreasing the size of the spatial regions when the contrast value is less than the contrast threshold level.
- 29. A method as in claim 28, wherein the step of decreasing the size of the spatial regions further includes the step of increasing the number of samples that are included in the spatial region.
- 30. A device for filtering a digital image, comprising:
a pixel buffer to store pixels and associated samples; a priority encoder, coupled to the pixel buffer, to receive samples for a specific region associated with a pixel and to select samples with the maximum and minimum brightness; a subtractor coupled to the priority encoder, to subtract the sample with the minimum brightness from the sample with a maximum brightness to create a brightness difference; and a dividing module associated with the subtractor, to divide the brightness difference by the maximum brightness to create a contrast index; a comparator coupled to the dividing module to compare the contrast index with a pre-selected contrast index; and an averaging module to average the samples in a region if the contrast index exceeds the pre-selected contrast index.
- 31. A device as in claim 30, further comprising a write means to write the average of the samples in a region into each of the samples in the region.
Parent Case Info
[0001] This application claims priority from U.S. Patent Application Serial No. 60/314,425 filed on Aug. 23, 2001.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60314425 |
Aug 2001 |
US |