Skip to content

Commit

Permalink
Clean up header files
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsuo committed Dec 13, 2015
1 parent 1fae7ad commit b8bc916
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions cudautils.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <intrin.h>
#endif

#include "cuda_runtime_api.h"

#define safeCall(err) __safeCall(err, __FILE__, __LINE__)
#define safeThreadSync() __safeThreadSync(__FILE__, __LINE__)
#define checkMsg(msg) __checkMsg(msg, __FILE__, __LINE__)
Expand Down
4 changes: 2 additions & 2 deletions extras/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#include "opencv2/core.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgcodecs.hpp"
#include <opencv2/imgproc/imgproc.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include "cuda_runtime_api.h"
#include "cudaSift.h"
#include "cudautils.h"
#include "cudaSift.h"

using namespace std;

Expand Down
5 changes: 2 additions & 3 deletions extras/homography.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#ifndef HOMOGRAPHY_H
#define HOMOGRAPHY_H

#include "cuda_runtime_api.h"
#include "cudaSift.h"
#include "cudautils.h"
#include <opencv2/core/core.hpp>
#include "cudautils.h"
#include "cudaSift.h"

double FindHomography(SiftData &data, float *homography, int *numMatches, int numLoops = 1000, float minScore = 0.85f, float maxAmbiguity = 0.95f, float thresh = 5.0f);

Expand Down
3 changes: 1 addition & 2 deletions extras/matching.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef MATCHING_H
#define MATCHING_H

#include "cuda_runtime_api.h"
#include "cudaSift.h"
#include "cudautils.h"
#include "cudaSift.h"

double MatchSiftData(SiftData &data1, SiftData &data2);

Expand Down
5 changes: 4 additions & 1 deletion extras/rigidTransform.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#ifndef RIGIDTRANSFORM_H
#define RIGIDTRANSFORM_H

#include "cuda_runtime_api.h"
#include <opencv2/core/core.hpp>
#include "cudautils.h"

// Not strictly necessary, but because all other extras also include, creates
// easier interface
#include "cudaSift.h"

void FindRigidTransform(const float *h_coord, int *h_randPts, float *Rt_relative, int *numInliers,
int numLoops, int numPts, float thresh2);

Expand Down

0 comments on commit b8bc916

Please sign in to comment.