TIEVisionFeaturesDetector.detectKeyPoints
Declaration
function detectKeyPoints(image: TIEVisionImage; maxFeatures: int32_t = 500): TIEVisionVectorKeyPoint; safecall;
Description
Detects the keypoints (distinctive points, such as corners and blobs) of a single image, without matching. The strongest
maxFeatures keypoints are returned (0 for no limit).
Example
// Draw a circle at each SIFT keypoint
keypoints := IEVisionLib().createFeaturesDetector( ievFeatureSIFT ).detectKeyPoints( ImageEnView1.IEBitmap.GetIEVisionImage(), 200 );
for i := 0 to keypoints.size() - 1 do
begin
kp := keypoints.getKeyPoint( i );
ImageEnView1.IEBitmap.Canvas.Ellipse( Round( kp.pt.x - kp.size / 2 ), Round( kp.pt.y - kp.size / 2 ),
Round( kp.pt.x + kp.size / 2 ), Round( kp.pt.y + kp.size / 2 ));
end;
ImageEnView1.Update();
See Also
◼detect