[Insight-users] ImageRegistration2 problem.

Woo, John WooJohn at uphs.upenn.edu
Thu May 19 00:41:54 EDT 2005


Hi again, Luis.

I took a stab at running the itkImageRandomIteratorTest (staying up late).

Here is the output I got.  Is this correct?

************************************************************

Creating an image of indices
Verifying non-const iterator... Random walk of the Iterator over the image 
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
   Done ! 
Verifying const iterator... Random walk of the Iterator over the image 
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
   Done ! 
Verifying iterator in reverse direction... 
Should be a random walk too (a different one)
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
   Done ! 
Verifying const iterator in reverse direction... [0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
   Done ! 
Verifying const iterator in both directions... [0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
[0, 0, 0]
   Done ! 
Verifying Iterator in a Region smaller than the whole image... 
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
   Done ! 
Verifying Const Iterator in a Region smaller than the whole image... 
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
[10, 12, 14]
   Done ! 
Test passed

***************************************************************

Sincerely,
John.


-----Original Message-----
From: Luis Ibanez
To: Woo, John
Cc: ''insight-users at itk.org' '
Sent: 5/18/2005 9:42 PM
Subject: Re: [Insight-users] ImageRegistration2 problem.



Hi John,



Thanks for your report.


You can easily verify if the random number generator is
working in your system or not.



You simply need to take the file


     Insight/Testing/Code/Common/
               itkImageRandomIteratorTest.cxx


and build it as an independent project.



You run it and.... it will tell you is the random
number generation works or not.



For instructions on how to create an isolated ITK
project, please look at the Tutorial sessions:


    http://www.itk.org/HTML/Tutorials.htm

In particular to:

http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm





    Regards,


        Luis




--------------------
Woo, John wrote:

> Luis,
> 
> Thank you for responding.  However, I am still having problems.
> 
> I downloaded a newer version of itk using cvs.
> 
> Now when I run ImageRegistration2, it seems to go through 200
iterations,
> each with output:
> 
>  2.23973e-07  [0,0]
> 
> You are probably correct, that the metric seems to be computed 
> incorrectly.  Since the nightly tests are ok, this suggests that the 
> problem is not with the code, but perhaps with my system.  However, I 
> have tried this on two different PCs.
> 
> Anyone encouter a similar problem?  Perhaps I am missing a random
number 
> generator in Cygwin?
> 
> - John.
> 
> 
> -----Original Message-----
> From: Luis Ibanez
> To: Woo, John
> Cc: 'insight-users at itk.org'
> Sent: 5/17/2005 8:25 PM
> Subject: Re: [Insight-users] ImageRegistration2 problem.
> 
> 
> Hi John,
> 
> 
> Cygwin used has a problem for running the random number
> generator that is used by the Mutual Information metric.
> 
> This has been fixed now.
> 
> 
> The example:
> 
>           ImageRegistration2
> 
> is tested nightly
> 
>
http://www.itk.org/Testing/Dashboard/20050517-0500-Nightly/TestDetail/__
> Examples_Registration_ImageRegistration2Test.html
> 
> and it is consistently passing in all platforms.
> 
> The typical output that you should see is in Cygwing is:
> 
>
http://www.itk.org/Testing/Sites/dash14.kitware/Win32-cygwin331/20050517
>
-0500-Nightly/Results/__Examples_Registration_ImageRegistration2Test.htm
> l
> 
> 
> 
> number of samples = 567
> 0   0.291543   [0.105135, 0.090224]
> 1   0.260628   [0.161649, 0.157256]
> 2   0.270509   [0.320506, 0.209221]
> 3   0.316618   [0.422436, 0.283459]
> 
> ...
> 
> 198   0.607511   [12.9989, 16.8214]
> 199   0.603641   [13.0552, 16.9111]
> Result =
>   Translation X = 13.0552
>   Translation Y = 16.9111
>   Iterations    = 200
>   Metric value  = 0.603641
> 
> 
> 
> 
> 
> You should probably update your version
> of ITK in order to  use CVS.
> 
> 
> 
> Regards,
> 
> 
> 
>     Luis
> 
> 
> 
> ------------------------------------------------------------------
> Woo, John wrote:
> 
>  > Hi, I'm a new user to ITK.
>  >
>  > I have succeeded in running ImageRegistration1 and
ImageRegistration3
>  > with their respective Example data.
>  >
>  > However, I cannot seem to run ImageRegistration2 (MI Registration)
>  > correctly with BrainT1SliceBorder20.png and
>  > BrainProtonDensitySliceShifted13x17y.png.
>  >
>  > It seems to compile ok.  However, when running, it seems to give a
>  > Result of
>  >
>  > Result =
>  >  Translation X = 0
>  >  Translation Y = 0
>  >  Iterations    = 200
>  >  Metric value  = 2.5398e-06.
>  >
>  > It seems that all 200 iterations have values of
>  >  2.5398e-06    [0, 0]
>  >
>  > Am I doing something incorrectly?  I am running ITK on Cygwin on a
>  > Windows platform.
>  >
>  > - John.
>  >
>  >
>  >
>
------------------------------------------------------------------------
>  >
>  > _______________________________________________
>  > Insight-users mailing list
>  > Insight-users at itk.org
>  > http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050519/cb186682/attachment.html


More information about the Insight-users mailing list