mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-11 23:42:45 +08:00
unwrap: Use constants from math.h in C code.
This commit is contained in:
@@ -17,13 +17,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#define PI M_PI
|
||||
#define TWOPI (2 * M_PI)
|
||||
|
||||
//TODO: remove global variables
|
||||
//TODO: make thresholds independent
|
||||
|
||||
static float PI = 3.141592654f;
|
||||
static float TWOPI = 6.283185307f;
|
||||
|
||||
#define NOMASK 0
|
||||
#define MASK 1
|
||||
|
||||
|
||||
@@ -19,9 +19,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
static float PI = 3.141592654f;
|
||||
static float TWOPI = 6.283185307f;
|
||||
#define PI M_PI
|
||||
#define TWOPI (2 * M_PI)
|
||||
|
||||
#define NOMASK 0
|
||||
#define MASK 1
|
||||
|
||||
Reference in New Issue
Block a user