Class LiteMat
- Defined in File lite_mat.h 
Class Documentation
- 
class LiteMat
- Basic class storing the image data. - Public Functions - 
LiteMat()
- Constructor. 
 - 
explicit LiteMat(int width, LDataType data_type = LDataType::UINT8)
- Function to create an LiteMat object. - Parameters
- width – [in] The width of the input object. 
- data_type – [in] The data type of the input object. 
 
 
 - 
LiteMat(int width, int height, LDataType data_type = LDataType::UINT8)
- Function to create an LiteMat object. - Parameters
- width – [in] The width of the input object. 
- height – [in] The height of the input object. 
- data_type – [in] The data type of the input object. 
 
 
 - 
LiteMat(int width, int height, void *p_data, LDataType data_type = LDataType::UINT8)
- Function to create an LiteMat object. - Parameters
- width – [in] The width of the input object. 
- height – [in] The height of the input object. 
- p_data – [in] The pointer data of the input object. 
- data_type – [in] The data type of the input object. 
 
 
 - 
LiteMat(int width, int height, int channel, LDataType data_type = LDataType::UINT8)
- Function to create an LiteMat object. - Parameters
- width – [in] The width of the input object. 
- height – [in] The height of the input object. 
- channel – [in] The channel of the input object. 
- data_type – [in] The data type of the input object. 
 
 
 - 
LiteMat(int width, int height, int channel, void *p_data, LDataType data_type = LDataType::UINT8)
- Function to create an LiteMat object. - Parameters
- width – [in] The width of the input object. 
- height – [in] The height of the input object. 
- channel – [in] The channel of the input object. 
- p_data – [in] The pointer data of the input object. 
- data_type – [in] The data type of the input object. 
 
 
 - 
~LiteMat()
- Destructor. 
 - 
void Init(int width, LDataType data_type = LDataType::UINT8)
- Perform Init operation on given LiteMat. - Parameters
- width – [in] Set width for given LiteMat. 
- data_type – [in] Set data type for given LiteMat. 
 
 
 - 
void Init(int width, int height, LDataType data_type = LDataType::UINT8)
- Perform Init operation on given LiteMat. - Parameters
- width – [in] Set width for given LiteMat. 
- height – [in] Set height for given LiteMat. 
- data_type – [in] Set data type for given LiteMat. 
 
 
 - 
void Init(int width, int height, void *p_data, LDataType data_type = LDataType::UINT8)
- Perform Init operation on given LiteMat. - Parameters
- width – [in] Set width for given LiteMat. 
- height – [in] Set height for given LiteMat. 
- p_data – [in] Set pointer data for given LiteMat. 
- data_type – [in] Set data type for given LiteMat. 
 
 
 - 
void Init(int width, int height, int channel, const LDataType &data_type = LDataType::UINT8, bool align_memory = true)
- Perform Init operation on given LiteMat. - Parameters
- width – [in] Set width for given LiteMat. 
- height – [in] Set height for given LiteMat. 
- channel – [in] Set channel for given LiteMat. 
- data_type – [in] Set data type for given LiteMat. 
- align_memory – [in] Whether malloc align memory or not, default is true, which is better for doing acceleration. 
 
 
 - 
void Init(int width, int height, int channel, void *p_data, LDataType data_type = LDataType::UINT8)
- Perform Init operation on given LiteMat. - Parameters
- width – [in] Set width for given LiteMat. 
- height – [in] Set height for given LiteMat. 
- channel – [in] Set channel for given LiteMat. 
- p_data – [in] Set pointer data for given LiteMat. 
- data_type – [in] Set data type for given LiteMat. 
 
 
 
- 
LiteMat()