Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/p/y/pymeg-HEAD/gui/wx/wxapp.py   pymeg(Download)
        from mri import transform
        from scipy import ndimage
        from nifti import NiftiImage
        from numpy import float32, int16
        print "Event handler `run'"
        scaledf = int16((z.max()/f.max())*f*1000)
        print 'writing nifti output image'
        overlay = NiftiImage(int16(scaledf))
 
        overlay.setDescription(frame1.mr.description)

src/p/y/pymeg-HEAD/gui/wx/PyMEG.py   pymeg(Download)
        from mri import transform
        from scipy import ndimage
        from nifti import NiftiImage
        from numpy import float32, int16
        print "Event handler `run'"
        #scaledf = ((z.max()/f.max())*f*1000)
        print 'writing nifti output image'
        overlay = NiftiImage(int16(scaledf))
        #overlay = NiftiImage((scaledf))
 

src/p/y/pypreprocess-HEAD/pypreprocess/external/nipy_labs/datasets/tests/test_converters.py   pypreprocess(Download)
    def test_from_nifti():
        nim = nifti.NiftiImage(data_file)
        yield nose.tools.assert_equals, as_volume_img(data_file), \
                    as_volume_img(nim)
 

src/n/i/nipy-0.3.0/nipy/labs/datasets/tests/test_converters.py   nipy(Download)
    def test_from_nifti():
        nim = nifti.NiftiImage(data_file)
        yield nose.tools.assert_equals, as_volume_img(data_file), \
                    as_volume_img(nim)