<div dir="ltr">Hello all,<div><br></div><div>Is there a way to read an image with SimpleITK+Python from a file object (as opposed to a string/filename)? I cannot find anything in the Doxygen or otherwise to do this.</div><div><br></div><div>Here is a toy example:</div><div><br></div><div><div>    import cStringIO</div><div>    import SimpleITK as sitk</div><div>    dcmfn="test.dcm"</div><div>    with open(dcmfn,'rb') as data:</div><div>        body = data.read()</div><div>        strio=cStringIO.StringIO(body)</div><div>        img=sitk.ReadImage(strio)</div><div>        strio.close()</div></div><div><br></div><div><br></div><div><br></div><div>--Jameson</div></div>