-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMetricCalculator.cs
36 lines (33 loc) · 1.02 KB
/
MetricCalculator.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using OpenCvSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Multimedia
{
public struct KeyPointDetectorObject
{
readonly public string Name { get; }
readonly public Feature2D Detector { get; }
public KeyPointDetectorObject(string name, Feature2D detector)
{
Name = name;
Detector = detector;
}
}
public class MetricCalculator
{
public string Name { get; }
public string Unit { get; }
//public KeyPointDetectorObject KeyPointDetector { get; }
public Func<string, Feature2D?, List<List<Point2f>>?, (double, List<List<Point2f>>)> Compute { get; }
public MetricCalculator(string name, Func<string, Feature2D?, List<List<Point2f>>, (double, List<List<Point2f>>)> computer, string unit)
{
Name = name;
//KeyPointDetector = detector;
Compute = computer;
Unit = unit;
}
}
}