<?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: Getting Started with Python-InsightToolkit</title>
	<atom:link href="http://www.paulnovo.org/wrapitktutorial/feed" rel="self" type="application/rss+xml" />
	<link>http://www.paulnovo.org/wrapitktutorial</link>
	<description>paul novotny&#039;s internet home</description>
	<lastBuildDate>Fri, 25 Jun 2010 15:41:51 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: paul</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-93</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Mon, 03 May 2010 19:18:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-93</guid>
		<description>I am not sure what datatype met_short is? Are you referring to the datatype names used in Meta Images? I am pretty sure that a met_short corresponds to a normal signed short for meta images. So you would just need to use the following:

image_type = itk.Image[itk.SS, 3]</description>
		<content:encoded><![CDATA[<p>I am not sure what datatype met_short is? Are you referring to the datatype names used in Meta Images? I am pretty sure that a met_short corresponds to a normal signed short for meta images. So you would just need to use the following:</p>
<p>image_type = itk.Image[itk.SS, 3]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paolo</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-92</link>
		<dc:creator>Paolo</dc:creator>
		<pubDate>Sat, 01 May 2010 16:56:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-92</guid>
		<description>I&#039;d like to use images of type met_short but if I write
image_type = itk.Image[itk.MS, 3]
it dosen&#039;t work.
What&#039;s the right command?
Thank you very much.</description>
		<content:encoded><![CDATA[<p>I&#8217;d like to use images of type met_short but if I write<br />
image_type = itk.Image[itk.MS, 3]<br />
it dosen&#8217;t work.<br />
What&#8217;s the right command?<br />
Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-85</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Fri, 26 Feb 2010 13:09:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-85</guid>
		<description>spacing isn&#039;t a python array. To get the values, use GetElement:
  spacing = reader.GetOutput().GetSpacing()  
  spacing_x = spacing.GetElement(0)
  spacing_y = spacing.GetElement(1)
  spacing_z = spacing.GetElement(2)</description>
		<content:encoded><![CDATA[<p>spacing isn&#8217;t a python array. To get the values, use GetElement:<br />
  spacing = reader.GetOutput().GetSpacing()<br />
  spacing_x = spacing.GetElement(0)<br />
  spacing_y = spacing.GetElement(1)<br />
  spacing_z = spacing.GetElement(2)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: francois</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-84</link>
		<dc:creator>francois</dc:creator>
		<pubDate>Fri, 26 Feb 2010 08:58:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-84</guid>
		<description>To set the spacing of the output image using the input image, you can do such thing :
spacing = reader.GetOutput().GetSpacing()
output_image.SetSpacing(spacing)

However, I have some trouble to have access to the spacing values !

spacing[0] does not work for instance :
TypeError: &#039;itkVectorD3Ptr&#039; object does not support indexing

Do you know how to do this ?</description>
		<content:encoded><![CDATA[<p>To set the spacing of the output image using the input image, you can do such thing :<br />
spacing = reader.GetOutput().GetSpacing()<br />
output_image.SetSpacing(spacing)</p>
<p>However, I have some trouble to have access to the spacing values !</p>
<p>spacing[0] does not work for instance :<br />
TypeError: &#8216;itkVectorD3Ptr&#8217; object does not support indexing</p>
<p>Do you know how to do this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-33</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Sat, 28 Nov 2009 23:45:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-33</guid>
		<description>&lt;a href=&quot;#comment-30&quot; rel=&quot;nofollow&quot;&gt;@xhwang:&lt;/a&gt; The spacing is set a little different than that. Probably the easiest way to do it in Python is the following (for 1.5, 1.5, 2.0 spacing):
  itk_image.GetSpacing().SetElement(0, 1.5)
  itk_image.GetSpacing().SetElement(1, 1.5)
  itk_image.GetSpacing().SetElement(2, 2.0)</description>
		<content:encoded><![CDATA[<p><a href="#comment-30" rel="nofollow">@xhwang:</a> The spacing is set a little different than that. Probably the easiest way to do it in Python is the following (for 1.5, 1.5, 2.0 spacing):<br />
  itk_image.GetSpacing().SetElement(0, 1.5)<br />
  itk_image.GetSpacing().SetElement(1, 1.5)<br />
  itk_image.GetSpacing().SetElement(2, 2.0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xhwang</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-30</link>
		<dc:creator>xhwang</dc:creator>
		<pubDate>Mon, 23 Nov 2009 19:49:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-30</guid>
		<description>hi Paul,
Do you know how to Defining Origin and Spacing use ITK-WrapITK? 

I use&quot;itk_image.SetSpacing(1.5,1.5,2.0)&quot; to define the space of a ITK image, but failed.

Can you give a help?

many thanks~
xh</description>
		<content:encoded><![CDATA[<p>hi Paul,<br />
Do you know how to Defining Origin and Spacing use ITK-WrapITK? </p>
<p>I use&#8221;itk_image.SetSpacing(1.5,1.5,2.0)&#8221; to define the space of a ITK image, but failed.</p>
<p>Can you give a help?</p>
<p>many thanks~<br />
xh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-1</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 31 Dec 1969 18:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-1</guid>
		<description>Thanks, Paul. These are great! My think my next big programming project will be in python now...</description>
		<content:encoded><![CDATA[<p>Thanks, Paul. These are great! My think my next big programming project will be in python now&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-2</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 31 Dec 1969 18:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-2</guid>
		<description>Thanks Paul. It is really a time saver, the Ubuntu repository.
I&#039;m working on a thesis in Spain about MRI images processing. Just starting, I&#039;d been thinking about working in C++ because I know it. But I think I should learn python, to code faster my experiments.
Will keep in touch.

Regards.

&lt;a href=&quot;http://alexsavio.blogspot.com&quot;&gt;http://alexsavio.blogspot.com&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Paul. It is really a time saver, the Ubuntu repository.<br />
I&#8217;m working on a thesis in Spain about MRI images processing. Just starting, I&#8217;d been thinking about working in C++ because I know it. But I think I should learn python, to code faster my experiments.<br />
Will keep in touch.</p>
<p>Regards.</p>
<p><a href="http://alexsavio.blogspot.com">http://alexsavio.blogspot.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-3</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 31 Dec 1969 18:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-3</guid>
		<description>terrific! his sure does justice to the excellent WrapITK project!</description>
		<content:encoded><![CDATA[<p>terrific! his sure does justice to the excellent WrapITK project!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.paulnovo.org/wrapitktutorial/comment-page-1#comment-8</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 31 Dec 1969 18:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-8</guid>
		<description>Hello and thanks for creating this tutorial.

I&#039;m attempting this tutorial with pythonxy in windows and it seems to almost work, but I get the error listed below. Could you give some advice on how to fix this problem. I am quite new to using ITK. Any help is appreciated.

&gt;&gt;&gt; median_filter = itk.MedianImageFilter[image_type, image_type].New()

KeyError: &quot;itkTemplate : No template (&lt;class &#039;itkImage.itkImageUC3&#039;&gt;, &lt;class &#039;itkImage.itkImageUC3&#039; &gt; ) for the itk::MedianImageFilter class&quot;



</description>
		<content:encoded><![CDATA[<p>Hello and thanks for creating this tutorial.</p>
<p>I&#8217;m attempting this tutorial with pythonxy in windows and it seems to almost work, but I get the error listed below. Could you give some advice on how to fix this problem. I am quite new to using ITK. Any help is appreciated.</p>
<p>>>> median_filter = itk.MedianImageFilter[image_type, image_type].New()</p>
<p>KeyError: &#8220;itkTemplate : No template (&lt;class &#8216;itkImage.itkImageUC3&#8242;&gt;, &lt;class &#8216;itkImage.itkImageUC3&#8242; &gt; ) for the itk::MedianImageFilter class&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
