Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to FBC measures documentation #1094

Merged
merged 2 commits into from
Jul 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 4 additions & 10 deletions doc/examples/fiber_to_bundle_coherence.py
Expand Up @@ -40,12 +40,12 @@
in DIPY.
"""
import numpy as np
import os.path as op
import nibabel as nib
import dipy.core.optimize as opt
from dipy.data import (read_stanford_labels, fetch_stanford_t1,
read_stanford_t1)

# Fix seed
np.random.seed(1)

# Read data
hardi_img, gtab, labels_img = read_stanford_labels()
data = hardi_img.get_data()
Expand Down Expand Up @@ -136,8 +136,6 @@

# Perform tracking using Local Tracking
from dipy.tracking.local import LocalTracking
from dipy.viz import fvtk
from dipy.viz.colormap import line_colors

streamlines = LocalTracking(prob_dg, classifier, seeds, affine, step_size=.5)

Expand Down Expand Up @@ -190,9 +188,7 @@

# Apply FBC measures
from dipy.tracking.fbcmeasures import FBCMeasures
from time import time

a = time()
fbc = FBCMeasures(streamlines, k)

"""
Expand All @@ -218,9 +214,7 @@
"""

# Visualize the results
from dipy.viz import fvtk
from dipy.viz.colormap import line_colors
from dipy.viz import window, actor
from dipy.viz import fvtk, actor

# Create renderer
ren = fvtk.ren()
Expand Down