"""
    .. figure:: before_registration.png
       :align: center
    
       **Before bundle registration**.
    """

    show_both_bundles([s_tract_aligned, t_tract],
                      colors=[fvtk.colors.orange, fvtk.colors.red],
                      show=True,
                      fname='after_registration.png')

    """
    .. figure:: after_registration.png
       :align: center
    
       **After bundle registration**.
    
    .. [Garyfallidis14] Garyfallidis et. al, "Direct native-space fiber bundle
                        alignment for group comparisons", ISMRM, 2014.
    
    """
if cal:
    from common_functions import streamlines_to_vol
    vol1, vol2, intersec = streamlines_to_vol(s_tract_aligned, t_tract, [128,128,70], disp=False)
    from common_functions import volumn_intersec
    cou1, cou2, inter_cou = volumn_intersec(s_tract_aligned, t_tract, [128,128,70], [1,1,1], disp=True)

Exemplo n.º 2
0
                  fname='before_registration.png')


"""
.. figure:: before_registration.png
   :align: center

   **Before bundle registration**.
"""

show_both_bundles([cb_subj1, cb_subj2_aligned],
                  colors=[fvtk.colors.orange, fvtk.colors.red],
                  show=True,
                  fname='after_registration.png')

"""
.. figure:: after_registration.png
   :align: center

   **After bundle registration**.

.. [Garyfallidis14] Garyfallidis et. al, "Direct native-space fiber bundle
                    alignment for group comparisons", ISMRM, 2014.

"""
from common_functions import streamlines_to_vol
vol1, vol2, intersec = streamlines_to_vol(cb_subj1, cb_subj2_aligned, [128,128,70], disp=False)
from common_functions import volumn_intersec
cou1, cou2, inter_cou = volumn_intersec(cb_subj1, cb_subj2_aligned, [128,128,70], [1,1,1], disp=True)