ImageEn, unit ievision

TIEVisionImage.integral

TIEVisionImage.integral


Declaration

procedure integral(sum: TIEVisionImage); overload; safecall;
procedure integral(sum: TIEVisionImage; sqsum: TIEVisionImage; tilted_sum: TIEVisionImage); overload; safecall;


Description

Calculate the integral of an image.

Parameter Description
sum Integral image as (W + 1) x (H + 1) , 32-bit integer or floating-point (32f or 64f)
sqsum Integral image for squared pixel values. It is (W + 1) x (H + 1), double-precision floating-point (64f) image (matrix)
tilted_sum Integral for the image rotated by 45 degrees. It is (W + 1) x (H + 1) image (matrix) with the same data type as sum


Examples

ImageEnView1.IO.LoadFromFile( 'D:\im.jpg' );
DestIEViewer1.IEBitmap.Allocate( ImageEnView1.IEBitmap.Width, ImageEnView1.IEBitmap.Height );
ImageEnView1.IEBitmap.GetIEVisionImage().integral( DestIEViewer1.IEBitmap.GetIEVisionImage() );
DestIEViewer1.Update();

ImageEnView1.IO.LoadFromFile( 'D:\im.jpg' );
DestIEViewer1.IEBitmap.Allocate( SourceIEViewer.IEBitmap.Width, SourceIEViewer.IEBitmap.Height );
DestIEViewer2.IEBitmap.Allocate( SourceIEViewer.IEBitmap.Width, SourceIEViewer.IEBitmap.Height );
DestIEViewer3.IEBitmap.Allocate( SourceIEViewer.IEBitmap.Width, SourceIEViewer.IEBitmap.Height );
SourceIEViewer.IEBitmap.GetIEVisionImage().integral( DestIEViewer1.IEBitmap.GetIEVisionImage(), DestIEViewer2.IEBitmap.GetIEVisionImage(), DestIEViewer3.IEBitmap.GetIEVisionImage() );
DestIEViewer1.Update();
DestIEViewer2.Update();
DestIEViewer3.Update();