forked from cristi-zz/pi_2020_vc_base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOpenCVApplication.h
23 lines (13 loc) · 963 Bytes
/
OpenCVApplication.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef OPENCVAPP_H
#define OPENCVAPP_H
namespace tiger_detection {
void showHistogram(const std::string& name, std::vector<int> hist, const int hist_cols, const int hist_height);
std::vector<std::tuple<cv::Rect, cv::Mat, std::vector<double>>> createPatches(Mat src, Mat src_hue, int patchSize);
void showClusters(int iterations, int Kclusters, int patchSize, double(*heuristicFunc)(algorithms::Point p, algorithms::Point other));
void showBinnedHistogram(int numberOfBins);
void showImageFeatures();
cv::Mat_<Vec3b> computeTigerImageClusters(const cv::String fname, int iterations, int Kclusters, int patchSize, double(*heuristicFunc)(algorithms::Point p, algorithms::Point other));
std::vector<std::thread> threadedTestImages(int testNumber, int iterations, int Kclusters, int patchSize, double(*heuristicFunc)(algorithms::Point p, algorithms::Point other), std::string heuristicFuncName);
void randomizedTesting(int numberOfTests);
};
#endif