rk3399_arm_lvds/imgproc/cvimagex.cpp

32 lines
395 B
C++
Raw Normal View History

2024-03-05 03:46:18 +00:00
#include "cvimagex.h"
#include "opencv2/opencv.hpp"
CvImageX::CvImageX(MatPtr image)
{
this->image = image;
}
unsigned char *CvImageX::data()
{
return image->data;
}
int CvImageX::width()
{
return image->cols;
}
int CvImageX::height()
{
return image->rows;
}
int CvImageX::datasize()
{
return height() * image->step;
}
int CvImageX::type()
{
return image->type();
}