From 921e6694ae6a28728ab6ba6e2a31198d7d36e817 Mon Sep 17 00:00:00 2001 From: Pericles Telemachou Date: Thu, 7 Dec 2023 10:11:35 +1100 Subject: [PATCH] Prepend "Feature2D" prefix to component interfaces of Feature2D --- features2d.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/features2d.go b/features2d.go index 1269dacd..02bb67ad 100644 --- a/features2d.go +++ b/features2d.go @@ -12,23 +12,23 @@ import ( "unsafe" ) -type Detector interface { +type Feature2DDetector interface { Detect(src Mat) []KeyPoint } -type Computer interface { +type Feature2DComputer interface { Compute(src Mat, mask Mat, kps []KeyPoint) ([]KeyPoint, Mat) } -type DetectComputer interface { +type Feature2DDetectComputer interface { DetectAndCompute(src Mat, mask Mat) ([]KeyPoint, Mat) } type Feature2D interface { io.Closer - Detector - Computer - DetectComputer + Feature2DDetector + Feature2DComputer + Feature2DDetectComputer } // AKAZE is a wrapper around the cv::AKAZE algorithm.