test
This commit is contained in:
@@ -77,9 +77,9 @@ int main(int argc, char* argv[])
|
||||
std::cout << std::endl;
|
||||
|
||||
// cv::Mat frame(video_frame.yres, video_frame.xres, CV_8UC4, video_frame.p_data);
|
||||
cv::Mat frame = cv::Mat::zeros(cv::Size(video_frame.xres, video_frame.yres), CV_8UC4);
|
||||
cv::Mat frame = cv::Mat::zeros(cv::Size(video_frame.xres-1, video_frame.yres), CV_8UC4);
|
||||
std::cout << std::endl;
|
||||
memcpy(frame.data, video_frame.p_data, video_frame.xres * video_frame.yres * 4);
|
||||
memcpy(frame.data, video_frame.p_data, (double)video_frame.xres * (double)video_frame.yres * (double)4);
|
||||
for (int i = 0; i < 100; i++){
|
||||
std::cout << frame.at<cv::Vec4b>(0, i) << " ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user