Curve

Syntax

Document.Curve ( CurveName, Type, Bits )

Parameters

String CurveName - specifies name of curve to be applied

CurveType Type - specifies method used to interpolate between vertices of curve

mxPiecewiseLinear (0) : linear interpolation

mxSpline (1) : cubic spline

mxModifiedSpline (2) : automatically insert additional vertices to control significant excursions and then apply cubic spline

Short Bits - specifies output range by bit depth (8, 12, or 16), or set to zero (0) to normalize output to same range as input

Returns

Nothing

Remarks

Apply a curve (transfer function) to the image. Each pixel p(x,y) of the image is replaced by f(p(x,y)), where f is the mathematical function represented by the designated curve. A color image can be processed using a color curve, in which each channel's data is subjected to a different function, or by a monochrome curve, when only luminance of the pixel is adjusted without changing its hue.

Curves must be previously defined using the interactive Curves command's Save operation. When CurveName identifies a precision curve (one specified by numerical coordinate values), Type must be mxPiecewiseLinear (0) and Bits must be 16.

This method is equivalent to the Curves command.