-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07db050
commit 16f58e4
Showing
7 changed files
with
303 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* common.h | ||
* | ||
* Created on: Jun 20, 2017 | ||
* Author: kbmod-usr | ||
*/ | ||
|
||
#ifndef COMMON_H_ | ||
#define COMMON_H_ | ||
|
||
#ifdef HAVE_CUDA | ||
constexpr bool HAVE_GPU = true; | ||
#else | ||
constexpr bool HAVE_GPU = false; | ||
#endif | ||
|
||
constexpr float NO_DATA = -9999.0; | ||
constexpr unsigned int MAX_KERNEL_RADIUS = 15; | ||
|
||
// The position (in pixels) on an image. | ||
struct pixelPos { | ||
float x; | ||
float y; | ||
}; | ||
|
||
// Basic image moments use for analysis. | ||
struct imageMoments { | ||
float m00; | ||
float m01; | ||
float m10; | ||
float m11; | ||
float m02; | ||
float m20; | ||
}; | ||
|
||
#endif /* COMMON_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.