ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
SiftHelper.cpp File Reference
#include <opencv2/features2d.hpp>
#include <chrono>
#include "SiftHelper.hpp"
#include "homography.h"

Functions

void siftWrapper (const Mat &img, vector< KeyPoint > &keypoints, Mat &descriptor)
 
void oclSiftWrapper (const Mat &img, vector< KeyPoint > &keypoints, Mat &descriptor)
 
void match2img (const char *img1_p, const char *img2_p, Mat &output)
 
void oclMatch2img (const char *img1_p, const char *img2_p, Mat &output)
 
void drawKeypointsMine (Mat &img, vector< KeyPoint > keypoint, Mat &output)
 

Variables

Scalar randColor [25]
 

Function Documentation

◆ drawKeypointsMine()

void drawKeypointsMine ( Mat &  img,
vector< KeyPoint >  keypoint,
Mat &  output 
)

Draws keypoints

Parameters
imgSource image
keypointKeypoints from the source image
outputOutput image

◆ match2img()

void match2img ( const char *  img1,
const char *  img2,
Mat &  output 
)

Match 2 image (Native)

Parameters
img11st image's path
img22nd image's path
outputMatch result

◆ oclMatch2img()

void oclMatch2img ( const char *  img1_p,
const char *  img2_p,
Mat &  output 
)

Match 2 image (OpenCL)

Parameters
img1_p1st image's path
img2_p2nd image's path
outputMatch result

◆ oclSiftWrapper()

void oclSiftWrapper ( const Mat &  img,
vector< KeyPoint > &  keypoints,
Mat &  descriptor 
)

Wrapper function for extractSiftFeatures (OpenCL)

Parameters
imgSource image, rgb only
keypointsVector for store sift feature point
descriptorMat for store sift descriptor, each row for a keypoint

◆ siftWrapper()

void siftWrapper ( const Mat &  img,
vector< KeyPoint > &  keypoints,
Mat &  descriptor 
)

Wrapper function for extractSiftFeatures (Native)

Parameters
imgSource image, rgb only
keypointsVector for store sift feature point
descriptorMat for store sift descriptor, each row for a keypoint

Variable Documentation

◆ randColor

Scalar randColor[25]
Initial value:
=
{
Scalar(255, 0, 0), Scalar(0, 255, 0), Scalar(0, 0, 255), Scalar(255, 192, 203), Scalar(255, 0, 255),
Scalar(148, 0, 211), Scalar(75, 0, 130), Scalar(65, 105, 225), Scalar(110, 123, 139), Scalar(30, 144, 255),
Scalar(0, 191, 255), Scalar(0, 255, 255), Scalar(0, 199, 140), Scalar(60, 179, 113), Scalar(192, 255, 62),
Scalar(255, 255, 0), Scalar(238, 154, 0), Scalar(139, 89, 0), Scalar(142, 56, 138), Scalar(193, 193, 193),
Scalar(105, 89, 205), Scalar(34, 138, 39), Scalar(173, 255, 47), Scalar(255,246, 143), Scalar(41, 48, 55)
}