|
Lens AI Profiler Cpp
|
Class for computing and managing various image statistics. More...
Public Member Functions | |
| CustomProfile (const std::string &conf_path, int save_interval) | |
| Constructor to initialize CustomProfile object. More... | |
| ~CustomProfile () | |
| Destructor to clean up resources. | |
| int | profile (const std::string &name, float value) |
| Computes and logs selected statistics. More... | |
Class for computing and managing various image statistics.
Class to manage the resources and freeing memory.
Constructor to initialize ImageProfile object
| conf_path | Path to configuration file |
| save_interval | Interval for saving statistics |
| CustomProfile::CustomProfile | ( | const std::string & | conf_path, |
| int | save_interval | ||
| ) |
Constructor to initialize CustomProfile object.
| conf_path | Path to configuration file |
| save_interval | Interval for saving statistics |
| channels | Number of channels in the image |
| int CustomProfile::profile | ( | const std::string & | name, |
| float | value | ||
| ) |
Computes and logs selected statistics.
Computes and logs selected image statistics.
| name | Name of the statistic to profile |
| value | Value to update in the statistic |
| img | OpenCV image matrix |
| save_sample | Flag indicating whether to save samples exceeding thresholds |