Did I find the right examples for you? yes no

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

src/n/e/neurosynth-0.3.1/neurosynth/base/imageutils.py   neurosynth(Download)
        return result
    else:
        img = nifti1.Nifti1Image(result, None, img.get_header())
        img.to_filename(save)
 

src/n/e/neurosynth-HEAD/neurosynth/base/imageutils.py   neurosynth(Download)
        return result
    else:
        img = nifti1.Nifti1Image(result, None, img.get_header())
        img.to_filename(save)
 

src/d/c/dcmstack-HEAD/src/dcmstack/dcmstack.py   dcmstack(Download)
    aff[:3, 3] = [iop[1], iop[0], iop[2]]
    nii_img = nb.nifti1.Nifti1Image(data, aff)
    hdr = nii_img.get_header()
    hdr.set_xyzt_units('mm', 'sec')
    dim_info = {'freq' : None, 

src/d/c/dcmstack-HEAD/src/dcmstack/dcmmeta.py   dcmstack(Download)
        #Create the nifti image and set header data
        nii_img = nb.nifti1.Nifti1Image(data, affine)
        hdr = nii_img.get_header()
        hdr.set_xyzt_units('mm', 'sec')
        dim_info = {'freq' : None,