DDP

Syntax

Document.DDP (Type, AutoBgd, AutoMidLevel, Bgd, MidLevel, Cutoff )

Parameters

LowpassFilterType Type - type of low-pass filter to be used by Digital Development

mxFFTLowPass (0) : Fast Fourier Transform low pass filter

mxKernelLowPass (1) : Kernel low pass filter using 3x3 neighbourhoods

mxKernelLowPassMore (2) : Kernel low pass filter using 5x5 neighbourhoods

Boolean AutoBgd - enables automatic determination of image background level

Boolean AutoMidLevel - enables automatic determination of image mid-gray level

Float Bgd - image background level setting when AutoBgd is false

Float MidLevel - image mid-gray level setting when AutoMidLevel is false

Float Cutoff - radius of filter cutoff as percentage of image size for FFT filter; has no effect on kernel filters

Returns

Nothing

Remarks

Implements the Digital Development Processing algorithm, modelling the characteristics of conventional development of photographic emulsions. Type specifies which of MaxIm DL's low pass filter methods is used to perform the unsharp masking part of DDP. When using the FFT filter, the Cutoff parameter controls its strength. A setting of 5% corresponds to a mild filter, which emphasizes fine detail; 2.5% is a medium filter; and 1.5% is strong, removing large-scale brightness variations. (These values are for illustration: any desired values can be used.) Cutoff is ignored when using a Kernel low pass filter. If AutoBgd is True, MaxIm DL determines the average background level of the image automatically. Otherwise the average background value must be passed in via the parameter Bgd. Similarly, if AutoMidLevel is True, MaxIm DL attempts to determine a suitable level to use as inflection point of the gamma curve; the caller may override this by setting AutoMidLevel to False and passing the desired value in MidLevel.

This method is equivalent to the Digital Development command.