ImageEn, unit ievision

TIEVisionImage.findContours

TIEVisionImage.findContours


Declaration

function findContours(mode: TIEVisionContourRetrMode; method: TIEVisionContourApproxMethod; offset: TIEVisionPoint): TIEVisionVectorObjRef; safecall;


Description

Find contours in the current image.
The image must be ievUINT8, 1 channel. Result will be a vector of a vector of points, i.e. a 2D point array (TIEVisionVectorObjRef will contain TIEVision VectorPoint objects).

Parameter Description
mode Contour retrieval mode
method Contour approximation method
offset Optional offset by which every contour point is shifted


Demo

Demo  Demos\IEVision\TrackObjects_LowLevel\TrackObjects.dpr


Example

// Extract all contours
contours := backProj.findContours(ievEXTERNAL, ievCHAIN_APPROX_SIMPLE, IEVisionPoint(0, 0));