-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuffer.cpp
More file actions
43 lines (36 loc) · 774 Bytes
/
buffer.cpp
File metadata and controls
43 lines (36 loc) · 774 Bytes
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
34
35
36
37
38
39
40
41
42
43
#include <cmath>
#include <iostream>
#include <time.h>
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include "opencv2/video/tracking.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
using namespace std;
using namespace cv;
int main(int argc, char** argv){
Mat B[5];
B[0]=imread("10.png");
B[1]=imread("16.png");
B[2]=imread("37.png");
B[3]=imread("98.png");
B[4]=imread("all_4.png");
Mat newImage=imread("1.png");
int No=5;
for (int i=0;i<No-1;i++){
B[i]=B[i+1];
}
B[No-1]=newImage;
imshow("B[0]",B[0]);
waitKey(0);
imshow("B[1]",B[1]);
waitKey(0);
imshow("B[2]",B[2]);
waitKey(0);
imshow("B[3]",B[3]);
waitKey(0);
imshow("B[4]",B[4]);
waitKey(0);
return 0;
}