Skip to content

Commit

Permalink
Merge pull request #689 from karanphil/adding_doc_fodf_max_ventricles
Browse files Browse the repository at this point in the history
Adding explanations to scil_compute_fodf_max_in_ventricles
  • Loading branch information
arnaudbore authored Mar 9, 2023
2 parents 359e7a6 + a2e8ede commit bfe2b08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/scil_compute_fodf_max_in_ventricles.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ def get_ventricles_max_fodf(data, fa, md, zoom, args):
else:
max_number_of_voxels = 1000

# In the case of 2D-like data (3D data with one dimension size of 1), or
# a small 3D dataset, the full range of data is scanned.
if args.small_dims:
all_i = list(range(0, data.shape[0]))
all_j = list(range(0, data.shape[1]))
all_k = list(range(0, data.shape[2]))
# In the case of a normal 3D dataset, a window is created in the middle of
# the image to capture the ventricules. No need to scan the whole image.
else:
all_i = list(range(int(data.shape[0]/2) - step, int(data.shape[0]/2) + step))
all_j = list(range(int(data.shape[1]/2) - step, int(data.shape[1]/2) + step))
Expand Down

0 comments on commit bfe2b08

Please sign in to comment.