Lens AI Profiler Cpp
Public Member Functions | List of all members
CustomProfile Class Reference

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...
 

Detailed Description

Class for computing and managing various image statistics.

Class to manage the resources and freeing memory.

Constructor to initialize ImageProfile object

Parameters
conf_pathPath to configuration file
save_intervalInterval for saving statistics

Constructor & Destructor Documentation

◆ CustomProfile()

CustomProfile::CustomProfile ( const std::string &  conf_path,
int  save_interval 
)

Constructor to initialize CustomProfile object.

Parameters
conf_pathPath to configuration file
save_intervalInterval for saving statistics
channelsNumber of channels in the image

Member Function Documentation

◆ profile()

int CustomProfile::profile ( const std::string &  name,
float  value 
)

Computes and logs selected statistics.

Computes and logs selected image statistics.

Parameters
nameName of the statistic to profile
valueValue to update in the statistic
Returns
1 on success, error code on failure
Parameters
imgOpenCV image matrix
save_sampleFlag indicating whether to save samples exceeding thresholds
Returns
1 on success, error code on failure

The documentation for this class was generated from the following files: