vignette

From DavinciWiki
Jump to: navigation, search


Description

Generate vignetting correction image

Arguments and Return Values

Arguments:

Return Value:

Usage

Syntax: vignette(width=INT, height=INT, radius=FLOAT, offset=FLOAT, intensity=FLOAT)

The vignette() function generates a vignetting correction image.

The width and height parameters specify the size of the image. Radius, offset and intensity specify the values of the variables in the vignetting function:

  • cx = width/2;
  • cy = height/2;
  • r = sqrt((i-cx)*(i-cx) + (j-cy)*(j-cy))
  • a[i,j] = intensity * cos((r/radius) * (pi/2))) + offset

The returned image is of type FLOAT


DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left


Recent Core Changes

Modified On: 01-03-2008

Personal tools