-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
34 lines (27 loc) · 817 Bytes
/
main.cpp
File metadata and controls
34 lines (27 loc) · 817 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
//
// main.cpp
// MAPS stitching with OpenCV
//
// Created by Даниил Назаров on 08.04.15.
// Copyright (c) 2015 Даниил Назаров. All rights reserved.
//
#include "ImageManager.h"
int main()
{
CImageManager test("/Users/Daniil/Desktop/Новая папка");
// так тоже работает
// test.upload("/Users/Daniil/Desktop/Новая папка");
vector<int> IDs = test.getAllImageID();
for( int i = 0; i < IDs.size(); ++i ) {
cout << IDs[i] << ' ';
}
cout << endl;
CImageInfo a = test.getImageInfo( 1 );
cout << a.getX() << ' ' << a.getY() <<
' ' << a.getHeight() << ' ' << a.getAngle() << endl;
CImage b = test.getImage( 3 );
b.zoom( 30 );
b.show();
Mat c = b.getMat();
return 0;
}