Adaptive Anti-Aliasing Filter Using GPU Shader Edge Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current anti-aliasing techniques in computer graphics are expensive in terms of performance and memory bandwidth, especially for real-time rendering, and increasing the number of samples to improve image quality is not feasible due to increased costs.

Innovation Solution

Implementing an adaptive anti-aliasing filter using programmable GPU shader units that computes an intelligent reconstruction filter, replacing the standard box filter with a more advanced filtering method that utilizes neighboring pixel samples to approximate subpixel positions and edge normals, thereby improving image quality without increasing the number of samples.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If the number of samples is increased to improve anti-aliasing quality, then image quality is improved, but memory and processing costs greatly increase

Engineering Contradiction:
Improveanti-aliasing qualityVSAvoidmemory and processing costs
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The patent applies local quality by using a box filter for most pixels and reserving advanced gradient-based filtering only for edge pixels where anti-aliasing is most needed. This selective approach improves image quality at boundaries while keeping processing costs low for the majority of pixels that don't require intensive filtering.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent changes the filtering parameter dynamically by switching between simple box filtering and gradient-based filtering based on pixel characteristics. Edge pixels undergo gradient calculation and directional filtering, while non-edge pixels use simple averaging, optimizing the balance between quality and computational cost.

Inventive Principle:
Principle #35Parameter changes

2Manufacturing precision

If supersampling is used to render the scene at a higher resolution, then image quality is improved, but performance and memory bandwidth are greatly increased

Engineering Contradiction:
Improveimage qualityVSAvoidperformance and memory bandwidth
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

The patent applies partial action by using gradient-based filtering only for edge pixels rather than all pixels. This selective application provides the necessary anti-aliasing quality improvement at boundaries while avoiding the excessive processing cost of applying the same intensive filtering to every pixel in the scene.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent applies local quality by using a box filter for most pixels and reserving advanced gradient-based filtering only for edge pixels where anti-aliasing is most needed. This selective approach improves image quality at boundaries while keeping processing costs low for the majority of pixels that don't require intensive filtering.

Inventive Principle:
Principle #3Local quality

3Productivity

If MSAA is used as the predominant method of anti-aliasing, then real-time graphics performance is maintained, but image quality is limited compared to supersampling

Engineering Contradiction:
Improvereal-time graphics performanceVSAvoidimage quality
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The patent changes the filtering parameter dynamically by switching between simple box filtering and gradient-based filtering based on pixel characteristics. Edge pixels undergo gradient calculation and directional filtering, while non-edge pixels use simple averaging, optimizing the balance between quality and computational cost.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent applies dynamics by making the filtering approach adaptive rather than static. The system dynamically determines which pixels need gradient-based filtering versus simple box filtering, allowing the anti-aliasing quality to adapt to local image features while maintaining overall performance.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS9019299B2Filtering method and apparatus for anti-aliasing
Publication Date: 2015.04.28 ADVANCED MICRO DEVICES INC
  • US9019299B2 patent drawing
  • US9019299B2 patent drawing
  • US9019299B2 patent drawing

AI summary

A filtering method and apparatus for anti-aliasing takes advantage of improved existing hardware by using as input the data stored in the multisampling anti-aliasing (MSAA) buffers after rendering. The standard hardware box-filter is then replaced with a more intelligent resolve implemented using shader programs. Embodiments find scene edges using existing samples generated by Graphics Processing Unit (GPU) hardware. Using samples from a footprint larger than a single pixel, a gradient is calculated matching the direction of an edge. A non-linear filter over contributing samples in the direction of the gradient gives the final result.