ImageEn, unit imageenproc

TImageEnProc.CompareHistogramWith

TImageEnProc.CompareHistogramWith


Declaration

function CompareHistogramWith(SecondImage: TIEBitmap; Mode: TIECmpMode; GrayScale: Boolean): Double;


Description

Compare histograms of the current image with another image and return a floating point value.
For iecmpRMSE the result will be in the range 0 to 1 indicating the percentage of equality. Otherwise it will be a distance or covariance value.

Note: If the image PixelFormat is not ie24RGB, it will be converted

Parameter Description
SecondImage Another image to compare with
Mode The algorithm used for comparison
GrayScale If True, only a gray scale histogram is compared


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


See Also

 CompareWith
 ComputeImageEquality