ImageEn, unit imageenproc

TImageEnProc.Pixelize

TImageEnProc.Pixelize


Declaration

procedure Pixelize(Amount: Double = 0.02);


Description

Pixelize filter renders the selected area using large color blocks. It is very similar to the effect seen on television when obscuring faces.

Parameter Description
Amount A floating point value from 0 to 1 which specifies the size of the rectangular block in percentage (compared to the image size).

Original image:


Applying Pixelize(0.02) to the selected areas:



Note: This function is also available to the user in the Image Processing dialog


Demo

Demo  Demos\IEVision\NumberPlateBlurring\GetPlate.dpr


Example

// Pixelize selection (with blocks of 2% size)
ImageEnView1.Proc.Pixelize(0.02);