Skip to content

Commit

Permalink
cosmetic variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
cfhammill committed Jun 10, 2016
1 parent d42c5f4 commit eaf4122
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/minc_apply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,18 @@ List rcpp_minc_apply(CharacterVector filenames,
voxel_pos = (int)(sizes[1] * sizes[2] * (voxel_offsets[0] + x) +
sizes[2] * (voxel_offsets[1] + y) +
(voxel_offsets[2] + z));

int slab_pos = x * hyperslab_dims[1] * hyperslab_dims[2] +
y * hyperslab_dims[2] +
z;

for(int xvol = 0; xvol < nvols; ++xvol){
//ugly indexing into 2nd-D of slab buffer
voxel_values[xvol] = slab_buffer[xvol][x * hyperslab_dims[1] * hyperslab_dims[2] +
y * hyperslab_dims[2] +
z];
voxel_values[xvol] = slab_buffer[xvol][slab_pos];
}

double mask_val =
mask_buffer[x * hyperslab_dims[1] * hyperslab_dims[2] +
y * hyperslab_dims[2] +
z];
mask_buffer[slab_pos];

if((!use_mask) ||
(mask_val > (mask_lower_val - .5) &&
Expand Down

0 comments on commit eaf4122

Please sign in to comment.