-
Notifications
You must be signed in to change notification settings - Fork 0
/
TargetReport.h
42 lines (32 loc) · 1.4 KB
/
TargetReport.h
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
37
38
39
40
41
42
#ifndef TARGET_REPORT_H
#define TARGET_REPORT_H
#include "Vision/BinaryImage.h"
class TargetReport {
public:
struct Scores {
double rectangularity;
double aspectRatioInner;
double aspectRatioOuter;
double xEdge;
double yEdge;
};
TargetReport(BinaryImage * thresholdImage, BinaryImage * filteredImage);
virtual ~TargetReport();
void Generate();
vector<ParticleAnalysisReport> * GenerateParticleReport();
Scores * GenerateScores();
void OutputScores();
private:
TargetReport() {};
BinaryImage * thresholdImage;
BinaryImage * filteredImage;
vector<ParticleAnalysisReport> * reports;
Scores * scores;
double computeDistance(BinaryImage * image, ParticleAnalysisReport * report, bool outer);
double scoreAspectRatio(BinaryImage * image, ParticleAnalysisReport * report, bool outer);
bool scoreCompare(TargetReport::Scores scores, bool outer);
double scoreRectangularity(ParticleAnalysisReport * report);
double scoreXEdge(BinaryImage * image, ParticleAnalysisReport * report);
double scoreYEdge(BinaryImage * image, ParticleAnalysisReport * report);
};
#endif /* TARGET_REPORT_H */