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.

Note:
 A UI for this is available to your users in the Image Processing dialog
 If the image PixelFormat is not ie24RGB or ie32RGB, it will be converted


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Examples

// 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;


// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  

// Compress the color histogram
ImageEnView1.Proc.HistEqualize( CreateRGB(50, 50, 50), CreateRGB(150, 150, 150) );

  


See Also

 CreateRGB
 TRGB2TColor
 TColor2TRGB