ComputeLUT  Method

Description         Compute the scaled/shifted LUT on the base of histogram and user parameters, for recolouring the pixel values, using linear transfer function. Scaling results in changing the contrast (gain), shifting results in changing the brightness (offset).

Syntax                 lRet = [BIFilter.]ComputeLUT hHist Mode hLUT Contrast Brightness Error

Remarks             lRet                         LONGLONG Handle of the newly created DIB on success or 0 on failure.

                            hHist                       LONGLONG Handle to a histogram.(256 unsigned byte).

                            Mode                      Long                Create, destroy or compute LUT.

                                                                                    OPEN - Create the LUT (30).

                                                                                    COMPUTE - Compute the actual LUT (31)

                                                                                    CLOSE - Destroy the LUT

                            hLUT                     LONGLONG Handle to  LUT.(256 unsigned byte). If this paramter is set to zero, a new LUT, otherwise this handle will be returned.

                            Contrast                 Long                Value of the contrast.

                            Brightness              Long                Value of the brightness.

                            Error                      short*              Error code.

See Also