Method and apparatus for modifying a cutout image for compositing

A method and apparatus for modifying a sprite containing a cutout feature for compositing with a background image modifies colors of pixels in the sprite according to their distances from the edge of the cutout feature to achieve desired visual effects such as edge softening. A distance mask for the...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: JOSHI, TANUJA A, LAWTON, DARYL T
Format: Patent
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:A method and apparatus for modifying a sprite containing a cutout feature for compositing with a background image modifies colors of pixels in the sprite according to their distances from the edge of the cutout feature to achieve desired visual effects such as edge softening. A distance mask for the sprite is generated which stores distance values representing distances of corresponding pixels in the sprite from the edge of the cutout feature. The distance mask can be efficiently generated by a chamfering technique. A clamping function is applied to the distance mask to determine scaling values for the respective pixels in the sprite. A modified sprite is constructed from the original sprite by modifying the colors of the pixels of the input sprite according to their respective scaling values. The modified sprite is then composited with the backgorund image to form a composite image.