ImageEn, unit ievision

TIEVisionImage.avgSdv

TIEVisionImage.avgSdv


Declaration

procedure avgSdv(out mean: TIEVisionScalar; out stdDev: TIEVisionScalar; mask: TIEVisionImage); overload; safecall;
procedure avgSdv(out mean: TIEVisionScalar; out stdDev: TIEVisionScalar); overload; safecall;


Description

Calculate the mean and standard deviation of image pixels.

Parameter Description
mean Outputs calculated mean
stdDev Output calculated standard deviation
mask Operation mask (processes only pixels with mask > 0)


Example

mean := ImageEnView1.IEBitmap.GetIEVisionImage().avgSdv( mean, stdev );
lblMean.Caption  := Format( 'Mean: %d,%d,%d,%d', [ Round(mean.val[0]), Round(mean.val[1]), Round(mean.val[2]), Round(mean.val[3]) ]);
lblStDev.Caption := Format( 'Std Dev: %d,%d,%d,%d', [ Round(stdev.val[0]), Round(stdev.val[1]), Round(stdev.val[2]), Round(stdev.val[3]) ]);