Skip to content

Commit

Permalink
ENH: Implement surface area in C
Browse files Browse the repository at this point in the history
Calculates surface area in C. If module exposing the extension functionality cannot be loaded, or if it is disabled, python implementation is used instead.
  • Loading branch information
JoostJM committed Nov 22, 2016
1 parent 005d4aa commit c39130c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions radiomics/src/cshape.c
@@ -1,4 +1,3 @@
#include <python.h>
#include "cmatrices.h"
#include <math.h>

Expand Down Expand Up @@ -218,11 +217,6 @@ double calculate_surfacearea(char *mask, int *size, double *spacing)
int interpolate(double *vertEntry, int a1, int a2, double *spacing)
{
int d;
/*int p1d[3];
p1d[0] = p1 / (size[1] * size[2]);
p1d[1] = (p1 % (size[2])) / size[1];
p1d[2] = p1 % (size[1] * size[2]);*/

for (d = 0; d < 3; d++)
{
Expand Down

0 comments on commit c39130c

Please sign in to comment.