![]() |
ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
|
#include <iostream>
#include <chrono>
#include "opencv2/imgproc.hpp"
#include "opencv2/core.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/xfeatures2d.hpp"
#include "SiftHelper.hpp"
#include "ocl_SIFT.hpp"
#include "homography.h"
#include "gui.hpp"
Macros | |
#define | MY_DRAW true |
#define | IM_SHOW true |
#define | TOTAL_WIDTH 1920 |
#define | TOTAL_HEIGHT 1080 |
#define | PARTIAL_WIDTH (TOTAL_WIDTH / 2) |
#define | PARTIAL_HEIGHT 270 |
#define | PARTIAL_HALF (PARTIAL_WIDTH / 2) |
#define | TITLEBAR_WIDTH (TOTAL_WIDTH / 2) |
#define | TITLEBAR_HEIGHT 20 |
#define | GLOBAL_TITLEBAR_HEIGHT 30 |
Functions | |
void | init_titlebar () |
void | statusBarInit (Mat &part, int idx) |
void | statusBarUpdate (Mat &part, Mat &totalResult, int idx, int portion, bool is_left) |
void | drawPartGlobalTitleBar (Mat &totalResult) |
void | drawPartDetect (Mat imgL, Mat imgR, vector< KeyPoint > &keyPointL, vector< KeyPoint > &keyPointR, Mat &descriptorL, Mat &descriptorR, Mat &totalResult, bool gpu) |
void | drawPartMatch (Mat imgL, Mat imgR, vector< KeyPoint > &keyPointL, vector< KeyPoint > &keyPointR, Mat descriptorL, Mat descriptorR, vector< PAIR > &my_good_matches, Mat &totalResult, bool gpu) |
void | drawPartPanorama (Mat imgL, Mat imgR, vector< KeyPoint > keyPointL, vector< KeyPoint > keyPointR, vector< PAIR > my_good_matches, Mat &totalResult, bool gpu) |
int | main (int argc, char **argv) |
Variables | |
bool | use_gpu = true |
int | state = 0 |
std::chrono::duration< double > | global_elapsed_Time [4] |
Mat | totalResult |
Mat | partM [6] |
const int | partitionOffsetX [6] = { 0, 0, 0, 960, 960, 960 } |
const int | partitionOffsetY [6] = { 0 + GLOBAL_TITLEBAR_HEIGHT, 270 + GLOBAL_TITLEBAR_HEIGHT, 540 + GLOBAL_TITLEBAR_HEIGHT, 0 + GLOBAL_TITLEBAR_HEIGHT, 270 + GLOBAL_TITLEBAR_HEIGHT, 540 + GLOBAL_TITLEBAR_HEIGHT } |
int | font |
Point | font_loc |
std::string | title |
bool | is_left = true |
#define GLOBAL_TITLEBAR_HEIGHT 30 |
#define IM_SHOW true |
#define MY_DRAW true |
#define PARTIAL_HALF (PARTIAL_WIDTH / 2) |
#define PARTIAL_HEIGHT 270 |
#define PARTIAL_WIDTH (TOTAL_WIDTH / 2) |
#define TITLEBAR_HEIGHT 20 |
#define TITLEBAR_WIDTH (TOTAL_WIDTH / 2) |
#define TOTAL_HEIGHT 1080 |
#define TOTAL_WIDTH 1920 |
void drawPartDetect | ( | Mat | imgL, |
Mat | imgR, | ||
vector< KeyPoint > & | keyPointL, | ||
vector< KeyPoint > & | keyPointR, | ||
Mat & | descriptorL, | ||
Mat & | descriptorR, | ||
Mat & | totalResult, | ||
bool | gpu | ||
) |
void drawPartGlobalTitleBar | ( | Mat & | totalResult | ) |
void drawPartMatch | ( | Mat | imgL, |
Mat | imgR, | ||
vector< KeyPoint > & | keyPointL, | ||
vector< KeyPoint > & | keyPointR, | ||
Mat | descriptorL, | ||
Mat | descriptorR, | ||
vector< PAIR > & | my_good_matches, | ||
Mat & | totalResult, | ||
bool | gpu | ||
) |
void drawPartPanorama | ( | Mat | imgL, |
Mat | imgR, | ||
vector< KeyPoint > | keyPointL, | ||
vector< KeyPoint > | keyPointR, | ||
vector< PAIR > | my_good_matches, | ||
Mat & | totalResult, | ||
bool | gpu | ||
) |
void init_titlebar | ( | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
void statusBarInit | ( | Mat & | part, |
int | idx | ||
) |
void statusBarUpdate | ( | Mat & | part, |
Mat & | totalResult, | ||
int | idx, | ||
int | portion, | ||
bool | is_left | ||
) |
int font |
Point font_loc |
std::chrono::duration<double> global_elapsed_Time[4] |
bool is_left = true |
const int partitionOffsetX[6] = { 0, 0, 0, 960, 960, 960 } |
const int partitionOffsetY[6] = { 0 + GLOBAL_TITLEBAR_HEIGHT, 270 + GLOBAL_TITLEBAR_HEIGHT, 540 + GLOBAL_TITLEBAR_HEIGHT, 0 + GLOBAL_TITLEBAR_HEIGHT, 270 + GLOBAL_TITLEBAR_HEIGHT, 540 + GLOBAL_TITLEBAR_HEIGHT } |
Mat partM[6] |
int state = 0 |
std::string title |
Mat totalResult |
bool use_gpu = true |