MCPcopy Index your code
hub / github.com/mne-tools/mne-python / _debug_img

Function _debug_img

mne/morph.py:775–787  ·  view source on GitHub ↗
(data, affine, title, shape=None)

Source from the content-addressed store, hash-verified

773
774
775def _debug_img(data, affine, title, shape=None):
776 # Uncomment these lines for debugging help with volume morph:
777 #
778 # import nibabel as nib
779 # if sparse.issparse(data):
780 # data = data.toarray()
781 # data = np.asarray(data)
782 # if shape is not None:
783 # data = np.reshape(data, shape, order='F')
784 # _slicers.append(nib.viewers.OrthoSlicer3D(
785 # data, affine, axes=None, title=title))
786 # _slicers[-1].figs[0].suptitle(title, color='r')
787 return
788
789
790def _check_zooms(mri_from, zooms, zooms_src_to):

Callers 1

_morph_volsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected