| 773 | |
| 774 | |
| 775 | def _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 | |
| 790 | def _check_zooms(mri_from, zooms, zooms_src_to): |