<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-14223</id>
	<title>Nabble - ITK</title>
	<updated>2009-12-18T17:36:03Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/ITK-f14223.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ITK-f14223.html" />
	<subtitle type="html">ITK (NLM Insight segmentation &amp; registration toolkit) is an open-source software toolkit for performing registration and segmentation. ITK home is &lt;a href=&quot;http://www.itk.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26851944</id>
	<title>Re: DTI nrrd processing.</title>
	<published>2009-12-18T17:36:03Z</published>
	<updated>2009-12-18T17:36:03Z</updated>
	<author>
		<name>Luis Ibanez</name>
	</author>
	<content type="html">Hi Subarna,
&lt;br&gt;&lt;br&gt;What is the message that they print
&lt;br&gt;after throwing the Exception ?
&lt;br&gt;&lt;br&gt;Please post the full error message to the list.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Luis
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----------------------------------------------------
&lt;br&gt;On Sun, Dec 13, 2009 at 11:26 AM, Subarna Ghosh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26851944&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;subarna29@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am trying to work with DTI images, and need to read in some tensor nrrd
&lt;br&gt;&amp;gt; files that I generated through MRIstudio from my original DWI images.
&lt;br&gt;&amp;gt; Basically it gave me files in nrrd format , one each for Dxx, Dyy etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It will be great if someone could direct me to the method of reading in such
&lt;br&gt;&amp;gt; a format. I tried using itkNrrdVectorImageReadTest.cxx, and also
&lt;br&gt;&amp;gt; itkNrrdDiffusionTensor3DImageReadTest.cxx, but they throw exceptions in
&lt;br&gt;&amp;gt; reader-&amp;gt;update().
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I will appreciate any help in this direction.
&lt;/div&gt;&lt;br&gt;&amp;gt; Thanks and regards,
&lt;br&gt;&amp;gt; Subarna Ghosh.
&lt;br&gt;&amp;gt;
&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DTI-nrrd-processing.-tp26767440p26851944.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26851925</id>
	<title>Fwd:  Bytes per pixel</title>
	<published>2009-12-18T17:33:36Z</published>
	<updated>2009-12-18T17:33:36Z</updated>
	<author>
		<name>Luis Ibanez</name>
	</author>
	<content type="html">Hi Fernando,
&lt;br&gt;&lt;br&gt;In ITK this will be defined at compilation time.
&lt;br&gt;&lt;br&gt;You could get this value simply as:
&lt;br&gt;&lt;br&gt;int bytesPerPixel = sizeof( ImageType::PixelType );
&lt;br&gt;&lt;br&gt;&lt;br&gt;   Regards,
&lt;br&gt;&lt;br&gt;&lt;br&gt;          Luis
&lt;br&gt;&lt;br&gt;&lt;br&gt;----------------------------------------------------------
&lt;br&gt;On Wed, Dec 16, 2009 at 3:57 AM, Fernando López Mir &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26851925&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ferlomi@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What is the parameter in a itk image to know the number of bytes in a pixel?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bytes-per-pixel-tp26808115p26851925.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26844968</id>
	<title>Tcon Agenda for today 1pm EST, posted</title>
	<published>2009-12-18T07:21:55Z</published>
	<updated>2009-12-18T07:21:55Z</updated>
	<author>
		<name>Luis Ibanez</name>
	</author>
	<content type="html">The agenda for Today's tcon has been posted at
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/Agenda%26Status_121809&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/Agenda%26Status_121809&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please feel free to add any topics of your interest.
&lt;br&gt;&lt;br&gt;As always, the tcon is open to anybody.
&lt;br&gt;&lt;br&gt;For instructions on how to join, please see
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_in_Second_Life&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_in_Second_Life&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Luis
&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tcon-Agenda-for-today-1pm-EST%2C-posted-tp26844968p26844968.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26844942</id>
	<title>Re: Setting ITK_DIR</title>
	<published>2009-12-18T07:20:15Z</published>
	<updated>2009-12-18T07:20:15Z</updated>
	<author>
		<name>Bill Lorensen-2</name>
	</author>
	<content type="html">When you run ccmake to configure project, you can set ITK_DIR through
&lt;br&gt;the interface. I don't recommend changing your path or setting ITK_DIR
&lt;br&gt;in your .bashrc. Although either will probably work.,
&lt;br&gt;&lt;br&gt;On Fri, Dec 18, 2009 at 7:28 AM, David Doria &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26844942&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;daviddoria+itk@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Dec 18, 2009 at 6:37 AM, michiel mentink
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26844942&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.mentink@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; hi Sravan,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; first find out where FindITK is, open it, and in that file, you'll find
&lt;br&gt;&amp;gt;&amp;gt; some directories that will be searched if the cmake can't find ITK
&lt;br&gt;&amp;gt;&amp;gt; instantly. To that list, add:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #added by Sravan
&lt;br&gt;&amp;gt;&amp;gt; /home/path/mypath
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; and obviously change mypath to whereever you'll find ITKConfig.cmake (find
&lt;br&gt;&amp;gt;&amp;gt; that with locate ITKConfig.cmake in linux)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You'll find a similar description on my webpage:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://sites.google.com/site/michielmentink/programming/cmake/adding-libraries&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sites.google.com/site/michielmentink/programming/cmake/adding-libraries&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; good luck,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Michael
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 12/18/09, sravan kumar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26844942&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kumar.sravan09@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; hi all,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I am using Fedora 10 linux.I was able to install ITK and cmake
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; successfully.But when i tried to cmake the Helloworld program in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Examples/Installation directory i got an error like this:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; CMake error at /usr/local/share/cmake-2.8/Modules/FindITK.cmake:97
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Please set the ITK_DIR to the directory containing ITKConfig.cmake. This
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; is either the root of the build tree, or PREFIX/lib/InsightToolKit  during
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the Installation.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Can some one tell me the solution.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; With Best Regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Y.Sravan Kumar
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; II M.Tech(CS),
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sri Sathya Sai University,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PRASHANTINILAYAM - 515134
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You should edit your ~/.bashrc and add:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; export ITK_DIR=&amp;quot;/home/doriad/bin/Insight&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Where clearly &amp;quot;/home/doriad/bin/Insight&amp;quot; should be replaced by the path to
&lt;br&gt;&amp;gt; your ITK installation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; David
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Setting-ITK_DIR-tp26840870p26844942.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26842867</id>
	<title>Re: xxxxxSPAMxxxxx Reconstruction of gray-scaled image from binary image</title>
	<published>2009-12-18T04:45:36Z</published>
	<updated>2009-12-18T04:45:36Z</updated>
	<author>
		<name>David Doria</name>
	</author>
	<content type="html">&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: medium; border-collapse: collapse; &quot;&gt;&lt;h1 class=&quot;ha&quot; style=&quot;font-family: arial, sans-serif; font-size: large; margin-top: 12px; margin-right: 5px; margin-bottom: 5px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(0, 0, 0); background: inherit; border-right: inherit; &quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; font-family: arial; font-weight: normal; font-size: small; &quot;&gt;On Fri, Dec 18, 2009 at 7:31 AM, Xiaopeng Yang &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26842867&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;yxp233@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;/span&gt;&lt;/h1&gt;
&lt;/span&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;








&lt;div lang=&quot;EN-US&quot; link=&quot;blue&quot; vlink=&quot;purple&quot;&gt;

&lt;div&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;color:#1F497D&quot;&gt;Hi all,&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;color:#1F497D&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;color:#1F497D&quot;&gt;I used region growing algorithm to detect liver from series DCM images
and obtained binary images. And  I need to reconstruct gray-scaled images from
the region-growing binary images. Can I achieve this goal through ITK? How?&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;color:#1F497D&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;color:#1F497D&quot;&gt;Best wishes,&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;color:#1F497D&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;color:#1F497D&quot;&gt;Xiaopeng&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size:11.0pt;color:#1F497D&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;Anyone know if (and why?) the mailing list marked this message as:&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: medium; border-collapse: collapse; &quot;&gt;&lt;h1 class=&quot;ha&quot; style=&quot;font-family: arial, sans-serif; font-size: large; margin-top: 12px; margin-right: 5px; margin-bottom: 5px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(0, 0, 0); background: inherit; border-right: inherit; &quot;&gt;
&lt;span id=&quot;:xe&quot; class=&quot;hP&quot; style=&quot;padding-right: 10px; &quot;&gt;xxxxxSPAMxxxxx&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;&lt;span id=&quot;:xe&quot; class=&quot;hP&quot; style=&quot;padding-right: 10px; &quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span id=&quot;:xe&quot; class=&quot;hP&quot; style=&quot;padding-right: 10px; &quot;&gt;If not, you should probably not mark your own messages as SPAM!!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span id=&quot;:xe&quot; class=&quot;hP&quot; style=&quot;padding-right: 10px; &quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;Thanks,&lt;br&gt;&lt;br&gt;David&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Setting-ITK_DIR-tp26840870p26842867.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26842828</id>
	<title>xxxxxSPAMxxxxx Reconstruction of gray-scaled image from binary image</title>
	<published>2009-12-18T04:31:44Z</published>
	<updated>2009-12-18T04:31:44Z</updated>
	<author>
		<name>Xiaopeng Yang</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Hi all,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;I used region growing algorithm to detect liver from series DCM images
and obtained binary images. And &amp;nbsp;I need to reconstruct gray-scaled images from
the region-growing binary images. Can I achieve this goal through ITK? How?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Best wishes,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Xiaopeng&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Department of Industrial and Management Engineering&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Pohang University of Science and Technology&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;South Korea&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Setting-ITK_DIR-tp26840870p26842828.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26842686</id>
	<title>Re: Setting ITK_DIR</title>
	<published>2009-12-18T04:28:23Z</published>
	<updated>2009-12-18T04:28:23Z</updated>
	<author>
		<name>David Doria</name>
	</author>
	<content type="html">&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 18, 2009 at 6:37 AM, michiel mentink &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26842686&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael.mentink@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
hi Sravan,&lt;br&gt;&lt;br&gt;first find out where FindITK is, open it, and in that
file, you&amp;#39;ll find some directories that will be searched if the cmake
can&amp;#39;t find ITK&lt;br&gt;instantly. To that list, add:&lt;br&gt;&lt;br&gt;#added by Sravan&lt;br&gt;
/home/path/mypath&lt;br&gt;&lt;br&gt;and obviously change mypath to whereever you&amp;#39;ll find ITKConfig.cmake (find that with locate ITKConfig.cmake in linux)&lt;br&gt;&lt;br&gt;You&amp;#39;ll find a similar description on my webpage:&lt;br&gt;&lt;a href=&quot;https://sites.google.com/site/michielmentink/programming/cmake/adding-libraries&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://sites.google.com/site/michielmentink/programming/cmake/adding-libraries&lt;/a&gt;&lt;br&gt;


&lt;br&gt;good luck, &lt;br&gt;&lt;br&gt;Michael&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;span class=&quot;gmail_quote&quot;&gt;On 12/18/09, &lt;b class=&quot;gmail_sendername&quot;&gt;sravan kumar&lt;/b&gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26842686&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kumar.sravan09@...&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
hi all,&lt;br&gt;&lt;br&gt;I am using Fedora 10 linux.I was able to install ITK and cmake successfully.But when i tried to cmake the Helloworld program in Examples/Installation directory i got an error like this:&lt;br&gt;&lt;font color=&quot;#3366ff&quot;&gt;&lt;br&gt;



CMake error at /usr/local/share/cmake-2.8/Modules/FindITK.cmake:97&lt;br&gt;&lt;br&gt;Please
set the ITK_DIR to the directory containing ITKConfig.cmake. This is
either the root of the build tree, or PREFIX/lib/InsightToolKit  during
the Installation.&lt;br&gt;&lt;font color=&quot;#333333&quot;&gt;&lt;br&gt;Can some one tell me the solution.&lt;br clear=&quot;all&quot;&gt;&lt;/font&gt;
&lt;/font&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;With Best Regards,&lt;br&gt;&lt;br&gt;Y.Sravan Kumar&lt;br&gt;II M.Tech(CS),&lt;br&gt;Sri Sathya Sai University,&lt;br&gt;PRASHANTINILAYAM - 515134&lt;br&gt;&lt;br&gt;
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;_____________________________________&lt;br&gt;
Powered by &lt;a href=&quot;http://www.kitware.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.kitware.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;You should edit your ~/.bashrc and add:&lt;br&gt;&lt;br&gt;export ITK_DIR=&amp;quot;/home/doriad/bin/Insight&amp;quot;&lt;br&gt;&lt;br&gt;Where clearly &amp;quot;/home/doriad/bin/Insight&amp;quot; should be replaced by the path to your ITK installation.&lt;br&gt;
&lt;br clear=&quot;all&quot;&gt;Thanks,&lt;br&gt;&lt;br&gt;David&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Setting-ITK_DIR-tp26840870p26842686.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26842244</id>
	<title>Re: Setting ITK_DIR</title>
	<published>2009-12-18T03:37:01Z</published>
	<updated>2009-12-18T03:37:01Z</updated>
	<author>
		<name>Michael Mentink</name>
	</author>
	<content type="html">hi Sravan,&lt;br&gt;&lt;br&gt;first find out where FindITK is, open it, and in that
file, you&amp;#39;ll find some directories that will be searched if the cmake
can&amp;#39;t find ITK&lt;br&gt;instantly. To that list, add:&lt;br&gt;&lt;br&gt;#added by Sravan&lt;br&gt;
/home/path/mypath&lt;br&gt;&lt;br&gt;and obviously change mypath to whereever you&amp;#39;ll find ITKConfig.cmake (find that with locate ITKConfig.cmake in linux)&lt;br&gt;&lt;br&gt;You&amp;#39;ll find a similar description on my webpage:&lt;br&gt;&lt;a href=&quot;https://sites.google.com/site/michielmentink/programming/cmake/adding-libraries&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://sites.google.com/site/michielmentink/programming/cmake/adding-libraries&lt;/a&gt;&lt;br&gt;

&lt;br&gt;good luck, &lt;br&gt;&lt;br&gt;Michael&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;span class=&quot;gmail_quote&quot;&gt;On 12/18/09, &lt;b class=&quot;gmail_sendername&quot;&gt;sravan kumar&lt;/b&gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26842244&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kumar.sravan09@...&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
hi all,&lt;br&gt;&lt;br&gt;I am using Fedora 10 linux.I was able to install ITK and cmake successfully.But when i tried to cmake the Helloworld program in Examples/Installation directory i got an error like this:&lt;br&gt;&lt;font color=&quot;#3366ff&quot;&gt;&lt;br&gt;


CMake error at /usr/local/share/cmake-2.8/Modules/FindITK.cmake:97&lt;br&gt;&lt;br&gt;Please
set the ITK_DIR to the directory containing ITKConfig.cmake. This is
either the root of the build tree, or PREFIX/lib/InsightToolKit  during
the Installation.&lt;br&gt;&lt;font color=&quot;#333333&quot;&gt;&lt;br&gt;Can some one tell me the solution.&lt;br clear=&quot;all&quot;&gt;&lt;/font&gt;
&lt;/font&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;With Best Regards,&lt;br&gt;&lt;br&gt;Y.Sravan Kumar&lt;br&gt;II M.Tech(CS),&lt;br&gt;Sri Sathya Sai University,&lt;br&gt;PRASHANTINILAYAM - 515134&lt;br&gt;&lt;br&gt;
&lt;br&gt;_____________________________________&lt;br&gt;
Powered by &lt;a href=&quot;http://www.kitware.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.kitware.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Visit other Kitware open-source projects at&lt;br&gt;
&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Kitware offers ITK Training Courses, for more information visit:&lt;br&gt;
&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Please keep messages on-topic and check the ITK FAQ at:&lt;br&gt;
&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Follow this link to subscribe/unsubscribe:&lt;br&gt;
&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Setting-ITK_DIR-tp26840870p26842244.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26840870</id>
	<title>Re: Setting ITK_DIR</title>
	<published>2009-12-18T01:14:20Z</published>
	<updated>2009-12-18T01:14:20Z</updated>
	<author>
		<name>sravan kumar-3</name>
	</author>
	<content type="html">hi all,&lt;br&gt;&lt;br&gt;I am using Fedora 10 linux.I was able to install ITK and cmake successfully.But when i tried to cmake the Helloworld program in Examples/Installation directory i got an error like this:&lt;br&gt;&lt;font color=&quot;#3366ff&quot;&gt;&lt;br&gt;

CMake error at /usr/local/share/cmake-2.8/Modules/FindITK.cmake:97&lt;br&gt;&lt;br&gt;Please
set the ITK_DIR to the directory containing ITKConfig.cmake. This is
either the root of the build tree, or PREFIX/lib/InsightToolKit  during
the Installation.&lt;br&gt;&lt;font color=&quot;#333333&quot;&gt;&lt;br&gt;Can some one tell me the solution.&lt;br clear=&quot;all&quot;&gt;&lt;/font&gt;
&lt;/font&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;With Best Regards,&lt;br&gt;&lt;br&gt;Y.Sravan Kumar&lt;br&gt;II M.Tech(CS),&lt;br&gt;Sri Sathya Sai University,&lt;br&gt;PRASHANTINILAYAM - 515134&lt;br&gt;&lt;br&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Setting-ITK_DIR-tp26840870p26840870.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26833003</id>
	<title>Re: itkMergeLabelMapFilter.h</title>
	<published>2009-12-17T10:43:53Z</published>
	<updated>2009-12-17T10:43:53Z</updated>
	<author>
		<name>John Drozd</name>
	</author>
	<content type="html">Hi Gaetan,&lt;br&gt;&lt;br&gt;Thank you very much !&lt;br&gt;&lt;br&gt;The example code you referred me to showed me how to perform the merge.&lt;br&gt;&lt;br&gt;I just had to add the lines:&lt;br&gt;&lt;br&gt;//added code per itkMergeLabelMapFilterTest1.cxx&lt;br&gt;&lt;br&gt;  convertermerge-&amp;gt;SetInput( labelMap );&lt;br&gt;
&lt;br&gt;  convertermerge-&amp;gt;SetInput( 1, labelMap2 );&lt;br&gt;&lt;br&gt;  //end of added code&lt;br&gt;&lt;br&gt;Thanks again,&lt;br&gt;john&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Dec 17, 2009 at 1:12 PM, John Drozd &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26833003&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john.drozd@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi Gaetan,&lt;br&gt;&lt;br&gt;My particular brain subject had the left and right brain ventricle as separate regions, so I inputed a seed for the left ventricle and a seed for the right ventricle, and created a separate label map for each ventricle.  (I could not figure out how to create a label map with two labelled segmentations, so I am trying to merge these two label maps into a combined label map.)&lt;br&gt;

&lt;br&gt;Below is my code and thank you:&lt;br&gt;&lt;br&gt;/*&lt;br&gt;to run type:&lt;br&gt;&lt;br&gt;./ConnectedThresholdImagechangedtoFuzzyConnectednessImageFilter &amp;quot;/trumpet/downloads/ReadAtlasDicomSeriesAndReadSubjectDicomSeries_Plugin/ReadAtlasDicomSeriesAndReadSubjectDicomSeries/ReadAtlasDicomSeriesAndReadSubjectDicomSeries3DSlicerDec22009/normal002_S_0295.dcm&amp;quot; outsubjectnormal4final.dcm outfuzzymapnormal.mhd 100 151 95 86 152 76 2.5 10&lt;br&gt;

&lt;br&gt;*/&lt;br&gt;&lt;br&gt;#if defined(_MSC_VER)&lt;br&gt;#pragma warning ( disable : 4786 )&lt;br&gt;#endif&lt;br&gt;&lt;br&gt;#ifdef __BORLANDC__&lt;br&gt;#define ITK_LEAN_AND_MEAN&lt;br&gt;#endif&lt;br&gt;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkConnectedThresholdImageFilter.h&amp;quot;&lt;br&gt;
&lt;br&gt;
#include &amp;quot;itkImage.h&amp;quot;&lt;br&gt;#include &amp;quot;itkCastImageFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkCurvatureFlowImageFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkImageFileReader.h&amp;quot;&lt;br&gt;#include &amp;quot;itkImageFileWriter.h&amp;quot;&lt;br&gt;

&lt;br&gt;#include &amp;quot;itkGDCMImageIO.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkVersion.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkOrientedImage.h&amp;quot;&lt;br&gt;#include &amp;quot;itkMinimumMaximumImageFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkGDCMImageIO.h&amp;quot;&lt;br&gt;

#include &amp;quot;itkGDCMSeriesFileNames.h&amp;quot;&lt;br&gt;#include &amp;quot;itkNumericSeriesFileNames.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkImageSeriesReader.h&amp;quot;&lt;br&gt;#include &amp;quot;itkImageSeriesWriter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkResampleImageFilter.h&amp;quot;&lt;br&gt;

#include &amp;quot;itkShiftScaleImageFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkIdentityTransform.h&amp;quot;&lt;br&gt;#include &amp;quot;itkLinearInterpolateImageFunction.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;lt;itksys/SystemTools.hxx&amp;gt;&lt;br&gt;&lt;br&gt;#include &amp;quot;gdcm/src/gdcmFile.h&amp;quot;&lt;br&gt;

#include &amp;quot;gdcm/src/gdcmUtil.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;lt;string&amp;gt;&lt;br&gt;&lt;br&gt;//added per attribute_values.cxx&lt;br&gt;#include &amp;quot;itkImageFileReader.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkShapeLabelObject.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkLabelMap.h&amp;quot;&lt;br&gt;

&lt;br&gt;#include &amp;quot;itkBinaryImageToShapeLabelMapFilter.h&amp;quot;&lt;br&gt;//end of added code&lt;br&gt;&lt;br&gt;//added per label.cxx&lt;br&gt;#include &amp;quot;itkLabelObject.h&amp;quot;&lt;br&gt;#include &amp;quot;itkLabelMap.h&amp;quot;&lt;br&gt;#include &amp;quot;itkBinaryImageToLabelMapFilter.h&amp;quot;&lt;br&gt;

#include &amp;quot;itkLabelMapToLabelImageFilter.h&amp;quot;&lt;br&gt;//end of added code&lt;br&gt;&lt;br&gt;#include &amp;quot;itkSimpleFilterWatcher.h&amp;quot;&lt;br&gt;&lt;br&gt;//added per FuzzyConnectednessImageFilter.cxx&lt;br&gt;#include &amp;quot;itkSimpleFuzzyConnectednessScalarImageFilter.h&amp;quot;&lt;br&gt;

#include &amp;quot;itkConfidenceConnectedImageFilter.h&amp;quot;&lt;br&gt;//end of added code&lt;br&gt;&lt;br&gt;#include &amp;quot;itkMergeLabelMapFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;int main( int argc, char *argv[])&lt;br&gt;{&lt;br&gt;  if( argc &amp;lt; 7 )&lt;br&gt;    {&lt;br&gt;    std::cerr &amp;lt;&amp;lt; &amp;quot;Missing Parameters &amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br&gt;

    std::cerr &amp;lt;&amp;lt; &amp;quot;Usage: &amp;quot; &amp;lt;&amp;lt; argv[0];&lt;br&gt;  &lt;br&gt;    std::cerr &amp;lt;&amp;lt; &amp;quot; inputImage  outputImage outputAffinityMap seedX seedY seedZ seedX seedY seedZ multiplier tolerancedivisor&amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br&gt;

&lt;br&gt;&lt;br&gt;    return 1;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  typedef   unsigned char          BinaryPixelType;&lt;br&gt;&lt;br&gt;  const     unsigned int    Dimension = 3;&lt;br&gt;&lt;br&gt;  typedef itk::Image&amp;lt; BinaryPixelType, Dimension &amp;gt;  BinaryImageType;&lt;br&gt;

  &lt;br&gt;&lt;br&gt;  typedef signed short InputPixelType;&lt;br&gt;&lt;br&gt;  typedef itk::Image&amp;lt; InputPixelType, Dimension &amp;gt; InputImageType;&lt;br&gt;  typedef unsigned char LabelType;&lt;br&gt;  const unsigned int dim = 3;&lt;br&gt;  typedef itk::ShapeLabelObject&amp;lt; LabelType, dim &amp;gt; LabelObjectType;&lt;br&gt;

  typedef itk::LabelMap&amp;lt; LabelObjectType &amp;gt; LabelMapType;&lt;br&gt;&lt;br&gt;  typedef itk::LabelMap&amp;lt; LabelObjectType &amp;gt; LabelMapType2;&lt;br&gt;&lt;br&gt;  typedef itk::BinaryImageToShapeLabelMapFilter&amp;lt; BinaryImageType, LabelMapType&amp;gt; ConverterType;&lt;br&gt;

&lt;br&gt;  ConverterType::Pointer converter = ConverterType::New();&lt;br&gt;&lt;br&gt;   typedef itk::BinaryImageToShapeLabelMapFilter&amp;lt; BinaryImageType, LabelMapType&amp;gt; ConverterType2;&lt;br&gt;  ConverterType2::Pointer converter2 = ConverterType2::New();&lt;br&gt;

&lt;br&gt;  typedef  itk::ImageFileReader&amp;lt; InputImageType &amp;gt; ReaderType;&lt;br&gt;  typedef  itk::ImageFileWriter&amp;lt;  BinaryImageType  &amp;gt; WriterType;&lt;br&gt;  &lt;br&gt;  ReaderType::Pointer reader = ReaderType::New();&lt;br&gt;  WriterType::Pointer writer = WriterType::New();&lt;br&gt;

 &lt;br&gt;  typedef itk::GDCMImageIO           ImageIOTypefixed;&lt;br&gt;  ImageIOTypefixed::Pointer gdcmImageIOfixed = ImageIOTypefixed::New();&lt;br&gt;  reader-&amp;gt;SetImageIO( gdcmImageIOfixed );&lt;br&gt;&lt;br&gt;  typedef itk::GDCMImageIO           ImageIOTypefixed2;&lt;br&gt;

  ImageIOTypefixed2::Pointer gdcmImageIOfixed2 = ImageIOTypefixed2::New();&lt;br&gt;&lt;br&gt;  reader-&amp;gt;SetFileName( argv[1] );&lt;br&gt;  &lt;br&gt;  reader-&amp;gt;Update();&lt;br&gt;  &lt;br&gt;  typedef itk::ConfidenceConnectedImageFilter&amp;lt; &lt;br&gt;                                                  InputImageType, &lt;br&gt;

                                                  BinaryImageType &lt;br&gt;                                                    &amp;gt;  ConfidenceConnectedFilterType;&lt;br&gt;&lt;br&gt;  ConfidenceConnectedFilterType::Pointer confidenceConnectedFilter = &lt;br&gt;

                                                 ConfidenceConnectedFilterType::New();&lt;br&gt;&lt;br&gt;  typedef itk::SimpleFuzzyConnectednessScalarImageFilter&amp;lt; &lt;br&gt;                                                  InputImageType, &lt;br&gt;

                                                  BinaryImageType &lt;br&gt;                                                    &amp;gt;  FuzzySegmentationFilterType;&lt;br&gt;&lt;br&gt;   FuzzySegmentationFilterType::Pointer fuzzysegmenter = &lt;br&gt;

                                         FuzzySegmentationFilterType::New();&lt;br&gt;&lt;br&gt;   typedef FuzzySegmentationFilterType::FuzzySceneType  FuzzySceneType; &lt;br&gt;&lt;br&gt;   typedef  itk::ImageFileWriter&amp;lt; FuzzySceneType  &amp;gt;    FuzzyWriterType;&lt;br&gt;

&lt;br&gt;   FuzzyWriterType::Pointer fwriter = FuzzyWriterType::New();&lt;br&gt;   &lt;br&gt;   fwriter-&amp;gt;SetFileName( argv[3] );&lt;br&gt;&lt;br&gt;   BinaryImageType::IndexType  index;&lt;br&gt; &lt;br&gt;  index[0] = atoi( argv[4] );&lt;br&gt;  index[1] = atoi( argv[5] );&lt;br&gt;

  index[2] = atoi( argv[6] );&lt;br&gt;&lt;br&gt;  const double varianceMultiplier = atof( argv[10] );&lt;br&gt;&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetInput( reader-&amp;gt;GetOutput()  );&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetMultiplier( varianceMultiplier );&lt;br&gt;

  confidenceConnectedFilter-&amp;gt;SetNumberOfIterations( 12 );&lt;br&gt;  &lt;br&gt;  fuzzysegmenter-&amp;gt;SetInput( reader-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  double varianceEstimation = 0;&lt;br&gt;&lt;br&gt;  double  meanEstimation = 0;&lt;br&gt;&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;

  confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;  meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;  varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;

  std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  if( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] ) )&lt;br&gt;    {&lt;br&gt;      &lt;br&gt;      index[0] = index[0]-10;&lt;br&gt;

      index[1] = index[1]-10;&lt;br&gt;      index[2] = index[2]-10;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;

      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  while( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] )  )&lt;br&gt;    {&lt;br&gt;&lt;br&gt;      index[0] = index[0] + 1;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;

      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;

      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;      if ( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] ))&lt;br&gt;    {&lt;br&gt;      index[1] = index[1] + 1;&lt;br&gt;

&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;

  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;

    }&lt;br&gt;&lt;br&gt;      if ( varianceEstimation &amp;gt;  meanEstimation/atoi( argv[11] ))&lt;br&gt;    {&lt;br&gt;      index[2] = index[2] + 1;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;

&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;

      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; index &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;

  std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  fuzzysegmenter-&amp;gt;SetObjectSeed( index );&lt;br&gt; &lt;br&gt;  fuzzysegmenter-&amp;gt;SetMean( meanEstimation );&lt;br&gt;  fuzzysegmenter-&amp;gt;SetVariance( varianceEstimation );&lt;br&gt;

  fuzzysegmenter-&amp;gt;SetThreshold( 0.5 );&lt;br&gt;&lt;br&gt;  fuzzysegmenter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;  //begin second label&lt;br&gt; &lt;br&gt;  FuzzySegmentationFilterType::Pointer fuzzysegmenter2 = &lt;br&gt;                                         FuzzySegmentationFilterType::New();&lt;br&gt;

  index[0] = atoi( argv[7] );&lt;br&gt;  index[1] = atoi( argv[8] );&lt;br&gt;  index[2] = atoi( argv[9] );&lt;br&gt;&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetInput( reader-&amp;gt;GetOutput()  );&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetMultiplier( varianceMultiplier );&lt;br&gt;

  confidenceConnectedFilter-&amp;gt;SetNumberOfIterations( 12 );&lt;br&gt;  &lt;br&gt;  fuzzysegmenter2-&amp;gt;SetInput( reader-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  varianceEstimation = 0;&lt;br&gt;&lt;br&gt;  meanEstimation = 0;&lt;br&gt;&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;

  confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;  meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;  varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;

  std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  if( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] ) )&lt;br&gt;    {&lt;br&gt;      &lt;br&gt;      index[0] = index[0]-10;&lt;br&gt;

      index[1] = index[1]-10;&lt;br&gt;      index[2] = index[2]-10;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;

      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  while( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] )  )&lt;br&gt;    {&lt;br&gt;&lt;br&gt;      index[0] = index[0] + 1;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;

      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;

      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;      if ( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] ))&lt;br&gt;    {&lt;br&gt;      index[1] = index[1] + 1;&lt;br&gt;

&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;

  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;

    }&lt;br&gt;&lt;br&gt;      if ( varianceEstimation &amp;gt;  meanEstimation/atoi( argv[11] ))&lt;br&gt;    {&lt;br&gt;      index[2] = index[2] + 1;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;

&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;

      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; index &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;

  std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  fuzzysegmenter2-&amp;gt;SetObjectSeed( index );&lt;br&gt; &lt;br&gt;  fuzzysegmenter2-&amp;gt;SetMean( meanEstimation );&lt;br&gt;  fuzzysegmenter2-&amp;gt;SetVariance( varianceEstimation );&lt;br&gt;

  fuzzysegmenter2-&amp;gt;SetThreshold( 0.5 );&lt;br&gt;&lt;br&gt;  fuzzysegmenter2-&amp;gt;Update();&lt;br&gt;&lt;br&gt;  //end second label&lt;br&gt;&lt;br&gt;  typedef itk::MetaDataDictionary DictionaryType;&lt;br&gt; &lt;br&gt;  DictionaryType inputdict = reader-&amp;gt;GetMetaDataDictionary();&lt;br&gt;

&lt;br&gt;  writer-&amp;gt;SetMetaDataDictionary( inputdict );&lt;br&gt;   &lt;br&gt;  writer-&amp;gt;SetFileName( argv[2] );&lt;br&gt;&lt;br&gt;  converter-&amp;gt;SetInput( fuzzysegmenter-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  converter-&amp;gt;SetFullyConnected( true );&lt;br&gt;
  &lt;br&gt;
  converter-&amp;gt;SetInputForegroundValue( 255 );&lt;br&gt;&lt;br&gt;  converter-&amp;gt;SetOutputBackgroundValue( 0 );&lt;br&gt;&lt;br&gt;  converter-&amp;gt;Update();&lt;br&gt;  &lt;br&gt;  converter2-&amp;gt;SetInput( fuzzysegmenter2-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  converter2-&amp;gt;SetFullyConnected( true );&lt;br&gt;

  &lt;br&gt;  converter2-&amp;gt;SetInputForegroundValue( 255 );&lt;br&gt;&lt;br&gt;  converter2-&amp;gt;SetOutputBackgroundValue( 0 );&lt;br&gt;&lt;br&gt;  converter2-&amp;gt;Update();&lt;br&gt;  &lt;br&gt;  LabelMapType::Pointer labelMap = converter-&amp;gt;GetOutput();&lt;br&gt;&lt;br&gt;

  LabelMapType2::Pointer labelMap2 = converter2-&amp;gt;GetOutput();&lt;br&gt;&lt;br&gt;  std::cout.precision(20);&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;labelMap-&amp;gt;GetNumberOfLabelObjects() = &amp;quot; &amp;lt;&amp;lt; labelMap-&amp;gt;GetNumberOfLabelObjects() &amp;lt;&amp;lt; std::endl;&lt;br&gt;

&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;labelMap2-&amp;gt;GetNumberOfLabelObjects() = &amp;quot; &amp;lt;&amp;lt; labelMap2-&amp;gt;GetNumberOfLabelObjects() &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  for( unsigned int label=1; label&amp;lt;=labelMap-&amp;gt;GetNumberOfLabelObjects(); label++ )&lt;br&gt;

    {&lt;br&gt;    // we don&amp;#39;t need a SmartPointer of the label object here, because the reference is kept in&lt;br&gt;    // in the label map.&lt;br&gt;    const LabelObjectType * labelObject = labelMap-&amp;gt;GetLabelObject( label );&lt;br&gt;

    std::cout &amp;lt;&amp;lt; label &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject-&amp;gt;GetSize() &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject-&amp;gt;GetPhysicalSize() &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject-&amp;gt;GetCentroid() &amp;lt;&amp;lt; std::endl;&lt;br&gt;

    }&lt;br&gt;  &lt;br&gt;  for( unsigned int label=1; label&amp;lt;=labelMap2-&amp;gt;GetNumberOfLabelObjects(); label++ )&lt;br&gt;    {&lt;br&gt;    // we don&amp;#39;t need a SmartPointer of the label object here, because the reference is kept in&lt;br&gt;    // in the label map.&lt;br&gt;

    const LabelObjectType * labelObject2 = labelMap2-&amp;gt;GetLabelObject( label );&lt;br&gt;    std::cout &amp;lt;&amp;lt; label &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject2-&amp;gt;GetSize() &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject2-&amp;gt;GetPhysicalSize() &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject2-&amp;gt;GetCentroid() &amp;lt;&amp;lt; std::endl;&lt;br&gt;

    }&lt;br&gt;&lt;br&gt;  //added to merge the two label maps&lt;br&gt;  &lt;br&gt;  typedef itk::MergeLabelMapFilter&amp;lt; LabelMapType &amp;gt; ConverterMergeType;&lt;br&gt;&lt;br&gt;  ConverterMergeType::Pointer convertermerge = ConverterMergeType::New();&lt;br&gt;

&lt;br&gt;  /*******************************&lt;br&gt;&lt;br&gt;  how do I merge labelMap and LabelMap2 ?&lt;br&gt;&lt;br&gt;  ********************************/&lt;br&gt;&lt;br&gt;   //end&lt;br&gt;&lt;br&gt;  typedef itk::LabelMapToLabelImageFilter&amp;lt; LabelMapType, BinaryImageType &amp;gt; L2IType;&lt;br&gt;

&lt;br&gt;  L2IType::Pointer l2i = L2IType::New();&lt;br&gt;  &lt;br&gt;  l2i-&amp;gt;SetInput( converter-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  writer-&amp;gt;SetInput( l2i-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  try&lt;br&gt;    {&lt;br&gt;    writer-&amp;gt;Update();&lt;br&gt;    }&lt;br&gt;  catch( itk::ExceptionObject &amp;amp; excep )&lt;br&gt;

    {&lt;br&gt;    std::cerr &amp;lt;&amp;lt; &amp;quot;Exception caught !&amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br&gt;    std::cerr &amp;lt;&amp;lt; excep &amp;lt;&amp;lt; std::endl;&lt;br&gt;    }&lt;br&gt;  &lt;br&gt;  fwriter-&amp;gt;SetInput( fuzzysegmenter-&amp;gt;GetFuzzyScene() );&lt;br&gt;  fwriter-&amp;gt;Update();&lt;br&gt;

&lt;br&gt;  return 0;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/17 Gaëtan Lehmann &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26833003&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gaetan.lehmann@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;
&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Le 17 déc. 09 à 18:22, John Drozd a écrit :&lt;div&gt;&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi,&lt;br&gt;
&lt;br&gt;
Can anyone show me how to use the MergeLabelMapFilter to merge two label maps?&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;&lt;/div&gt;
Hi John,&lt;br&gt;
&lt;br&gt;
You can look at Testing/Code/Review/itkMergeLabelMapFilterTest1.cxx, as an example.&lt;br&gt;
&lt;br&gt;
Can you be more specific on what you want to do?&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
Gaëtan&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Gaëtan Lehmann&lt;br&gt;
Biologie du Développement et de la Reproduction&lt;br&gt;
INRA de Jouy-en-Josas (France)&lt;br&gt;
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09&lt;br&gt;
&lt;a href=&quot;http://voxel.jouy.inra.fr&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://voxel.jouy.inra.fr&lt;/a&gt;  &lt;a href=&quot;http://www.itk.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.mandriva.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.mandriva.org&lt;/a&gt;  &lt;a href=&quot;http://www.bepo.fr&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.bepo.fr&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/itkMergeLabelMapFilter.h-tp26831686p26833003.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26832505</id>
	<title>Re: itkMergeLabelMapFilter.h</title>
	<published>2009-12-17T10:12:35Z</published>
	<updated>2009-12-17T10:12:35Z</updated>
	<author>
		<name>John Drozd</name>
	</author>
	<content type="html">Hi Gaetan,&lt;br&gt;&lt;br&gt;My particular brain subject had the left and right brain ventricle as separate regions, so I inputed a seed for the left ventricle and a seed for the right ventricle, and created a separate label map for each ventricle.  (I could not figure out how to create a label map with two labelled segmentations, so I am trying to merge these two label maps into a combined label map.)&lt;br&gt;
&lt;br&gt;Below is my code and thank you:&lt;br&gt;&lt;br&gt;/*&lt;br&gt;to run type:&lt;br&gt;&lt;br&gt;./ConnectedThresholdImagechangedtoFuzzyConnectednessImageFilter &amp;quot;/trumpet/downloads/ReadAtlasDicomSeriesAndReadSubjectDicomSeries_Plugin/ReadAtlasDicomSeriesAndReadSubjectDicomSeries/ReadAtlasDicomSeriesAndReadSubjectDicomSeries3DSlicerDec22009/normal002_S_0295.dcm&amp;quot; outsubjectnormal4final.dcm outfuzzymapnormal.mhd 100 151 95 86 152 76 2.5 10&lt;br&gt;
&lt;br&gt;*/&lt;br&gt;&lt;br&gt;#if defined(_MSC_VER)&lt;br&gt;#pragma warning ( disable : 4786 )&lt;br&gt;#endif&lt;br&gt;&lt;br&gt;#ifdef __BORLANDC__&lt;br&gt;#define ITK_LEAN_AND_MEAN&lt;br&gt;#endif&lt;br&gt;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkConnectedThresholdImageFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;
#include &amp;quot;itkImage.h&amp;quot;&lt;br&gt;#include &amp;quot;itkCastImageFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkCurvatureFlowImageFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkImageFileReader.h&amp;quot;&lt;br&gt;#include &amp;quot;itkImageFileWriter.h&amp;quot;&lt;br&gt;
&lt;br&gt;#include &amp;quot;itkGDCMImageIO.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkVersion.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkOrientedImage.h&amp;quot;&lt;br&gt;#include &amp;quot;itkMinimumMaximumImageFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkGDCMImageIO.h&amp;quot;&lt;br&gt;
#include &amp;quot;itkGDCMSeriesFileNames.h&amp;quot;&lt;br&gt;#include &amp;quot;itkNumericSeriesFileNames.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkImageSeriesReader.h&amp;quot;&lt;br&gt;#include &amp;quot;itkImageSeriesWriter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkResampleImageFilter.h&amp;quot;&lt;br&gt;
#include &amp;quot;itkShiftScaleImageFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkIdentityTransform.h&amp;quot;&lt;br&gt;#include &amp;quot;itkLinearInterpolateImageFunction.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;lt;itksys/SystemTools.hxx&amp;gt;&lt;br&gt;&lt;br&gt;#include &amp;quot;gdcm/src/gdcmFile.h&amp;quot;&lt;br&gt;
#include &amp;quot;gdcm/src/gdcmUtil.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;lt;string&amp;gt;&lt;br&gt;&lt;br&gt;//added per attribute_values.cxx&lt;br&gt;#include &amp;quot;itkImageFileReader.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkShapeLabelObject.h&amp;quot;&lt;br&gt;&lt;br&gt;#include &amp;quot;itkLabelMap.h&amp;quot;&lt;br&gt;
&lt;br&gt;#include &amp;quot;itkBinaryImageToShapeLabelMapFilter.h&amp;quot;&lt;br&gt;//end of added code&lt;br&gt;&lt;br&gt;//added per label.cxx&lt;br&gt;#include &amp;quot;itkLabelObject.h&amp;quot;&lt;br&gt;#include &amp;quot;itkLabelMap.h&amp;quot;&lt;br&gt;#include &amp;quot;itkBinaryImageToLabelMapFilter.h&amp;quot;&lt;br&gt;
#include &amp;quot;itkLabelMapToLabelImageFilter.h&amp;quot;&lt;br&gt;//end of added code&lt;br&gt;&lt;br&gt;#include &amp;quot;itkSimpleFilterWatcher.h&amp;quot;&lt;br&gt;&lt;br&gt;//added per FuzzyConnectednessImageFilter.cxx&lt;br&gt;#include &amp;quot;itkSimpleFuzzyConnectednessScalarImageFilter.h&amp;quot;&lt;br&gt;
#include &amp;quot;itkConfidenceConnectedImageFilter.h&amp;quot;&lt;br&gt;//end of added code&lt;br&gt;&lt;br&gt;#include &amp;quot;itkMergeLabelMapFilter.h&amp;quot;&lt;br&gt;&lt;br&gt;int main( int argc, char *argv[])&lt;br&gt;{&lt;br&gt;  if( argc &amp;lt; 7 )&lt;br&gt;    {&lt;br&gt;    std::cerr &amp;lt;&amp;lt; &amp;quot;Missing Parameters &amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br&gt;
    std::cerr &amp;lt;&amp;lt; &amp;quot;Usage: &amp;quot; &amp;lt;&amp;lt; argv[0];&lt;br&gt;  &lt;br&gt;    std::cerr &amp;lt;&amp;lt; &amp;quot; inputImage  outputImage outputAffinityMap seedX seedY seedZ seedX seedY seedZ multiplier tolerancedivisor&amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br&gt;
&lt;br&gt;&lt;br&gt;    return 1;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  typedef   unsigned char          BinaryPixelType;&lt;br&gt;&lt;br&gt;  const     unsigned int    Dimension = 3;&lt;br&gt;&lt;br&gt;  typedef itk::Image&amp;lt; BinaryPixelType, Dimension &amp;gt;  BinaryImageType;&lt;br&gt;
  &lt;br&gt;&lt;br&gt;  typedef signed short InputPixelType;&lt;br&gt;&lt;br&gt;  typedef itk::Image&amp;lt; InputPixelType, Dimension &amp;gt; InputImageType;&lt;br&gt;  typedef unsigned char LabelType;&lt;br&gt;  const unsigned int dim = 3;&lt;br&gt;  typedef itk::ShapeLabelObject&amp;lt; LabelType, dim &amp;gt; LabelObjectType;&lt;br&gt;
  typedef itk::LabelMap&amp;lt; LabelObjectType &amp;gt; LabelMapType;&lt;br&gt;&lt;br&gt;  typedef itk::LabelMap&amp;lt; LabelObjectType &amp;gt; LabelMapType2;&lt;br&gt;&lt;br&gt;  typedef itk::BinaryImageToShapeLabelMapFilter&amp;lt; BinaryImageType, LabelMapType&amp;gt; ConverterType;&lt;br&gt;
&lt;br&gt;  ConverterType::Pointer converter = ConverterType::New();&lt;br&gt;&lt;br&gt;   typedef itk::BinaryImageToShapeLabelMapFilter&amp;lt; BinaryImageType, LabelMapType&amp;gt; ConverterType2;&lt;br&gt;  ConverterType2::Pointer converter2 = ConverterType2::New();&lt;br&gt;
&lt;br&gt;  typedef  itk::ImageFileReader&amp;lt; InputImageType &amp;gt; ReaderType;&lt;br&gt;  typedef  itk::ImageFileWriter&amp;lt;  BinaryImageType  &amp;gt; WriterType;&lt;br&gt;  &lt;br&gt;  ReaderType::Pointer reader = ReaderType::New();&lt;br&gt;  WriterType::Pointer writer = WriterType::New();&lt;br&gt;
 &lt;br&gt;  typedef itk::GDCMImageIO           ImageIOTypefixed;&lt;br&gt;  ImageIOTypefixed::Pointer gdcmImageIOfixed = ImageIOTypefixed::New();&lt;br&gt;  reader-&amp;gt;SetImageIO( gdcmImageIOfixed );&lt;br&gt;&lt;br&gt;  typedef itk::GDCMImageIO           ImageIOTypefixed2;&lt;br&gt;
  ImageIOTypefixed2::Pointer gdcmImageIOfixed2 = ImageIOTypefixed2::New();&lt;br&gt;&lt;br&gt;  reader-&amp;gt;SetFileName( argv[1] );&lt;br&gt;  &lt;br&gt;  reader-&amp;gt;Update();&lt;br&gt;  &lt;br&gt;  typedef itk::ConfidenceConnectedImageFilter&amp;lt; &lt;br&gt;                                                  InputImageType, &lt;br&gt;
                                                  BinaryImageType &lt;br&gt;                                                    &amp;gt;  ConfidenceConnectedFilterType;&lt;br&gt;&lt;br&gt;  ConfidenceConnectedFilterType::Pointer confidenceConnectedFilter = &lt;br&gt;
                                                 ConfidenceConnectedFilterType::New();&lt;br&gt;&lt;br&gt;  typedef itk::SimpleFuzzyConnectednessScalarImageFilter&amp;lt; &lt;br&gt;                                                  InputImageType, &lt;br&gt;
                                                  BinaryImageType &lt;br&gt;                                                    &amp;gt;  FuzzySegmentationFilterType;&lt;br&gt;&lt;br&gt;   FuzzySegmentationFilterType::Pointer fuzzysegmenter = &lt;br&gt;
                                         FuzzySegmentationFilterType::New();&lt;br&gt;&lt;br&gt;   typedef FuzzySegmentationFilterType::FuzzySceneType  FuzzySceneType; &lt;br&gt;&lt;br&gt;   typedef  itk::ImageFileWriter&amp;lt; FuzzySceneType  &amp;gt;    FuzzyWriterType;&lt;br&gt;
&lt;br&gt;   FuzzyWriterType::Pointer fwriter = FuzzyWriterType::New();&lt;br&gt;   &lt;br&gt;   fwriter-&amp;gt;SetFileName( argv[3] );&lt;br&gt;&lt;br&gt;   BinaryImageType::IndexType  index;&lt;br&gt; &lt;br&gt;  index[0] = atoi( argv[4] );&lt;br&gt;  index[1] = atoi( argv[5] );&lt;br&gt;
  index[2] = atoi( argv[6] );&lt;br&gt;&lt;br&gt;  const double varianceMultiplier = atof( argv[10] );&lt;br&gt;&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetInput( reader-&amp;gt;GetOutput()  );&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetMultiplier( varianceMultiplier );&lt;br&gt;
  confidenceConnectedFilter-&amp;gt;SetNumberOfIterations( 12 );&lt;br&gt;  &lt;br&gt;  fuzzysegmenter-&amp;gt;SetInput( reader-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  double varianceEstimation = 0;&lt;br&gt;&lt;br&gt;  double  meanEstimation = 0;&lt;br&gt;&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;
  confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;  meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;  varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;
  std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  if( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] ) )&lt;br&gt;    {&lt;br&gt;      &lt;br&gt;      index[0] = index[0]-10;&lt;br&gt;
      index[1] = index[1]-10;&lt;br&gt;      index[2] = index[2]-10;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;
      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  while( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] )  )&lt;br&gt;    {&lt;br&gt;&lt;br&gt;      index[0] = index[0] + 1;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;
      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;
      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;      if ( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] ))&lt;br&gt;    {&lt;br&gt;      index[1] = index[1] + 1;&lt;br&gt;
&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;
  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;
    }&lt;br&gt;&lt;br&gt;      if ( varianceEstimation &amp;gt;  meanEstimation/atoi( argv[11] ))&lt;br&gt;    {&lt;br&gt;      index[2] = index[2] + 1;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;
&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;
      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; index &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;
  std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  fuzzysegmenter-&amp;gt;SetObjectSeed( index );&lt;br&gt; &lt;br&gt;  fuzzysegmenter-&amp;gt;SetMean( meanEstimation );&lt;br&gt;  fuzzysegmenter-&amp;gt;SetVariance( varianceEstimation );&lt;br&gt;
  fuzzysegmenter-&amp;gt;SetThreshold( 0.5 );&lt;br&gt;&lt;br&gt;  fuzzysegmenter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;  //begin second label&lt;br&gt; &lt;br&gt;  FuzzySegmentationFilterType::Pointer fuzzysegmenter2 = &lt;br&gt;                                         FuzzySegmentationFilterType::New();&lt;br&gt;
  index[0] = atoi( argv[7] );&lt;br&gt;  index[1] = atoi( argv[8] );&lt;br&gt;  index[2] = atoi( argv[9] );&lt;br&gt;&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetInput( reader-&amp;gt;GetOutput()  );&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetMultiplier( varianceMultiplier );&lt;br&gt;
  confidenceConnectedFilter-&amp;gt;SetNumberOfIterations( 12 );&lt;br&gt;  &lt;br&gt;  fuzzysegmenter2-&amp;gt;SetInput( reader-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  varianceEstimation = 0;&lt;br&gt;&lt;br&gt;  meanEstimation = 0;&lt;br&gt;&lt;br&gt;  confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;
  confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;  meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;  varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;
  std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  if( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] ) )&lt;br&gt;    {&lt;br&gt;      &lt;br&gt;      index[0] = index[0]-10;&lt;br&gt;
      index[1] = index[1]-10;&lt;br&gt;      index[2] = index[2]-10;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;
      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  while( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] )  )&lt;br&gt;    {&lt;br&gt;&lt;br&gt;      index[0] = index[0] + 1;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;
      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;
      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;      if ( varianceEstimation &amp;gt; meanEstimation/atoi( argv[11] ))&lt;br&gt;    {&lt;br&gt;      index[1] = index[1] + 1;&lt;br&gt;
&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;
  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;
    }&lt;br&gt;&lt;br&gt;      if ( varianceEstimation &amp;gt;  meanEstimation/atoi( argv[11] ))&lt;br&gt;    {&lt;br&gt;      index[2] = index[2] + 1;&lt;br&gt;&lt;br&gt;      confidenceConnectedFilter-&amp;gt;SetSeed( index );&lt;br&gt;      confidenceConnectedFilter-&amp;gt;Update();&lt;br&gt;
&lt;br&gt;      meanEstimation      = confidenceConnectedFilter-&amp;gt;GetMean();&lt;br&gt;      varianceEstimation  = confidenceConnectedFilter-&amp;gt;GetVariance();&lt;br&gt;  &lt;br&gt;      std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;
      std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; index &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;Mean     estimation = &amp;quot; &amp;lt;&amp;lt; meanEstimation     &amp;lt;&amp;lt; std::endl;&lt;br&gt;
  std::cout &amp;lt;&amp;lt; &amp;quot;Variance estimation = &amp;quot; &amp;lt;&amp;lt; varianceEstimation &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  fuzzysegmenter2-&amp;gt;SetObjectSeed( index );&lt;br&gt; &lt;br&gt;  fuzzysegmenter2-&amp;gt;SetMean( meanEstimation );&lt;br&gt;  fuzzysegmenter2-&amp;gt;SetVariance( varianceEstimation );&lt;br&gt;
  fuzzysegmenter2-&amp;gt;SetThreshold( 0.5 );&lt;br&gt;&lt;br&gt;  fuzzysegmenter2-&amp;gt;Update();&lt;br&gt;&lt;br&gt;  //end second label&lt;br&gt;&lt;br&gt;  typedef itk::MetaDataDictionary DictionaryType;&lt;br&gt; &lt;br&gt;  DictionaryType inputdict = reader-&amp;gt;GetMetaDataDictionary();&lt;br&gt;
&lt;br&gt;  writer-&amp;gt;SetMetaDataDictionary( inputdict );&lt;br&gt;   &lt;br&gt;  writer-&amp;gt;SetFileName( argv[2] );&lt;br&gt;&lt;br&gt;  converter-&amp;gt;SetInput( fuzzysegmenter-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  converter-&amp;gt;SetFullyConnected( true );&lt;br&gt;  &lt;br&gt;
  converter-&amp;gt;SetInputForegroundValue( 255 );&lt;br&gt;&lt;br&gt;  converter-&amp;gt;SetOutputBackgroundValue( 0 );&lt;br&gt;&lt;br&gt;  converter-&amp;gt;Update();&lt;br&gt;  &lt;br&gt;  converter2-&amp;gt;SetInput( fuzzysegmenter2-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  converter2-&amp;gt;SetFullyConnected( true );&lt;br&gt;
  &lt;br&gt;  converter2-&amp;gt;SetInputForegroundValue( 255 );&lt;br&gt;&lt;br&gt;  converter2-&amp;gt;SetOutputBackgroundValue( 0 );&lt;br&gt;&lt;br&gt;  converter2-&amp;gt;Update();&lt;br&gt;  &lt;br&gt;  LabelMapType::Pointer labelMap = converter-&amp;gt;GetOutput();&lt;br&gt;&lt;br&gt;
  LabelMapType2::Pointer labelMap2 = converter2-&amp;gt;GetOutput();&lt;br&gt;&lt;br&gt;  std::cout.precision(20);&lt;br&gt;&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;labelMap-&amp;gt;GetNumberOfLabelObjects() = &amp;quot; &amp;lt;&amp;lt; labelMap-&amp;gt;GetNumberOfLabelObjects() &amp;lt;&amp;lt; std::endl;&lt;br&gt;
&lt;br&gt;  std::cout &amp;lt;&amp;lt; &amp;quot;labelMap2-&amp;gt;GetNumberOfLabelObjects() = &amp;quot; &amp;lt;&amp;lt; labelMap2-&amp;gt;GetNumberOfLabelObjects() &amp;lt;&amp;lt; std::endl;&lt;br&gt;&lt;br&gt;  for( unsigned int label=1; label&amp;lt;=labelMap-&amp;gt;GetNumberOfLabelObjects(); label++ )&lt;br&gt;
    {&lt;br&gt;    // we don&amp;#39;t need a SmartPointer of the label object here, because the reference is kept in&lt;br&gt;    // in the label map.&lt;br&gt;    const LabelObjectType * labelObject = labelMap-&amp;gt;GetLabelObject( label );&lt;br&gt;
    std::cout &amp;lt;&amp;lt; label &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject-&amp;gt;GetSize() &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject-&amp;gt;GetPhysicalSize() &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject-&amp;gt;GetCentroid() &amp;lt;&amp;lt; std::endl;&lt;br&gt;
    }&lt;br&gt;  &lt;br&gt;  for( unsigned int label=1; label&amp;lt;=labelMap2-&amp;gt;GetNumberOfLabelObjects(); label++ )&lt;br&gt;    {&lt;br&gt;    // we don&amp;#39;t need a SmartPointer of the label object here, because the reference is kept in&lt;br&gt;    // in the label map.&lt;br&gt;
    const LabelObjectType * labelObject2 = labelMap2-&amp;gt;GetLabelObject( label );&lt;br&gt;    std::cout &amp;lt;&amp;lt; label &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject2-&amp;gt;GetSize() &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject2-&amp;gt;GetPhysicalSize() &amp;lt;&amp;lt; &amp;quot;\t&amp;quot; &amp;lt;&amp;lt; labelObject2-&amp;gt;GetCentroid() &amp;lt;&amp;lt; std::endl;&lt;br&gt;
    }&lt;br&gt;&lt;br&gt;  //added to merge the two label maps&lt;br&gt;  &lt;br&gt;  typedef itk::MergeLabelMapFilter&amp;lt; LabelMapType &amp;gt; ConverterMergeType;&lt;br&gt;&lt;br&gt;  ConverterMergeType::Pointer convertermerge = ConverterMergeType::New();&lt;br&gt;
&lt;br&gt;  /*******************************&lt;br&gt;&lt;br&gt;  how do I merge labelMap and LabelMap2 ?&lt;br&gt;&lt;br&gt;  ********************************/&lt;br&gt;&lt;br&gt;   //end&lt;br&gt;&lt;br&gt;  typedef itk::LabelMapToLabelImageFilter&amp;lt; LabelMapType, BinaryImageType &amp;gt; L2IType;&lt;br&gt;
&lt;br&gt;  L2IType::Pointer l2i = L2IType::New();&lt;br&gt;  &lt;br&gt;  l2i-&amp;gt;SetInput( converter-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  writer-&amp;gt;SetInput( l2i-&amp;gt;GetOutput() );&lt;br&gt;&lt;br&gt;  try&lt;br&gt;    {&lt;br&gt;    writer-&amp;gt;Update();&lt;br&gt;    }&lt;br&gt;  catch( itk::ExceptionObject &amp;amp; excep )&lt;br&gt;
    {&lt;br&gt;    std::cerr &amp;lt;&amp;lt; &amp;quot;Exception caught !&amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br&gt;    std::cerr &amp;lt;&amp;lt; excep &amp;lt;&amp;lt; std::endl;&lt;br&gt;    }&lt;br&gt;  &lt;br&gt;  fwriter-&amp;gt;SetInput( fuzzysegmenter-&amp;gt;GetFuzzyScene() );&lt;br&gt;  fwriter-&amp;gt;Update();&lt;br&gt;
&lt;br&gt;  return 0;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/17 Gaëtan Lehmann &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26832505&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gaetan.lehmann@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Le 17 déc. 09 à 18:22, John Drozd a écrit :&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi,&lt;br&gt;
&lt;br&gt;
Can anyone show me how to use the MergeLabelMapFilter to merge two label maps?&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;&lt;/div&gt;
Hi John,&lt;br&gt;
&lt;br&gt;
You can look at Testing/Code/Review/itkMergeLabelMapFilterTest1.cxx, as an example.&lt;br&gt;
&lt;br&gt;
Can you be more specific on what you want to do?&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;br&gt;
Gaëtan&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Gaëtan Lehmann&lt;br&gt;
Biologie du Développement et de la Reproduction&lt;br&gt;
INRA de Jouy-en-Josas (France)&lt;br&gt;
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09&lt;br&gt;
&lt;a href=&quot;http://voxel.jouy.inra.fr&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://voxel.jouy.inra.fr&lt;/a&gt;  &lt;a href=&quot;http://www.itk.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.mandriva.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.mandriva.org&lt;/a&gt;  &lt;a href=&quot;http://www.bepo.fr&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.bepo.fr&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/itkMergeLabelMapFilter.h-tp26831686p26832505.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26832243</id>
	<title>Re: itkMergeLabelMapFilter.h</title>
	<published>2009-12-17T09:56:24Z</published>
	<updated>2009-12-17T09:56:24Z</updated>
	<author>
		<name>Gaëtan Lehmann-2</name>
	</author>
	<content type="html">&lt;br&gt;Le 17 déc. 09 à 18:22, John Drozd a écrit :
&lt;br&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can anyone show me how to use the MergeLabelMapFilter to merge two &amp;nbsp;
&lt;br&gt;&amp;gt; label maps?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi John,
&lt;br&gt;&lt;br&gt;You can look at Testing/Code/Review/itkMergeLabelMapFilterTest1.cxx, &amp;nbsp;
&lt;br&gt;as an example.
&lt;br&gt;&lt;br&gt;Can you be more specific on what you want to do?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Gaëtan
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Gaëtan Lehmann
&lt;br&gt;Biologie du Développement et de la Reproduction
&lt;br&gt;INRA de Jouy-en-Josas (France)
&lt;br&gt;tel: +33 1 34 65 29 66 &amp;nbsp; &amp;nbsp;fax: 01 34 65 29 09
&lt;br&gt;&lt;a href=&quot;http://voxel.jouy.inra.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://voxel.jouy.inra.fr&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.itk.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.mandriva.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mandriva.org&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.bepo.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bepo.fr&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;PGP.sig&lt;/strong&gt; (210 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26832243/0/PGP.sig&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/itkMergeLabelMapFilter.h-tp26831686p26832243.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26831686</id>
	<title>itkMergeLabelMapFilter.h</title>
	<published>2009-12-17T09:22:09Z</published>
	<updated>2009-12-17T09:22:09Z</updated>
	<author>
		<name>John Drozd</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;Can anyone show me how to use the MergeLabelMapFilter to merge two label maps?&lt;br&gt;&lt;br&gt;john&lt;br&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/itkMergeLabelMapFilter.h-tp26831686p26831686.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26831395</id>
	<title>Re: Transformation of vtkPolyData with an itk::Transform</title>
	<published>2009-12-17T08:57:02Z</published>
	<updated>2009-12-17T08:57:02Z</updated>
	<author>
		<name>Sajendra N</name>
	</author>
	<content type="html">Hello Gerald,
&lt;br&gt;&lt;br&gt;You will likely need to use the inverse of the transform computed from
&lt;br&gt;itk registration to transform your vtk polydata.
&lt;br&gt;The transform you have maps points from the fixed image space into the
&lt;br&gt;moving image space (so that it can be used to resample the moving
&lt;br&gt;image). If you want to transform points from the moving image space
&lt;br&gt;into the fixed image space, you need the inverse of that transform.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Sajendra
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Dec 17, 2009 at 5:27 AM, Lodron, Gerald
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26831395&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gerald.Lodron@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I currently made a point selector which stores it's points into a vtkPolyData structure.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now I successfully made a image registration which converted the vtk image into itk, registered (transformed with itk::ResampleImageFilter) it and converted it back to vtk for visualization. Now the points of the vtkPolyData object are misaligned and I need to transform them. My point transformation implementation looks like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The problem is that the points does not fit to their old position, so there must be something wrong with the transformPoint operation?
&lt;br&gt;&amp;gt;
&lt;/div&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Transformation-of-vtkPolyData-with-an-itk%3A%3ATransform-tp26826000p26831395.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830968</id>
	<title>Re: troubles while building itk 3.16 for snow leopard - 10.6</title>
	<published>2009-12-17T08:36:49Z</published>
	<updated>2009-12-17T08:36:49Z</updated>
	<author>
		<name>jelle feringa-2</name>
	</author>
	<content type="html">&amp;gt; I would say &amp;quot;yes&amp;quot;. I think gccxml in that package produces an xml &amp;nbsp;
&lt;br&gt;&amp;gt; description for a 32 bit build.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You should try to build it in 64 bit.
&lt;br&gt;&lt;br&gt;thanks! that helps a lot!
&lt;br&gt;&lt;br&gt;cheers,
&lt;br&gt;&lt;br&gt;-jelle
&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/troubles-while-building-itk-3.16-for-snow-leopard---10.6-tp26745352p26830968.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830721</id>
	<title>Re: troubles while building itk 3.16 for snow leopard - 10.6</title>
	<published>2009-12-17T08:22:48Z</published>
	<updated>2009-12-17T08:22:48Z</updated>
	<author>
		<name>Gaëtan Lehmann-2</name>
	</author>
	<content type="html">&lt;br&gt;Le 11 déc. 09 à 15:35, jelle a écrit :
&lt;br&gt;&lt;br&gt;&amp;gt; hi,
&lt;br&gt;&lt;br&gt;Hi Jelle,
&lt;br&gt;&lt;br&gt;Sorry again for the late reply.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to build itk 3.16 on snow leopard, with wrapitk enabled.
&lt;br&gt;&amp;gt; My goal is to build the wrappers for 64 bit python 2.6.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've got Xcode 3.2 / swig 1.3.40 installed and CableSwig from:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://code.google.com/p/wrapitk/wiki/WrapITKBinaries&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/wrapitk/wiki/WrapITKBinaries&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; While building itk, I run into the following error.
&lt;br&gt;&amp;gt; Any ideas what I can do to overcome this issue?
&lt;br&gt;&amp;gt; Should I build CableSwig from scratch?
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;I would say &amp;quot;yes&amp;quot;. I think gccxml in that package produces an xml &amp;nbsp;
&lt;br&gt;description for a 32 bit build.
&lt;br&gt;&lt;br&gt;You should try to build it in 64 bit.
&lt;br&gt;&lt;br&gt;Gaëtan
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Gaëtan Lehmann
&lt;br&gt;Biologie du Développement et de la Reproduction
&lt;br&gt;INRA de Jouy-en-Josas (France)
&lt;br&gt;tel: +33 1 34 65 29 66 &amp;nbsp; &amp;nbsp;fax: 01 34 65 29 09
&lt;br&gt;&lt;a href=&quot;http://voxel.jouy.inra.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://voxel.jouy.inra.fr&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.itk.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.mandriva.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mandriva.org&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.bepo.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bepo.fr&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;PGP.sig&lt;/strong&gt; (210 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26830721/0/PGP.sig&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/troubles-while-building-itk-3.16-for-snow-leopard---10.6-tp26745352p26830721.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830586</id>
	<title>Re: MaximumImageFilter with Inputimage index</title>
	<published>2009-12-17T08:15:29Z</published>
	<updated>2009-12-17T08:15:29Z</updated>
	<author>
		<name>Gaëtan Lehmann-2</name>
	</author>
	<content type="html">&lt;br&gt;Le 14 déc. 09 à 12:58, Stefan Dietrich a écrit :
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi together,
&lt;br&gt;&amp;gt; I'm using itk with Python and currently I'm stuck in a part o my &amp;nbsp;
&lt;br&gt;&amp;gt; algorithm which has to compare
&lt;br&gt;&amp;gt; say up to 30 3d images and fin the corresponding maximum in each &amp;nbsp;
&lt;br&gt;&amp;gt; voxel.
&lt;br&gt;&amp;gt; My idea was now to start from the first image and com pare this with &amp;nbsp;
&lt;br&gt;&amp;gt; the second one.
&lt;br&gt;&amp;gt; Using
&lt;br&gt;&amp;gt; itk.MaximumImageFilter
&lt;br&gt;&amp;gt; I can produce an output image with the maximum values of each image.
&lt;br&gt;&amp;gt; But now I also want to keep an additional image with the image- 
&lt;br&gt;&amp;gt; number where the maximum grayvalue
&lt;br&gt;&amp;gt; occured.
&lt;br&gt;&amp;gt; Is such a method implemented in the MaximumImageFilter?.
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;I'm not aware of this kind of feature in ITK.
&lt;br&gt;&lt;br&gt;You may want to implement it by yourself, for example by subclassing &amp;nbsp;
&lt;br&gt;NaryFunctorImageFilter.
&lt;br&gt;You can then wrap the class quite easily in python with wrapitk's &amp;nbsp;
&lt;br&gt;external projects.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Gaëtan
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Gaëtan Lehmann
&lt;br&gt;Biologie du Développement et de la Reproduction
&lt;br&gt;INRA de Jouy-en-Josas (France)
&lt;br&gt;tel: +33 1 34 65 29 66 &amp;nbsp; &amp;nbsp;fax: 01 34 65 29 09
&lt;br&gt;&lt;a href=&quot;http://voxel.jouy.inra.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://voxel.jouy.inra.fr&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.itk.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.mandriva.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mandriva.org&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.bepo.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bepo.fr&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;PGP.sig&lt;/strong&gt; (210 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26830586/0/PGP.sig&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MaximumImageFilter-with-Inputimage-index-tp26776658p26830586.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830532</id>
	<title>Re: combining output from segmentation with label	map attributes using Gaetan Lehmann's paper: &quot;Label object	representation and manipulation with ITK&quot;</title>
	<published>2009-12-17T08:12:33Z</published>
	<updated>2009-12-17T08:12:33Z</updated>
	<author>
		<name>Gaëtan Lehmann-2</name>
	</author>
	<content type="html">&lt;br&gt;Le 15 déc. 09 à 21:40, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830532&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lynx.abraxas@...&lt;/a&gt; a écrit :
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 11/12/09 11:30:08, Luis Ibanez wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;itkLabelGeometryImageFilter.h
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; that is described in the Insight Journal paper:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;A Label Geometry Image Filter for Multiple Object Measurement&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; by Padfield D., Miller J. from GE Global Research
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.insight-journal.org/browse/publication/301&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.insight-journal.org/browse/publication/301&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://hdl.handle.net/1926/1493&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hdl.handle.net/1926/1493&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm getting confiused. How do itkLabelGeometryImageFilter.h and &amp;nbsp;
&lt;br&gt;&amp;gt; itkBinaryImageToShapeLabelMapFilter.h (from &lt;a href=&quot;http://www.insight-journal.org/browse/publication/176&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.insight-journal.org/browse/publication/176&lt;/a&gt;) 
&lt;br&gt;&amp;gt; &amp;nbsp;differ (except for the additionaly analized quantities)?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It looks like Gaëtan's publication was earlier but it seems to &amp;nbsp;
&lt;br&gt;&amp;gt; include itkLabelGeometryImageFilter.h, is that correct?
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;Those two classes provide similar features, but there are a few &amp;nbsp;
&lt;br&gt;differences. There is no code shared in those contributions.
&lt;br&gt;&lt;br&gt;I believe that the LabelMap contribution provide a better &amp;nbsp;
&lt;br&gt;infrastructure, but well, that's the opinion of the developer, so it &amp;nbsp;
&lt;br&gt;might be quite biased :-)
&lt;br&gt;I also believe that ITK really needs this kind of feature, but &amp;nbsp;
&lt;br&gt;introducing them twice seems a bit strange and confusing for the final &amp;nbsp;
&lt;br&gt;user.
&lt;br&gt;&lt;br&gt;Gaëtan
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Gaëtan Lehmann
&lt;br&gt;Biologie du Développement et de la Reproduction
&lt;br&gt;INRA de Jouy-en-Josas (France)
&lt;br&gt;tel: +33 1 34 65 29 66 &amp;nbsp; &amp;nbsp;fax: 01 34 65 29 09
&lt;br&gt;&lt;a href=&quot;http://voxel.jouy.inra.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://voxel.jouy.inra.fr&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.itk.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.mandriva.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mandriva.org&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.bepo.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bepo.fr&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;PGP.sig&lt;/strong&gt; (210 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26830532/0/PGP.sig&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/combining-output-from-segmentation-with-label-map-attributes-using-Gaetan-Lehmann%27s-paper%3A-%22Label-object-representation-and-manipulation-with-ITK%22-tp26699485p26830532.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830388</id>
	<title>Re: WrapITK, Java, Windows and exception</title>
	<published>2009-12-17T08:04:33Z</published>
	<updated>2009-12-17T08:04:33Z</updated>
	<author>
		<name>Gaëtan Lehmann-2</name>
	</author>
	<content type="html">&lt;br&gt;Le 16 déc. 09 à 09:22, Julien Michel a écrit :
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear ITK,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; These four does not seem to be friend. On my linux system, when &amp;nbsp;
&lt;br&gt;&amp;gt; using a java/WrapITK program and providing it with a wrong filename, &amp;nbsp;
&lt;br&gt;&amp;gt; I got a very informative message corresponding to the unhandled &amp;nbsp;
&lt;br&gt;&amp;gt; exception, which allows me to understand that the input filename is &amp;nbsp;
&lt;br&gt;&amp;gt; bad.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Windows whenever an unhandled exception is thrown, Java crashes &amp;nbsp;
&lt;br&gt;&amp;gt; with the following message :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt; # An unexpected error has been detected by Java Runtime Environment:
&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt; # &amp;nbsp;Internal Error (0xe06d7363), pid=2244, tid=3556
&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt; # Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
&lt;br&gt;&amp;gt; # Problematic frame:
&lt;br&gt;&amp;gt; # C &amp;nbsp;[kernel32.dll+0x1eb33]
&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt; # An error report file with more information is saved as &amp;nbsp;
&lt;br&gt;&amp;gt; hs_err_pid2244.log
&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt; # If you would like to submit a bug report, please visit:
&lt;br&gt;&amp;gt; # &amp;nbsp; &lt;a href=&quot;http://java.sun.com/webapps/bugreport/crash.jsp&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/webapps/bugreport/crash.jsp&lt;/a&gt;&lt;br&gt;&amp;gt; #
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I searched for a while, beeing a non-specialist in JNI/Java, before &amp;nbsp;
&lt;br&gt;&amp;gt; understanding that it was due to the very same exception that on &amp;nbsp;
&lt;br&gt;&amp;gt; linux.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any clue on how to enhance exception handling of WrapITK on the &amp;nbsp;
&lt;br&gt;&amp;gt; windows side ?
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;Hi Julien,
&lt;br&gt;&lt;br&gt;In python, we have
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;%exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$action
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;} catch (const std::out_of_range&amp; e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SWIG_exception_fail(SWIG_IndexError, e.what());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;} catch (const std::exception&amp; e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SWIG_exception_fail(SWIG_RuntimeError, e.what());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;in wrap_pyBase.i, to customize the exception handling.
&lt;br&gt;&lt;br&gt;I can't find anything similar in Java directory.
&lt;br&gt;&lt;br&gt;Maybe you should try to add the same kind of customization in &amp;nbsp;
&lt;br&gt;wrap_javaBase.i or in java.i?
&lt;br&gt;(BTW, those two files should be merged in the future.)
&lt;br&gt;&lt;br&gt;Gaëtan
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Gaëtan Lehmann
&lt;br&gt;Biologie du Développement et de la Reproduction
&lt;br&gt;INRA de Jouy-en-Josas (France)
&lt;br&gt;tel: +33 1 34 65 29 66 &amp;nbsp; &amp;nbsp;fax: 01 34 65 29 09
&lt;br&gt;&lt;a href=&quot;http://voxel.jouy.inra.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://voxel.jouy.inra.fr&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.itk.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.mandriva.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mandriva.org&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.bepo.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bepo.fr&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;PGP.sig&lt;/strong&gt; (210 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26830388/0/PGP.sig&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WrapITK%2C-Java%2C-Windows-and-exception-tp26807735p26830388.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830187</id>
	<title>Re: C2440 when reinterpret_cast-ing from base to specific class</title>
	<published>2009-12-17T07:53:18Z</published>
	<updated>2009-12-17T07:53:18Z</updated>
	<author>
		<name>Gaëtan Lehmann-2</name>
	</author>
	<content type="html">&lt;br&gt;Le 16 déc. 09 à 22:44, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830187&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;itkvtk123@...&lt;/a&gt; a écrit :
&lt;br&gt;&lt;br&gt;&amp;gt; Thank you. Your code
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; reinterpret_cast&amp;lt;GradientDescentType*&amp;gt;(optimizer.GetPointer())- 
&lt;br&gt;&amp;gt; &amp;gt;SetRelaxationFactor(0.5);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; did the trick.
&lt;br&gt;&amp;gt; I knew that the pointer might be the reason, but I was not aware of &amp;nbsp;
&lt;br&gt;&amp;gt; the GetPointer() function.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Just a comment on reinterpret_cast: you usually don't need it, and it &amp;nbsp;
&lt;br&gt;is often very dangerous.
&lt;br&gt;In that case, a dynamic_cast seems more appropriate to me.
&lt;br&gt;&lt;br&gt;Gaëtan
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Gaëtan Lehmann
&lt;br&gt;Biologie du Développement et de la Reproduction
&lt;br&gt;INRA de Jouy-en-Josas (France)
&lt;br&gt;tel: +33 1 34 65 29 66 &amp;nbsp; &amp;nbsp;fax: 01 34 65 29 09
&lt;br&gt;&lt;a href=&quot;http://voxel.jouy.inra.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://voxel.jouy.inra.fr&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.itk.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.mandriva.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mandriva.org&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.bepo.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bepo.fr&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;PGP.sig&lt;/strong&gt; (210 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26830187/0/PGP.sig&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C2440-when-reinterpret_cast-ing-from-base-to-specific-class-tp26817675p26830187.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26830128</id>
	<title>Re: priors in itkBayesianClassifierImageFilter</title>
	<published>2009-12-17T07:48:25Z</published>
	<updated>2009-12-17T07:48:25Z</updated>
	<author>
		<name>Gaëtan Lehmann-2</name>
	</author>
	<content type="html">&lt;br&gt;Hi Karthik,
&lt;br&gt;&lt;br&gt;It seems that those changes are breaking wrapitk build:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.cdash.org/CDash/viewBuildError.php?buildid=495103&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cdash.org/CDash/viewBuildError.php?buildid=495103&lt;/a&gt;&lt;br&gt;&lt;br&gt;Maybe this is due to a instantiation with the wrong type. I put the &amp;nbsp;
&lt;br&gt;list at the end - please let me know if there is something wrong.
&lt;br&gt;&lt;br&gt;Gaëtan
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;unsigned char,2 &amp;gt;, unsigned char, float &amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIUC2UCF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;unsigned char,2 &amp;gt;, unsigned short, float &amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIUC2USF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;unsigned short,2 &amp;gt;, unsigned char, float &amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIUS2UCF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;unsigned short,2 &amp;gt;, unsigned short, float &amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIUS2USF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;float,2 &amp;gt;, unsigned char, float &amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIF2UCF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;float,2 &amp;gt;, unsigned short, float &amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIF2USF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;unsigned char,3 &amp;gt;, unsigned char, float &amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIUC3UCF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;unsigned char,3 &amp;gt;, unsigned short, float &amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIUC3USF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;unsigned short,3 &amp;gt;, unsigned char, float &amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIUS3UCF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;unsigned short,3 &amp;gt;, unsigned short, float &amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIUS3USF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;float,3 &amp;gt;, unsigned char, float &amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIF3UCF;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;typedef itk::BayesianClassifierImageFilter&amp;lt; itk::VectorImage&amp;lt; &amp;nbsp;
&lt;br&gt;float,3 &amp;gt;, unsigned short, float &amp;gt;::BayesianClassifierImageFilter &amp;nbsp;
&lt;br&gt;itkBayesianClassifierImageFilterVIF3USF;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Le 16 déc. 09 à 21:58, Karthik Krishnan a écrit :
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; sorry.. been busy.. Indeed you are right.. Please update again...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /cvsroot/Insight/Insight/Code/Algorithms/ 
&lt;br&gt;&amp;gt; itkBayesianClassifierImageFilter.txx,v
&lt;br&gt;&amp;gt; &amp;lt;-- &amp;nbsp;itkBayesianClassifierImageFilter.txx
&lt;br&gt;&amp;gt; new revision: 1.11; previous revision: 1.10
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'll try and check in a test this weekend that exercises specifying a
&lt;br&gt;&amp;gt; prior vector image. (As Luis would say, If is not tested, it is
&lt;br&gt;&amp;gt; broken, and indeed it was :) )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Dec 15, 2009 at 7:44 AM, Bruno Arbter
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830128&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bruno.arbter@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Works fine up to the calculation of the posteriors with priors &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; (line 205 in
&lt;br&gt;&amp;gt;&amp;gt; itkBayesianClassifierImageFilter.txx). I'm not very familiar with &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; iterators
&lt;br&gt;&amp;gt;&amp;gt; up to now, but the posteriors cannot be accessed in this way
&lt;br&gt;&amp;gt;&amp;gt; (posteriors[i]=). Perhaps the variable needs some kind of memory &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; allocation,
&lt;br&gt;&amp;gt;&amp;gt; doesn't it?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Von: Karthik Krishnan [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830128&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karthik.krishnan@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Gesendet: Dienstag, 15. Dezember 2009 11:32
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; An: Bruno Arbter
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830128&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;insight-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Betreff: Re: [Insight-users] priors in &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; itkBayesianClassifierImageFilter
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks for catching this...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Fix committed :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /cvsroot/Insight/Insight/Code/Algorithms/ 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; itkBayesianClassifierImageFilt
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; er.h,v
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;&amp;lt;-- &amp;nbsp;itkBayesianClassifierImageFilter.h
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; new revision: 1.16; previous revision: 1.15
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /cvsroot/Insight/Insight/Code/Algorithms/ 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; itkBayesianClassifierImageFilt
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; er.txx,v
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;&amp;lt;-- &amp;nbsp;itkBayesianClassifierImageFilter.txx
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; new revision: 1.10; previous revision: 1.9
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Update and please let us know..
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Tue, Dec 15, 2009 at 5:10 AM, Bruno Arbter
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830128&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bruno.arbter@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Okay, priors can be set via SetInput - but the flag
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; m_UserProvidedPriors in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; itkBayesianClassifierImageFilter remains false, and therefore the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; priors are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; not used without changing the constructor.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is there an example that really uses priors?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Bruno
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Von: Karthik Krishnan [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830128&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karthik.krishnan@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Gesendet: Montag, 14. Dezember 2009 14:14
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; An: Bruno Arbter
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830128&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;insight-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Betreff: Re: [Insight-users] priors in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; itkBayesianClassifierImageFilter
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Take a look at Examples/Statistics/BayesianClassifier.cxx: and at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Examples/Statistics/BayesianClassifierInitializer.cxx:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; This class does have a method to set the priors. The prior image
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; expected (optionally as the second input) is a N component
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; VectorImage, where N is the number of classes. If the prior &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; image is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; not specified, a uniform distribution is taken, (ie no priors.).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The API to do this is simply....
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;filter-&amp;gt;SetInput( 1, priorVectorImage );
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; This is documented clearly in the doxygen.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; karthik
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Mon, Dec 14, 2009 at 7:47 AM, Bruno Arbter
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26830128&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bruno.arbter@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I want to use itkBayesianClassifierImageFilter with priors but I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; cannot find
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; any function to set the priors (e.g. SetPriors) in the class
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; itkBayesianClassifierImageFilter. How is the correct way to set
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; priors?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Bruno
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Karthik Krishnan
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; R&amp;D Engineer,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Kitware Inc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Ph: +1 5188814919, +91 9538477060
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Karthik Krishnan
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; R&amp;D Engineer,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Kitware Inc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ph: +1 5188814919, +91 9538477060
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; _________________________________
&lt;br&gt;&amp;gt; Karthik Krishnan
&lt;br&gt;&amp;gt; R&amp;D Engineer,
&lt;br&gt;&amp;gt; Kitware Inc.
&lt;br&gt;&amp;gt; Ph: +1 5188814919, +91 9538477060
&lt;br&gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;-- 
&lt;br&gt;Gaëtan Lehmann
&lt;br&gt;Biologie du Développement et de la Reproduction
&lt;br&gt;INRA de Jouy-en-Josas (France)
&lt;br&gt;tel: +33 1 34 65 29 66 &amp;nbsp; &amp;nbsp;fax: 01 34 65 29 09
&lt;br&gt;&lt;a href=&quot;http://voxel.jouy.inra.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://voxel.jouy.inra.fr&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.itk.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.mandriva.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mandriva.org&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://www.bepo.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bepo.fr&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;PGP.sig&lt;/strong&gt; (210 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26830128/0/PGP.sig&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/priors-in-itkBayesianClassifierImageFilter-tp26777209p26830128.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26826141</id>
	<title>WG: Question on itk::ResampleImageFilter for up and downsampling images</title>
	<published>2009-12-17T02:41:13Z</published>
	<updated>2009-12-17T02:41:13Z</updated>
	<author>
		<name>Lodron, Gerald</name>
	</author>
	<content type="html">&amp;nbsp;OK there is really a bug in the checkerboard function of vtk. The images must be defenitely of the same size to align the images correct.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Ursprüngliche Nachricht-----
&lt;br&gt;Von: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;insight-users-bounces@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;insight-users-bounces@...&lt;/a&gt;] Im Auftrag von Lodron, Gerald
&lt;br&gt;Gesendet: Donnerstag, 03. Dezember 2009 17:41
&lt;br&gt;An: Bill Lorensen
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;insight-users@...&lt;/a&gt;
&lt;br&gt;Betreff: Re: [Insight-users] Question on itk::ResampleImageFilter for up and downsampling images
&lt;br&gt;&lt;br&gt;&lt;br&gt;I already saw that but i want to allow upscaling as well as downscaling (and i think the shrink filter is only for one direction). The other thing is that i want also to specify the up/downscaling per direction (anisotropic, the shrink filter makes it isotropic). I read DICOM images so i should not change the position of the image at all (the images which should be down/upscaled are registered and should also be registered after &amp;nbsp;up/downscaling). 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;-----Ursprüngliche Nachricht-----
&lt;br&gt;Von: Bill Lorensen [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bill.lorensen@...&lt;/a&gt;]
&lt;br&gt;Gesendet: Donnerstag, 03. Dezember 2009 17:36
&lt;br&gt;An: Lodron, Gerald
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;insight-users@...&lt;/a&gt;
&lt;br&gt;Betreff: Re: [Insight-users] Question on itk::ResampleImageFilter for up and downsampling images
&lt;br&gt;&lt;br&gt;Gerald,
&lt;br&gt;&lt;br&gt;Another approach we used in itkShrinkImageFIlter modifies the origin of the output so that the center's of the input and output align. I think this is what you want. Here is a snippet from Code/BasicFilters/itkShrinkImageFilter.txx. In your case, the input and output start index should be 0.
&lt;br&gt;&lt;br&gt;&amp;nbsp; // Compute origin offset
&lt;br&gt;&amp;nbsp; // The physical center's of the input and output should be the same
&lt;br&gt;&amp;nbsp; ContinuousIndex&amp;lt;double, TOutputImage::ImageDimension&amp;gt; inputCenterIndex;
&lt;br&gt;&amp;nbsp; ContinuousIndex&amp;lt;double, TOutputImage::ImageDimension&amp;gt; outputCenterIndex;
&lt;br&gt;&amp;nbsp; for (i = 0; i &amp;lt; TOutputImage::ImageDimension; i++)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; inputCenterIndex[i] = inputStartIndex[i] + (inputSize[i] - 1) / 2.0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; outputCenterIndex[i] = outputStartIndex[i] + (outputSize[i] - 1) / 2.0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; typename TOutputImage::PointType inputCenterPoint;
&lt;br&gt;&amp;nbsp; typename TOutputImage::PointType outputCenterPoint;
&lt;br&gt;&amp;nbsp; inputPtr-&amp;gt;TransformContinuousIndexToPhysicalPoint(inputCenterIndex,
&lt;br&gt;inputCenterPoint);
&lt;br&gt;&amp;nbsp; outputPtr-&amp;gt;TransformContinuousIndexToPhysicalPoint(outputCenterIndex,
&lt;br&gt;outputCenterPoint);
&lt;br&gt;&lt;br&gt;&amp;nbsp; typename TOutputImage::PointType outputOrigin = outputPtr-&amp;gt;GetOrigin();
&lt;br&gt;&amp;nbsp; outputOrigin = outputOrigin + (inputCenterPoint - outputCenterPoint);
&lt;br&gt;&amp;nbsp; outputPtr-&amp;gt;SetOrigin(outputOrigin);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Dec 3, 2009 at 11:07 AM, Bill Lorensen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bill.lorensen@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sorry I read your e-mail too quickly.
&lt;br&gt;&amp;gt; Attached is code I wrote a while back. It keep the same origin, but 
&lt;br&gt;&amp;gt; adjusts the spacing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bill
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Dec 3, 2009 at 10:37 AM, Lodron, Gerald 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gerald.Lodron@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; No, i am already using 3.16 and i did not changed such a flag.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Best regards
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt;&amp;gt; Von: Bill Lorensen [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bill.lorensen@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Gesendet: Donnerstag, 03. Dezember 2009 16:35
&lt;br&gt;&amp;gt;&amp;gt; An: Lodron, Gerald
&lt;br&gt;&amp;gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;insight-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Betreff: Re: [Insight-users] Question on itk::ResampleImageFilter for 
&lt;br&gt;&amp;gt;&amp;gt; up and downsampling images
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What version of itk are you using? Prior to itk 3.16 there was an issue with the location of sample points. IN 3.16 we changed the default for ITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY to be ON.
&lt;br&gt;&amp;gt;&amp;gt; This made itk consistent with the behavior described in the software guide. It also corrected the 1/2 pixel offset you are seeing when down/up sampling.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If you are using 3.14, you can set
&lt;br&gt;&amp;gt;&amp;gt; ITK_USE_CENTERED_PIXEL_COORDINATES_CONSISTENTLY ON when you run cmake.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Bill
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Thu, Dec 3, 2009 at 9:49 AM, Lodron, Gerald &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26826141&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gerald.Lodron@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I want to write a code to reduce/increase the resolution of an image and i am using the itk::ResampleImageFilter. The code works fine but there is one small problem: When i compare the original and the resampled image with a checkerboard i see that the images are not registered any more (so there must be a problem with the origin). How should i set the origin? Here my code:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Input:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Int *iDownsampleFactor;                                 // = e.g.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; {2,0.5,4}; Itk::OrientedImage&amp;lt;PixelType ,3&amp;gt;::Pointer image;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Code:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Typedef itk::ResampleImageFilter&amp;lt;InputImageType, OutputImageType,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; InterpolationPrecisionType&amp;gt; ResampleType;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ResampleType::Pointer  resampler = ResampleType::New();
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; OutputImageType::SpacingType                    Spacing; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; OutputImageType::PointType                      Origin; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; OutputImageType::DirectionType          Direction =
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; image-&amp;gt;GetDirection(); OutputImageType::SizeType
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Size; OutputImageType::RegionType::IndexType  Index =
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; image-&amp;gt;getLargestPossibleRegion().GetIndex();
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For (int i=0; i&amp;lt;3; i++)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        Spacing[i] = image-&amp;gt;GetSpacing()[i] * iDownsampleFactor[i] ;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        Origin[i] = image-&amp;gt;GetOrigin()[i];//????????????????????
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;        Size[i] =
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; image-&amp;gt;GetLargestPossibleRegion().GetSize()[i]/iDownsampleFactor[i]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; image-&amp;gt;;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Resampler-&amp;gt;SetInput(image);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; resampler-&amp;gt;SetOutputSpacing( Spacing ); SetOutputOrigin(  Origin  ); 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; resampler-&amp;gt;SetOutputDirection(  Direction  ); SetSize( Size ); 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; resampler-&amp;gt;SetOutputStartIndex(  Index );
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Output = resampler-&amp;gt;GetOutput();        //Wrong 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; alignment/registration to input
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Best regards
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Visit other Kitware open-source projects at 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WG%3A-Question-on-itk%3A%3AResampleImageFilter-for-up-and-downsampling-images-tp26826141p26826141.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26826000</id>
	<title>Transformation of vtkPolyData with an itk::Transform</title>
	<published>2009-12-17T02:27:49Z</published>
	<updated>2009-12-17T02:27:49Z</updated>
	<author>
		<name>Lodron, Gerald</name>
	</author>
	<content type="html">Hello
&lt;br&gt;&lt;br&gt;I currently made a point selector which stores it's points into a vtkPolyData structure.
&lt;br&gt;&lt;br&gt;Now I successfully made a image registration which converted the vtk image into itk, registered (transformed with itk::ResampleImageFilter) it and converted it back to vtk for visualization. Now the points of the vtkPolyData object are misaligned and I need to transform them. My point transformation implementation looks like this:
&lt;br&gt;&lt;br&gt;&lt;br&gt;Input:
&lt;br&gt;&lt;br&gt;vtkPolyData poly; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Point cloud
&lt;br&gt;Itk::Transformation&amp;lt;&amp;gt; transf; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //itk Transformation result of registration process
&lt;br&gt;&lt;br&gt;Code:
&lt;br&gt;vtkSmartPointer&amp;lt;vtkPolyData&amp;gt; transformedpoly = vtkPolyData::New(); &amp;nbsp; &amp;nbsp; &amp;nbsp;//new transformed polydata
&lt;br&gt;Transformedpoly-&amp;gt;DeepCopy(poly);
&lt;br&gt;&lt;br&gt;for(int j=0; j&amp;lt;poly-&amp;gt;GetNumberOfPoints();j++)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Itk::Transformation&amp;lt;&amp;gt; ::InputPointType point;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(int k=0; k &amp;lt; Transform33Type::InputPointType::PointDimension; k++)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; point[k] = poly-&amp;gt;GetPoint(j)[k];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Itk::Transformation&amp;lt;&amp;gt; ::OutputPointType transformedPoint = transform-&amp;gt;TransformPoint(point);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float afTransfPoint[Transform33Type::OutputPointType::PointDimension];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(int k=0; k &amp;lt; Transform33Type::OutputPointType::PointDimension; k++)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; afTransfPoint[k] = transformedPoint[k];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Transformedpoly-&amp;gt;GetPoints()-&amp;gt;SetPoint(j,afTransfPoint);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;The problem is that the points does not fit to their old position, so there must be something wrong with the transformPoint operation?
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Transformation-of-vtkPolyData-with-an-itk%3A%3ATransform-tp26826000p26826000.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825714</id>
	<title>Re: uuid.h not found in compiling gdcm</title>
	<published>2009-12-17T02:01:19Z</published>
	<updated>2009-12-17T02:01:19Z</updated>
	<author>
		<name>malat</name>
	</author>
	<content type="html">On Thu, Dec 17, 2009 at 3:54 AM, Gao, Yi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26825714&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gaoyi.cn@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; So i'm still guessing the gdcm in itk source may possibly have some
&lt;br&gt;&amp;gt; include path problem.
&lt;br&gt;&lt;br&gt;The only way to have gdcmUtil.cxx use uuid/uuid.h, is by HAVING uuid/uuid.h
&lt;br&gt;I am not sure how you got there, but cmake code is:
&lt;br&gt;&lt;br&gt;FIND_PACKAGE(UUID)
&lt;br&gt;IF(UUID_FOUND)
&lt;br&gt;&amp;nbsp; SET(GDCM_SYSTEM_UUID_FOUND 1)
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;You may want to check why uuid/uuid. is found at cmake time, but not
&lt;br&gt;at build time...
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;-- 
&lt;br&gt;Mathieu
&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/uuid.h-not-found-in-compiling-gdcm-tp26821626p26825714.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26825252</id>
	<title>Confusion with direction cosines in DICOM, tag 0020|0037</title>
	<published>2009-12-17T01:22:06Z</published>
	<updated>2009-12-17T01:22:06Z</updated>
	<author>
		<name>Patrik.Br.</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I was wondering how to use the direction cosines in DICOM when contructing a direction/rotation matrix. Should the six numbers in tag 0020|0037 represent the first two columns or the first two rows of the matrix?
&lt;br&gt;&lt;br&gt;An ITK bug report suggests (i think) that they are the first two row vectors:
&lt;br&gt;&lt;a href=&quot;http://www.cmake.org/Bug/view.php?id=7748&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cmake.org/Bug/view.php?id=7748&lt;/a&gt;&lt;br&gt;&lt;br&gt;...but some nifti documentation seem to state the opposite (down the bottom of the page):
&lt;br&gt;&lt;a href=&quot;http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/quatern.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/quatern.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;A short educational pdf-document implies they are the row vectors of the matrix:
&lt;br&gt;&lt;a href=&quot;http://www.ae.uiuc.edu/~tbretl/ae403/handouts/06-dcm.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ae.uiuc.edu/~tbretl/ae403/handouts/06-dcm.pdf&lt;/a&gt;&lt;br&gt;&lt;br&gt;...but wikipedia seems to state that they should be interpreted as the column vectors of the matrix:
&lt;br&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Rotation_representation_(mathematics)#Rotation_matrix_.28or_direction_cosine_matrix.2C_DCM.29&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Rotation_representation_(mathematics)#Rotation_matrix_.28or_direction_cosine_matrix.2C_DCM.29&lt;/a&gt;&lt;br&gt;&lt;br&gt;Can someone de-confuse me?!
&lt;br&gt;&lt;br&gt;Thanks in advance,
&lt;br&gt;&lt;br&gt;//Patrik&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Confusion-with-direction-cosines-in-DICOM%2C-tag-0020%7C0037-tp26825252p26825252.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26823695</id>
	<title>hello all,</title>
	<published>2009-12-16T22:12:34Z</published>
	<updated>2009-12-16T22:12:34Z</updated>
	<author>
		<name>sravan kumar-3</name>
	</author>
	<content type="html">I am successful in configuring the ITK for Fedora 10.Actually, i need to use this ITK for an Embedded System based on ARM 9 processor having linux 2.6.20 kernel.&lt;br&gt;&lt;br&gt;Ca this ITK be used for Embedded Systems.If so, please tell me how to do it.&lt;br&gt;

Thanking you&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Y.Sravan Kumar&lt;br&gt;II M.Tech(CS),&lt;br&gt;Sri Sathya Sai University,&lt;br&gt;PRASHANTINILAYAM - 515134&lt;br&gt;&lt;br&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/hello-all%2C-tp26823695p26823695.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26822355</id>
	<title>Re: uuid.h not found in compiling gdcm</title>
	<published>2009-12-16T18:54:57Z</published>
	<updated>2009-12-16T18:54:57Z</updated>
	<author>
		<name>Gao, Yi</name>
	</author>
	<content type="html">To follow up: I made it by compiling gdcm alone:
&lt;br&gt;&lt;br&gt;1. download gdcm-2.0.14.tar.bz2
&lt;br&gt;&lt;br&gt;2. build gdcm using ccmake and make (the CMAKE_PREFIX_PATH is
&lt;br&gt;available, so gdcm can find uuid in /home/gaoyi/local/)
&lt;br&gt;&lt;br&gt;3. build itk, turn ITK_USE_SYSTEM_GDCM to ON
&lt;br&gt;&lt;br&gt;4. cmake will ask for dir of gdcm. point it to gdcm-bin (where the
&lt;br&gt;out-source binary dir of gdcm)
&lt;br&gt;&lt;br&gt;5. make
&lt;br&gt;&lt;br&gt;itk build successfully.
&lt;br&gt;&lt;br&gt;So i'm still guessing the gdcm in itk source may possibly have some
&lt;br&gt;include path problem.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;yi
&lt;br&gt;&lt;br&gt;On Wed, Dec 16, 2009 at 8:25 PM, Gao, Yi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26822355&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gaoyi.cn@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm building ITK on a machine which does not have uuid, nor do I have root.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So I download the e2fsprogs 1.41.9, and build it as:
&lt;br&gt;&amp;gt; ./configure --prefix=/home/gaoyi/usr/local
&lt;br&gt;&amp;gt; make
&lt;br&gt;&amp;gt; make install-lib
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then I can see the header: /home/gaoyi/usr/local/include/uuid/uuid.h
&lt;br&gt;&amp;gt; and the lib: /home/gaoyi/usr/local/lib/libuuid.a
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then I set the env:
&lt;br&gt;&amp;gt; export CMAKE_PREFIX_PATH=/home/gaoyi/usr/local
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then in itk-bin I did:
&lt;br&gt;&amp;gt; ccmake ../InsightToolkit-3.16.0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And it won't complain about uuid (before, it did)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So I do make
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But got error like this:
&lt;br&gt;&amp;gt; /home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:105:23:
&lt;br&gt;&amp;gt; error: uuid/uuid.h: No such file or directory
&lt;br&gt;&amp;gt; /home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:
&lt;br&gt;&amp;gt; In static member function ‘static bool
&lt;br&gt;&amp;gt; gdcm::Util::GenerateUUID(unsigned char*)’:
&lt;br&gt;&amp;gt; /home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1021:
&lt;br&gt;&amp;gt; error: ‘uuid_t’ was not declared in this scope
&lt;br&gt;&amp;gt; /home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1021:
&lt;br&gt;&amp;gt; error: expected `;' before ‘g’
&lt;br&gt;&amp;gt; /home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1022:
&lt;br&gt;&amp;gt; error: ‘g’ was not declared in this scope
&lt;br&gt;&amp;gt; /home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1022:
&lt;br&gt;&amp;gt; error: ‘uuid_generate’ was not declared in this scope
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm wondering if the path is correctly passed to gdcm?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for any hint!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best,
&lt;br&gt;&amp;gt; yi
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Yi Gao
&lt;br&gt;Graduate Student
&lt;br&gt;Dept. Biomedical Engineering
&lt;br&gt;Georgia Institute of Technology
&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/uuid.h-not-found-in-compiling-gdcm-tp26821626p26822355.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26821626</id>
	<title>uuid.h not found in compiling gdcm</title>
	<published>2009-12-16T17:25:26Z</published>
	<updated>2009-12-16T17:25:26Z</updated>
	<author>
		<name>Gao, Yi</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;I'm building ITK on a machine which does not have uuid, nor do I have root.
&lt;br&gt;&lt;br&gt;So I download the e2fsprogs 1.41.9, and build it as:
&lt;br&gt;./configure --prefix=/home/gaoyi/usr/local
&lt;br&gt;make
&lt;br&gt;make install-lib
&lt;br&gt;&lt;br&gt;Then I can see the header: /home/gaoyi/usr/local/include/uuid/uuid.h
&lt;br&gt;and the lib: /home/gaoyi/usr/local/lib/libuuid.a
&lt;br&gt;&lt;br&gt;Then I set the env:
&lt;br&gt;export CMAKE_PREFIX_PATH=/home/gaoyi/usr/local
&lt;br&gt;&lt;br&gt;Then in itk-bin I did:
&lt;br&gt;ccmake ../InsightToolkit-3.16.0
&lt;br&gt;&lt;br&gt;And it won't complain about uuid (before, it did)
&lt;br&gt;&lt;br&gt;So I do make
&lt;br&gt;&lt;br&gt;But got error like this:
&lt;br&gt;/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:105:23:
&lt;br&gt;error: uuid/uuid.h: No such file or directory
&lt;br&gt;/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:
&lt;br&gt;In static member function ‘static bool
&lt;br&gt;gdcm::Util::GenerateUUID(unsigned char*)’:
&lt;br&gt;/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1021:
&lt;br&gt;error: ‘uuid_t’ was not declared in this scope
&lt;br&gt;/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1021:
&lt;br&gt;error: expected `;' before ‘g’
&lt;br&gt;/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1022:
&lt;br&gt;error: ‘g’ was not declared in this scope
&lt;br&gt;/home/gaoyi/usr/package/code/InsightToolkit-3.16.0/Utilities/gdcm/src/gdcmUtil.cxx:1022:
&lt;br&gt;error: ‘uuid_generate’ was not declared in this scope
&lt;br&gt;&lt;br&gt;&lt;br&gt;I'm wondering if the path is correctly passed to gdcm?
&lt;br&gt;&lt;br&gt;Thanks for any hint!
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;yi
&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/uuid.h-not-found-in-compiling-gdcm-tp26821626p26821626.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818995</id>
	<title>C2440 when reinterpret_cast-ing from base to specific class</title>
	<published>2009-12-16T13:44:24Z</published>
	<updated>2009-12-16T13:44:24Z</updated>
	<author>
		<name>itkvtk123</name>
	</author>
	<content type="html">Thank you. Your code
&lt;br&gt;&lt;br&gt;reinterpret_cast&amp;lt;GradientDescentType*&amp;gt;(optimizer.GetPointer())-&amp;gt;SetRelaxationFactor(0.5);
&lt;br&gt;&lt;br&gt;did the trick.
&lt;br&gt;I knew that the pointer might be the reason, but I was not aware of the GetPointer() function.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
&lt;br&gt;Jetzt freischalten unter &lt;a href=&quot;http://portal.gmx.net/de/go/maxdome01&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://portal.gmx.net/de/go/maxdome01&lt;/a&gt;&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C2440-when-reinterpret_cast-ing-from-base-to-specific-class-tp26817675p26818995.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26818336</id>
	<title>Re: priors in itkBayesianClassifierImageFilter</title>
	<published>2009-12-16T12:58:45Z</published>
	<updated>2009-12-16T12:58:45Z</updated>
	<author>
		<name>Karthik Krishnan-2</name>
	</author>
	<content type="html">sorry.. been busy.. Indeed you are right.. Please update again...
&lt;br&gt;&lt;br&gt;/cvsroot/Insight/Insight/Code/Algorithms/itkBayesianClassifierImageFilter.txx,v
&lt;br&gt;&amp;nbsp;&amp;lt;-- &amp;nbsp;itkBayesianClassifierImageFilter.txx
&lt;br&gt;new revision: 1.11; previous revision: 1.10
&lt;br&gt;&lt;br&gt;I'll try and check in a test this weekend that exercises specifying a
&lt;br&gt;prior vector image. (As Luis would say, If is not tested, it is
&lt;br&gt;broken, and indeed it was :) )
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Dec 15, 2009 at 7:44 AM, Bruno Arbter
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818336&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bruno.arbter@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Works fine up to the calculation of the posteriors with priors (line 205 in
&lt;br&gt;&amp;gt; itkBayesianClassifierImageFilter.txx). I'm not very familiar with iterators
&lt;br&gt;&amp;gt; up to now, but the posteriors cannot be accessed in this way
&lt;br&gt;&amp;gt; (posteriors[i]=). Perhaps the variable needs some kind of memory allocation,
&lt;br&gt;&amp;gt; doesn't it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt;&amp;gt; Von: Karthik Krishnan [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818336&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karthik.krishnan@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Gesendet: Dienstag, 15. Dezember 2009 11:32
&lt;br&gt;&amp;gt;&amp;gt; An: Bruno Arbter
&lt;br&gt;&amp;gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818336&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;insight-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Betreff: Re: [Insight-users] priors in itkBayesianClassifierImageFilter
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for catching this...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Fix committed :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; /cvsroot/Insight/Insight/Code/Algorithms/itkBayesianClassifierImageFilt
&lt;br&gt;&amp;gt;&amp;gt; er.h,v
&lt;br&gt;&amp;gt;&amp;gt;  &amp;lt;--  itkBayesianClassifierImageFilter.h
&lt;br&gt;&amp;gt;&amp;gt; new revision: 1.16; previous revision: 1.15
&lt;br&gt;&amp;gt;&amp;gt; /cvsroot/Insight/Insight/Code/Algorithms/itkBayesianClassifierImageFilt
&lt;br&gt;&amp;gt;&amp;gt; er.txx,v
&lt;br&gt;&amp;gt;&amp;gt;  &amp;lt;--  itkBayesianClassifierImageFilter.txx
&lt;br&gt;&amp;gt;&amp;gt; new revision: 1.10; previous revision: 1.9
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Update and please let us know..
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Tue, Dec 15, 2009 at 5:10 AM, Bruno Arbter
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818336&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bruno.arbter@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Okay, priors can be set via SetInput - but the flag
&lt;br&gt;&amp;gt;&amp;gt; m_UserProvidedPriors in
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; itkBayesianClassifierImageFilter remains false, and therefore the
&lt;br&gt;&amp;gt;&amp;gt; priors are
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; not used without changing the constructor.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Is there an example that really uses priors?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Bruno
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Von: Karthik Krishnan [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818336&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karthik.krishnan@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Gesendet: Montag, 14. Dezember 2009 14:14
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; An: Bruno Arbter
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818336&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;insight-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Betreff: Re: [Insight-users] priors in
&lt;br&gt;&amp;gt;&amp;gt; itkBayesianClassifierImageFilter
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Take a look at Examples/Statistics/BayesianClassifier.cxx: and at
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Examples/Statistics/BayesianClassifierInitializer.cxx:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; This class does have a method to set the priors. The prior image
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; expected (optionally as the second input) is a N component
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; VectorImage, where N is the number of classes. If the prior image is
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; not specified, a uniform distribution is taken, (ie no priors.).
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; The API to do this is simply....
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;    filter-&amp;gt;SetInput( 1, priorVectorImage );
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; This is documented clearly in the doxygen.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; karthik
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; On Mon, Dec 14, 2009 at 7:47 AM, Bruno Arbter
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26818336&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bruno.arbter@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; I want to use itkBayesianClassifierImageFilter with priors but I
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; cannot find
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; any function to set the priors (e.g. SetPriors) in the class
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; itkBayesianClassifierImageFilter. How is the correct way to set
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; priors?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Bruno
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; _____________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; _________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Karthik Krishnan
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; R&amp;D Engineer,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Kitware Inc.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Ph: +1 5188814919, +91 9538477060
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; _____________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; _________________________________
&lt;br&gt;&amp;gt;&amp;gt; Karthik Krishnan
&lt;br&gt;&amp;gt;&amp;gt; R&amp;D Engineer,
&lt;br&gt;&amp;gt;&amp;gt; Kitware Inc.
&lt;br&gt;&amp;gt;&amp;gt; Ph: +1 5188814919, +91 9538477060
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;_________________________________
&lt;br&gt;Karthik Krishnan
&lt;br&gt;R&amp;D Engineer,
&lt;br&gt;Kitware Inc.
&lt;br&gt;Ph: +1 5188814919, +91 9538477060
&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/priors-in-itkBayesianClassifierImageFilter-tp26777209p26818336.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26817927</id>
	<title>Re: C2440 when reinterpret_cast-ing from base to specific class</title>
	<published>2009-12-16T12:27:58Z</published>
	<updated>2009-12-16T12:27:58Z</updated>
	<author>
		<name>Michael Jackson-5</name>
	</author>
	<content type="html">My guess is that the compiler doesn't like trying to cast a &amp;quot;smart &amp;nbsp;
&lt;br&gt;pointer&amp;quot; from one thing to another. You probably really want to cast &amp;nbsp;
&lt;br&gt;the optimizer.GetPointer()
&lt;br&gt;&lt;br&gt;&amp;gt; reinterpret_cast&amp;lt;GradientDescentType*&amp;gt;(optimizer.GetPointer())- 
&lt;br&gt;&amp;gt; &amp;gt;SetRelaxationFactor(0.5);
&lt;br&gt;&lt;br&gt;&amp;gt; itk::SingleValuedNonLinearOptimizer::Pointer is NOT a normal pointer.
&lt;br&gt;&lt;br&gt;HTH
&lt;br&gt;_________________________________________________________
&lt;br&gt;Mike Jackson &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817927&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mike.jackson@...&lt;/a&gt;
&lt;br&gt;BlueQuartz Software &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;www.bluequartz.net
&lt;br&gt;Principal Software Engineer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dayton, Ohio
&lt;br&gt;&lt;br&gt;On Dec 16, 2009, at 3:10 PM, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26817927&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;itkvtk123@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello itk users!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Today I encountered a very simple problem but I could not find out &amp;nbsp;
&lt;br&gt;&amp;gt; what I'm doing wrong.
&lt;br&gt;&amp;gt; I want to convert a base class object to the specific class, but it &amp;nbsp;
&lt;br&gt;&amp;gt; does not seem to work.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm getting
&lt;br&gt;&amp;gt; &amp;quot;error C2440: 'reinterpret_cast' : cannot convert from &amp;nbsp;
&lt;br&gt;&amp;gt; 'itk::SingleValuedNonLinearOptimizer::Pointer' to &amp;nbsp;
&lt;br&gt;&amp;gt; 'itk::RegularStepGradientDescentOptimizer::Pointer&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Minimal Code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ///////////////////////////////////////////////////////////////////////////////////////////
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;quot;itkSingleValuedNonLinearOptimizer.h&amp;quot;
&lt;br&gt;&amp;gt; #include &amp;quot;itkRegularStepGradientDescentOptimizer.h&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; int main()
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; 	typedef itk::SingleValuedNonLinearOptimizer OptimizerType;
&lt;br&gt;&amp;gt; 	typedef itk::RegularStepGradientDescentOptimizer GradientDescentType;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	OptimizerType::Pointer optimizer = GradientDescentType::New();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	reinterpret_cast&amp;lt;GradientDescentType::Pointer&amp;gt;(optimizer)- 
&lt;br&gt;&amp;gt; &amp;gt;SetRelaxationFactor(0.5);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	return 0;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ///////////////////////////////////////////////////////////////////////////////////////////
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Since RegularStepGradientDescentOptimizer is a child class from &amp;nbsp;
&lt;br&gt;&amp;gt; SingleValuedNonLinearOptimizer, I do not understand why this &amp;nbsp;
&lt;br&gt;&amp;gt; conversion does not work.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any help appreciated!
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla &amp;nbsp;
&lt;br&gt;&amp;gt; Firefox 3.5 -
&lt;br&gt;&amp;gt; sicherer, schneller und einfacher! &lt;a href=&quot;http://portal.gmx.net/de/go/atbrowser&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://portal.gmx.net/de/go/atbrowser&lt;/a&gt;&lt;br&gt;&amp;gt; _____________________________________
&lt;br&gt;&amp;gt; Powered by www.kitware.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Visit other Kitware open-source projects at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Follow this link to subscribe/unsubscribe:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C2440-when-reinterpret_cast-ing-from-base-to-specific-class-tp26817675p26817927.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26817675</id>
	<title>C2440 when reinterpret_cast-ing from base to specific class</title>
	<published>2009-12-16T12:10:05Z</published>
	<updated>2009-12-16T12:10:05Z</updated>
	<author>
		<name>itkvtk123</name>
	</author>
	<content type="html">Hello itk users!
&lt;br&gt;&lt;br&gt;Today I encountered a very simple problem but I could not find out what I'm doing wrong.
&lt;br&gt;I want to convert a base class object to the specific class, but it does not seem to work.
&lt;br&gt;&lt;br&gt;I'm getting
&lt;br&gt;&amp;quot;error C2440: 'reinterpret_cast' : cannot convert from 'itk::SingleValuedNonLinearOptimizer::Pointer' to 'itk::RegularStepGradientDescentOptimizer::Pointer&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Minimal Code:
&lt;br&gt;&lt;br&gt;///////////////////////////////////////////////////////////////////////////////////////////
&lt;br&gt;&lt;br&gt;#include &amp;quot;itkSingleValuedNonLinearOptimizer.h&amp;quot;
&lt;br&gt;#include &amp;quot;itkRegularStepGradientDescentOptimizer.h&amp;quot;
&lt;br&gt;&lt;br&gt;int main()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef itk::SingleValuedNonLinearOptimizer OptimizerType;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef itk::RegularStepGradientDescentOptimizer GradientDescentType;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OptimizerType::Pointer optimizer = GradientDescentType::New();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reinterpret_cast&amp;lt;GradientDescentType::Pointer&amp;gt;(optimizer)-&amp;gt;SetRelaxationFactor(0.5);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;///////////////////////////////////////////////////////////////////////////////////////////
&lt;br&gt;&lt;br&gt;&lt;br&gt;Since RegularStepGradientDescentOptimizer is a child class from SingleValuedNonLinearOptimizer, I do not understand why this conversion does not work.
&lt;br&gt;&lt;br&gt;Any help appreciated!
&lt;br&gt;-- 
&lt;br&gt;Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
&lt;br&gt;sicherer, schneller und einfacher! &lt;a href=&quot;http://portal.gmx.net/de/go/atbrowser&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://portal.gmx.net/de/go/atbrowser&lt;/a&gt;&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C2440-when-reinterpret_cast-ing-from-base-to-specific-class-tp26817675p26817675.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26815738</id>
	<title>Reading in Netcdf data</title>
	<published>2009-12-16T10:08:22Z</published>
	<updated>2009-12-16T10:08:22Z</updated>
	<author>
		<name>Natarajan CS</name>
	</author>
	<content type="html">Hello all,&lt;br&gt;   i am new to this list and ITK, so apologies if this question has been answered already in some form. Reading the docs it seems like ITK does not have a built-in reader for netcdf volume data, so is it better to convert the data to a format which itk can read or is it better to parse the data stream as an array to ITK (read in the data in standard format and send itk the array instead of using ITK readers)?&lt;br&gt;
&lt;br&gt;Thanks in advance,&lt;br&gt;&lt;br&gt;C.S.N&lt;br&gt;
&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Reading-in-Netcdf-data-tp26815738p26815738.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808115</id>
	<title>Bytes per pixel</title>
	<published>2009-12-16T00:57:52Z</published>
	<updated>2009-12-16T00:57:52Z</updated>
	<author>
		<name>Fernando López Mir</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
&lt;br&gt;What is the parameter in a itk image to know the number of bytes in a pixel?&lt;br&gt;&lt;br&gt;Thanks ...&lt;br&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Date una vuelta por Sietes y conoce el pueblo de los expertos en &lt;a href='http://www.sietesunpueblodeexpertos.com/' target='_new' rel=&quot;nofollow&quot;&gt;Windows 7&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bytes-per-pixel-tp26808115p26808115.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808064</id>
	<title>Automated cropping of an image based on image segmentation</title>
	<published>2009-12-16T00:53:05Z</published>
	<updated>2009-12-16T00:53:05Z</updated>
	<author>
		<name>Lodron, Gerald</name>
	</author>
	<content type="html">&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;I have two 3D CT images which i want to register. I want first segment the human from the rest because I think the environment (patient table etc) will/can disturb the registration. The segmentation already works perfect, I use a simple connected threshold filter in combination with an image closing which results in an image of zeros and ones.
&lt;br&gt;&lt;br&gt;Now I have two questions:
&lt;br&gt;&lt;br&gt;- I think it would be a great idea (performance reasons) to automatically crop the image depending on that segmentation result but i have no idea how to do this efficiently, any ideas?
&lt;br&gt;&lt;br&gt;&lt;br&gt;- In the imageToImageMetric I found the functions: SetFixedImageMask and SetMovingImageMask
&lt;br&gt;&amp;nbsp; They needs a type called Spatial Objects so I think i had to use the itk::ImageSpatialObject class to convert my itk Image into such a spatial object type. Here is my question: Is it advisable to make a cropping and this image mask stuff or will the image mask stuff make everything internal to compute the result fast?
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;&lt;br&gt;_____________________________________
&lt;br&gt;Powered by www.kitware.com
&lt;br&gt;&lt;br&gt;Visit other Kitware open-source projects at
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/opensource/opensource.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/opensource/opensource.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Kitware offers ITK Training Courses, for more information visit:
&lt;br&gt;&lt;a href=&quot;http://www.kitware.com/products/protraining.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kitware.com/products/protraining.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please keep messages on-topic and check the ITK FAQ at:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/Wiki/ITK_FAQ&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/Wiki/ITK_FAQ&lt;/a&gt;&lt;br&gt;&lt;br&gt;Follow this link to subscribe/unsubscribe:
&lt;br&gt;&lt;a href=&quot;http://www.itk.org/mailman/listinfo/insight-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.itk.org/mailman/listinfo/insight-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/ITK---Users-f14224.html&quot; embed=&quot;fixTarget[14224]&quot; target=&quot;_top&quot; &gt;ITK - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Automated-cropping-of-an-image-based-on-image-segmentation-tp26808064p26808064.html" />
</entry>

</feed>
