1 #ifndef CUSTOMPROFILE_H
2 #define CUSTOMPROFILE_H
5 #include <unordered_map>
6 #include <opencv2/opencv.hpp>
12 #include <kll_sketch.hpp>
28 CustomProfile(
const std::string& conf_path,
int save_interval);
40 int profile(
const std::string& name,
float value);
47 void registerStatistics(
const std::string& name);
58 std::map<std::string, std::vector<std::string>> customConfig;
61 std::string statSavepath;
62 std::string dataSavepath;
68 std::unordered_map<int, distributionBox*> custom_stat_;
Class for computing and managing various image statistics.
Definition: customprofile.h:20
CustomProfile(const std::string &conf_path, int save_interval)
Constructor to initialize CustomProfile object.
Definition: customprofile.cpp:19
int profile(const std::string &name, float value)
Computes and logs selected statistics.
Definition: customprofile.cpp:57
~CustomProfile()
Destructor to clean up resources.
Definition: customprofile.cpp:41