ImageEn, unit imageenproc

TImageEnProc.HistEqualize

TImageEnProc.HistEqualize


Declaration

procedure HistEqualize(LoThresh, HiThresh: TRGB);


Description

Equalize the color histogram of the selected region in the range LoThresh to HiThresh.


Example

// Compress the color histogram in the range LoThresh to HiThresh
var
  LoThresh, HiThresh: TRGB;
Begin
  LoThresh := CreateRGB(50, 50, 50);
  HiThresh := CreateRGB(150, 150, 150);
  ImageEnView1.Proc.HistEqualize(LoThresh, HiThresh);
End;


See Also

- CreateRGB
- TRGB2TColor
- TColor2TRGB