Skip to content

Commit

Permalink
fix C99 error
Browse files Browse the repository at this point in the history
  • Loading branch information
ntraut committed Feb 15, 2018
1 parent 89885f6 commit 209e605
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2559,6 +2559,7 @@ int saveMaskedVolume_Text(char *path, char *maskpath){
AnalyzeHeader *mask_hdr;
char *mask_img;
int mask_dim[4];
int i, j, k;

loadVolume(maskpath,&mask_hdr,&mask_img);
mask_dim[0]=mask_hdr->dim[1];
Expand All @@ -2571,9 +2572,9 @@ int saveMaskedVolume_Text(char *path, char *maskpath){

printf("volume: min:%f max:%f \n",min(),max());

for(int i=0;i<dim[0];i++)
for(int j=0;j<dim[1];j++)
for(int k=0;k<dim[2];k++){
for(i=0;i<dim[0];i++)
for(j=0;j<dim[1];j++)
for(k=0;k<dim[2];k++){
int mask_i = k*mask_dim[1]*mask_dim[0]+j*mask_dim[0]+i;
if (getValue2(mask_i,mask_hdr, mask_img)!=0 ){ //masking
fprintf(f, "%f ",getValue(i, j, k));
Expand Down

0 comments on commit 209e605

Please sign in to comment.