-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathresize.cpp
33 lines (24 loc) · 1.13 KB
/
resize.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//#####################################################################################//
//#####################################################################################//
//#####################################################################################//
//# Please include the Github Repositories web URL if you are using this material. #//
//#####################################################################################//
//#####################################################################################//
//#####################################################################################//
#include "opencv2/opencv.hpp"
#include <iostream>
#include "opencv2/cudaarithm.hpp"
#include "opencv2/cudafilters.hpp"
#include "opencv2/cudaimgproc.hpp"
#include "opencv2/cudawarping.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "resize.h"
using namespace std;
using namespace cv;
void resizeframe::resize_frame(cuda::GpuMat& src, cuda::GpuMat& dst)
{
int resize_height = 360;
int resize_weidght = 640;
cuda::resize(src, dst, Size(resize_weidght, resize_height));
}