Did I find the right examples for you? yes no

All Samples(14)  |  Call(4)  |  Derive(2)  |  Import(8)

src/t/r/tract_querier-HEAD/tract_querier/tract_math/operations.py   tract_querier(Download)
 
import nibabel
from nibabel.spatialimages import SpatialImage
 
from ..tractography import Tractography, tractography_to_file, tractography_from_files
def tract_generate_mask(tractography, image, file_output):
    image = nibabel.load(image)
    mask = tract_mask(image, tractography)
 
    return SpatialImage(mask, image.get_affine())
    prob_map /= len(tractographies)
 
    return SpatialImage(prob_map, image.get_affine()),
 
 
        prob_map = prob_map + new_prob_map - (prob_map * new_prob_map)
 
    return SpatialImage(prob_map, image.get_affine())
 
 

src/m/e/MedPy-0.1.0/medpy/utilities/nibabelu.py   MedPy(Download)
 
# third-party modules
from nibabel.spatialimages import SpatialImage 
 
# path changes
    @return: a NiBabel image for data of generic type SpatialImage
    """
    image = SpatialImage(data, None)
    image.update_header()
    return image

src/n/i/nibabel-HEAD/nibabel/freesurfer/mghformat.py   nibabel(Download)
 
from nibabel.volumeutils import (array_to_file, array_from_file, Recoder)
from nibabel.spatialimages import HeaderDataError, ImageFileError, SpatialImage
from nibabel.fileholders import FileHolder,  copy_file_map
from nibabel.filename_parser import types_filenames, TypesFilenamesError
class MGHImage(SpatialImage):
    header_class = MGHHeader
    files_types = (('image', '.mgh'),)
    _compressed_exts = (('.gz',))
 

src/n/i/nibabel-1.3.0/nibabel/freesurfer/mghformat.py   nibabel(Download)
from nibabel.volumeutils import allopen, array_to_file, array_from_file,  \
     Recoder
from nibabel.spatialimages import HeaderDataError, ImageFileError, SpatialImage
from nibabel.fileholders import FileHolder,  copy_file_map
from nibabel.filename_parser import types_filenames, TypesFilenamesError
class MGHImage(SpatialImage):
    header_class = MGHHeader
    files_types = (('image', '.mgh'),)
    _compressed_exts = (('.gz',))
 

src/n/i/nipy-0.3.0/nipy/labs/datasets/converters.py   nipy(Download)
 
import nibabel as nib
from nibabel.spatialimages import SpatialImage
 
from .volumes.volume_img import VolumeImg

src/p/y/pypreprocess-HEAD/pypreprocess/external/nipy_labs/datasets/converters.py   pypreprocess(Download)
 
import nibabel as nib
from nibabel.spatialimages import SpatialImage
 
from .volumes.volume_img import VolumeImg

src/p/y/PyMVPA-HEAD/mvpa2/misc/plot/lightbox.py   PyMVPA(Download)
if externals.exists('nibabel'):
    import nibabel as nb
    from nibabel.spatialimages import SpatialImage
else:
    class SpatialImage(object):

src/n/i/nibabel-HEAD/nibabel/tests/test_image_api.py   nibabel(Download)
                     Nifti1Pair, Nifti1Image, Nifti2Pair, Nifti2Image,
                     MGHImage, Minc1Image, Minc2Image)
from nibabel.spatialimages import SpatialImage
from nibabel.ecat import EcatImage