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

Also see: Automated Samples
// 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
◼IERGBToColor
◼IEColorToRGB