-
Notifications
You must be signed in to change notification settings - Fork 0
/
Camera.cpp
51 lines (38 loc) · 1.86 KB
/
Camera.cpp
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
43
44
45
46
47
48
49
50
51
#include "MORT_defines.h"
#include "MORT_includes.h"
void ParPrintReport(ParticleAnalysisReport* myReport)
{
// cout << " --- ParticleAnalysis Report" << endl;
/* cout << "\t imageHeight = " << myReport-> imageHeight
<< "\t \t imageWidth = " << myReport -> imageWidth << endl;
// cout << "imageTimeStamp" << myReport -> imageTimestamp << endl;
cout << "\t center_mass_x = " << myReport -> center_mass_x
<< "\t \t center_mass_y = " << myReport -> center_mass_y << endl;
*/
cout << "\t cm_x_normalized = " << myReport -> center_mass_x_normalized
<< " \t \t cm_y_normalized = " << myReport -> center_mass_y_normalized << endl;
cout << "\t particleArea = " << myReport -> particleArea
<< "\t \t particleToImagePercent = " << myReport -> particleToImagePercent << endl;
}
void ColPrintReport(ColorReport* myReport)
{
cout << " --- ColorReport " << endl;
cout << " \t particleHueMax = " << myReport->particleHueMax
<< " \t \t particleHueMin = " << myReport->particleHueMin << endl;
cout << "\t particleHueMean = " << myReport->particleHueMean
<< "\t \t particleSatMax = " << myReport->particleSatMax << endl;
cout << "\t particleSatMin = " << myReport->particleSatMin
<< "\t \t particleSatMean = " << myReport->particleSatMean << endl;
cout << "\t particleLumMax = " << myReport->particleLumMax
<< "\t \t particleLumMin = " << myReport->particleLumMin << endl;
cout << "\t particleLumMean = " << myReport->particleLumMean << endl;
}
void ThreshPrintReport(TrackingThreshold* myReport)
{
cout << "\t hueMin = " << myReport->hue.minValue
<< "\t \t hueMax = " << myReport->hue.maxValue << endl;
cout << "\t satMin = " << myReport->saturation.minValue
<< "\t \t satMax = " << myReport->saturation.maxValue << endl;
cout << "\t lumMin = " << myReport->luminance.minValue
<< "\t \t lumMax = " << myReport->luminance.maxValue << endl;
}