<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Converting .hdr/.img files to .nii</title>
	<atom:link href="http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/feed/" rel="self" type="application/rss+xml" />
	<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=converting-hdrimg-files-to-nii</link>
	<description>Yet another techno blog</description>
	<lastBuildDate>Wed, 09 May 2012 12:39:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: slash_boot</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-303</link>
		<dc:creator>slash_boot</dc:creator>
		<pubDate>Wed, 09 May 2012 12:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-303</guid>
		<description>If you have freesurfer installed I would run the following script in terminal in the directory where you have your .nii files:
#!/bin/bash
for infiles in `ls *.nii`
do
fname=`echo $infiles &#124; cut -d &#039;.&#039; -f1`;
mri_convert $infiles -ot nifti1 $fname;
done

Now if you have a 4D image, and have FSL installed, things are even easier. Suppose your 4D file is named series.nii, run the following script at the terminal:


#!/bin/bash
export FSLOUTPUTTYPE=ANALYZE 
fslsplit series.nii output_basename -t

Hope this helps!</description>
		<content:encoded><![CDATA[<p>If you have freesurfer installed I would run the following script in terminal in the directory where you have your .nii files:<br />
#!/bin/bash<br />
for infiles in `ls *.nii`<br />
do<br />
fname=`echo $infiles | cut -d &#8216;.&#8217; -f1`;<br />
mri_convert $infiles -ot nifti1 $fname;<br />
done</p>
<p>Now if you have a 4D image, and have FSL installed, things are even easier. Suppose your 4D file is named series.nii, run the following script at the terminal:</p>
<p>#!/bin/bash<br />
export FSLOUTPUTTYPE=ANALYZE<br />
fslsplit series.nii output_basename -t</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lena</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-302</link>
		<dc:creator>Lena</dc:creator>
		<pubDate>Thu, 26 Apr 2012 11:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-302</guid>
		<description>Hi there,

I was wondering how do I convert nii files into their respective hdr and img files?

many thanks :)</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I was wondering how do I convert nii files into their respective hdr and img files?</p>
<p>many thanks <img src='http://nuclear-imaging.info/site_content/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slash_boot</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-215</link>
		<dc:creator>slash_boot</dc:creator>
		<pubDate>Thu, 15 Sep 2011 13:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-215</guid>
		<description>You can use the .img file as the freesurfer input. Infact you can even get away without specifying the extensions.</description>
		<content:encoded><![CDATA[<p>You can use the .img file as the freesurfer input. Infact you can even get away without specifying the extensions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tony</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-213</link>
		<dc:creator>tony</dc:creator>
		<pubDate>Thu, 01 Sep 2011 00:58:53 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-213</guid>
		<description>If I want to use nifti hdr/img files as input, could you please tell me which of the following is right?

recon-all   –i  $FREESURFER_HOME/subjects/subj1/file.hdr   –subject  subj1   –all

or

recon-all   –i  $FREESURFER_HOME/subjects/subj1/file.img   –subject  subj1   –all</description>
		<content:encoded><![CDATA[<p>If I want to use nifti hdr/img files as input, could you please tell me which of the following is right?</p>
<p>recon-all   –i  $FREESURFER_HOME/subjects/subj1/file.hdr   –subject  subj1   –all</p>
<p>or</p>
<p>recon-all   –i  $FREESURFER_HOME/subjects/subj1/file.img   –subject  subj1   –all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slash_boot</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-205</link>
		<dc:creator>slash_boot</dc:creator>
		<pubDate>Mon, 11 Jul 2011 14:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-205</guid>
		<description>&lt;a href=&quot;#comment-204&quot; rel=&quot;nofollow&quot;&gt;@Jared &lt;/a&gt; 
One option is to use mri_convert, which is a tiny program within freesurfer. If you have freesurfer installed, you can specify the output type as analyze.</description>
		<content:encoded><![CDATA[<p><a href="#comment-204" rel="nofollow">@Jared </a><br />
One option is to use mri_convert, which is a tiny program within freesurfer. If you have freesurfer installed, you can specify the output type as analyze.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-204</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Mon, 11 Jul 2011 13:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-204</guid>
		<description>Hey,
Does anyone here know how to do the opposite of this, that is, to convert .nii files to .img/.hdr analyze files?</description>
		<content:encoded><![CDATA[<p>Hey,<br />
Does anyone here know how to do the opposite of this, that is, to convert .nii files to .img/.hdr analyze files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linda</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-199</link>
		<dc:creator>Linda</dc:creator>
		<pubDate>Wed, 04 May 2011 16:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-199</guid>
		<description>You can either use load_nii(file_name, volume_range) to load data portion by portion, or simply use expand_nii_scan(file_name) to expand 4-D file to 3-D files, then use load_nii(3D_file_name).</description>
		<content:encoded><![CDATA[<p>You can either use load_nii(file_name, volume_range) to load data portion by portion, or simply use expand_nii_scan(file_name) to expand 4-D file to 3-D files, then use load_nii(3D_file_name).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slashboot</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-158</link>
		<dc:creator>Slashboot</dc:creator>
		<pubDate>Fri, 16 Jul 2010 20:33:35 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-158</guid>
		<description>If it is a 4-D file with lots of volumes, load_nii can run out of memory.</description>
		<content:encoded><![CDATA[<p>If it is a 4-D file with lots of volumes, load_nii can run out of memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Qiuyun</title>
		<link>http://nuclear-imaging.info/site_content/2010/03/08/converting-hdrimg-files-to-nii/#comment-157</link>
		<dc:creator>Qiuyun</dc:creator>
		<pubDate>Fri, 16 Jul 2010 19:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://nuclear-imaging.info/site_content/?p=323#comment-157</guid>
		<description>Does anybody have out of memory problem with load_nii?</description>
		<content:encoded><![CDATA[<p>Does anybody have out of memory problem with load_nii?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

