ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
main.cpp File Reference
#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
 

Macro Definition Documentation

◆ GLOBAL_TITLEBAR_HEIGHT

#define GLOBAL_TITLEBAR_HEIGHT   30

◆ IM_SHOW

#define IM_SHOW   true

◆ MY_DRAW

#define MY_DRAW   true

◆ PARTIAL_HALF

#define PARTIAL_HALF   (PARTIAL_WIDTH / 2)

◆ PARTIAL_HEIGHT

#define PARTIAL_HEIGHT   270

◆ PARTIAL_WIDTH

#define PARTIAL_WIDTH   (TOTAL_WIDTH / 2)

◆ TITLEBAR_HEIGHT

#define TITLEBAR_HEIGHT   20

◆ TITLEBAR_WIDTH

#define TITLEBAR_WIDTH   (TOTAL_WIDTH / 2)

◆ TOTAL_HEIGHT

#define TOTAL_HEIGHT   1080

◆ TOTAL_WIDTH

#define TOTAL_WIDTH   1920

Function Documentation

◆ drawPartDetect()

void drawPartDetect ( Mat  imgL,
Mat  imgR,
vector< KeyPoint > &  keyPointL,
vector< KeyPoint > &  keyPointR,
Mat &  descriptorL,
Mat &  descriptorR,
Mat &  totalResult,
bool  gpu 
)

◆ drawPartGlobalTitleBar()

void drawPartGlobalTitleBar ( Mat &  totalResult)

◆ drawPartMatch()

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 
)

◆ drawPartPanorama()

void drawPartPanorama ( Mat  imgL,
Mat  imgR,
vector< KeyPoint >  keyPointL,
vector< KeyPoint >  keyPointR,
vector< PAIR my_good_matches,
Mat &  totalResult,
bool  gpu 
)

◆ init_titlebar()

void init_titlebar ( )

◆ main()

int main ( int  argc,
char **  argv 
)

◆ statusBarInit()

void statusBarInit ( Mat &  part,
int  idx 
)

◆ statusBarUpdate()

void statusBarUpdate ( Mat &  part,
Mat &  totalResult,
int  idx,
int  portion,
bool  is_left 
)

Variable Documentation

◆ font

int font

◆ font_loc

Point font_loc

◆ global_elapsed_Time

std::chrono::duration<double> global_elapsed_Time[4]

◆ is_left

bool is_left = true

◆ partitionOffsetX

const int partitionOffsetX[6] = { 0, 0, 0, 960, 960, 960 }

◆ partitionOffsetY

◆ partM

Mat partM[6]

◆ state

int state = 0

◆ title

std::string title

◆ totalResult

Mat totalResult

◆ use_gpu

bool use_gpu = true