何をお探しですか?

ハリスコーナー検出

Functional Guide | Reference: GetPointCount, GetPoint

//////////////////////////////////////////////////////////////////
// This code snippet shows how to retrieve corners' coordinates //
// by means of the Harris corner detector algorithm. //
//////////////////////////////////////////////////////////////////
// Image constructor
EImageBW8 srcImage;
// ...
// Harris corner detector
EHarrisCornerDetector harris;
EHarrisInterestPoints interestPoints;
harris.SetIntegrationScale(2.f);
// Perform the corner detection
harris.Apply(srcImage, interestPoints);
// Retrieve the number of corners
unsigned int index = interestPoints.GetPointCount();
// Retrieve the first corner coordinates
EPoint point = interestPoints.GetPoint(0);
float x = point.GetX();
float y = point.GetY();
'//////////////////////////////////////////////////////////////////
'// This code snippet shows how to retrieve corners' coordinates //
'// by means of the Harris corner detector algorithm. //
'//////////////////////////////////////////////////////////////////
' EasyImage context constructor
Dim EasyImage As New EasyImage
' Image constructor
Dim srcImage As New EImageBW8
' ...
' Harris corner detector
Dim harris As New EHarrisCornerDetector
Dim interestPoints As New EHarrisInterestPoints
harris.IntegrationScale = 2#
' Perform the corner detection
harris.Apply srcImage, interestPoints
' Retrieve the number of corners
Dim index As Single
index = interestPoints.PointCount
' Retrieve the first corner coordinates
Dim x As Single
Dim y As Single
Dim point As EPoint
Set point = interestPoints.GetPoint(0)
x = point.x
y = point.y
//////////////////////////////////////////////////////////////////
// This code snippet shows how to retrieve corners' coordinates //
// by means of the Harris corner detector algorithm. //
//////////////////////////////////////////////////////////////////
// Image constructor
EImageBW8 srcImage= new EImageBW8();
// ...
// Harris corner detector
EHarrisCornerDetector harris= new EHarrisCornerDetector();
EHarrisInterestPoints interestPoints= new EHarrisInterestPoints();
harris.IntegrationScale= 2.0f;
// Perform the corner detection
harris.Apply(srcImage, interestPoints);
// Retrieve the number of corners
int index = interestPoints.PointCount;
// Retrieve the first corner coordinates
EPoint point = interestPoints.GetPoint(0);
float x = point.X;
float y = point.Y;

機能ガイドで参照してください

レファレンスで参照してください

PointCount

GetPoint

どのAPIを表示しますか?

© 西暦 EURESYS s.a.  -  このドキュメントについて  -  Open Source Licenses  -  Open eVision 2.6.1.1110