[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [ITK-users] MultiResImageRegistration3 | Joint PDF summed to Zero
From:       Bradley Lowekamp <blowekamp () mail ! nih ! gov>
Date:       2015-02-11 14:34:38
Message-ID: 7DC4D83B-241C-43E4-890C-27612B2B82E5 () mail ! nih ! gov
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

If this is the example you are using[1], while its in the RegistrationITKv4 directory \
it is using the ITKv3 version of the framework.

If you compare it to the MultiResImageRegistration1.cxx example, its significantly \
more complicated. With the ITKv4 framework its an intrinsic part of the registration \
method. I would encourage you to base your registration program on example 1 and \
modify it for 3D.

You are right about the TranslationTransform not working with that Initializer. But \
it does work with any transform derived from the MatrixOffsetBase. 

Brad

[1] http://itk.org/Insight/Doxygen/html/Examples_2RegistrationITKv4_2MultiResImageRegistration3_8cxx-example.html


On Feb 11, 2015, at 9:18 AM, Matias Montroull <matimontg@gmail.com> wrote:

> Thanks Btradley,
> 
> I'm using ITV4 with compatibility set to V3, not sure if that would be an issue.
> 
> I tried adding the Centeredtransforminitializer to my example but it seems I need \
> to change the transformtype to CenterRigidTransform rather than \
> TranslationTransform, is that true? (I'm getting compilation erros).. 
> The example you point is 2D, I don't think there has been a 3D version of the \
> MultiResImageRegistration1 with V4.. I'll try though to see if I can convert to 3D, \
> it was pretty simple with the V3 version example. 
> Thanks again.
> 
> Matias.
> 
> On Wed, Feb 11, 2015 at 11:01 AM, Bradley Lowekamp <blowekamp@mail.nih.gov> wrote:
> Hello,
> 
> This message occurs when the images don't overlap.
> 
> If this error message occurs at the first iteration, its due to the initial \
> parameters. If not then the optimizer is not setup correctly and is miss behaving \
> due to scale, minimizing/maximizing, gradient noise etc.. 
> Typically the CenterTransformInitializer[1] can be used to get reasonable initial \
> parameters for many cases. 
> Also you are using the older ITKv3 registration framework. I would recommend using \
> the v4 version of the example[2], I believe it give a clearer error message for \
> this case. 
> Brad
> 
> 
> [1] http://www.itk.org/Doxygen/html/classitk_1_1CenteredTransformInitializer.html
> [2] http://www.itk.org/Doxygen/html/Examples_2RegistrationITKv4_2MultiResImageRegistration1_8cxx-example.html
>  On Feb 11, 2015, at 8:50 AM, Matias Montroull <matimontg@gmail.com> wrote:
> 
> > Hi,
> > 
> > I'm trying to do 3D Registration using TranslationTransform as transformtype. \
> > I've downloaded MultiResImageRegistration3.cxx and when I run it I get this \
> > error: 
> > Description: itk::ERROR: MattesMutualInformationImageToImageMetric(04067A40): \
> > Joint PDF summed to zero 
> > Is this due to the initial parameters?
> > 
> > Thanks,
> > 
> > Matias.
> > _____________________________________
> > Powered by www.kitware.com
> > 
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> > 
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> > 
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> > 
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/insight-users
> 
> 


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>If this is \
the example you are using[1], while its in the RegistrationITKv4 directory it is \
using the ITKv3 version of the framework.</div><div><br></div><div>If you compare it \
to the MultiResImageRegistration1.cxx example, its significantly more complicated. \
With the ITKv4 framework its an intrinsic part of the registration method. I would \
encourage you to base your registration program on example 1 and modify it for \
3D.</div><div><br></div><div>You are right about the TranslationTransform not working \
with that Initializer. But it does work with any transform derived from the \
MatrixOffsetBase.&nbsp;</div><div><br></div><div>Brad</div><div><br></div><div>[1]&nbsp;<a \
href="http://itk.org/Insight/Doxygen/html/Examples_2RegistrationITKv4_2MultiResImageRe \
gistration3_8cxx-example.html">http://itk.org/Insight/Doxygen/html/Examples_2Registrat \
ionITKv4_2MultiResImageRegistration3_8cxx-example.html</a></div><div><br><div><div>On \
Feb 11, 2015, at 9:18 AM, Matias Montroull &lt;<a \
href="mailto:matimontg@gmail.com">matimontg@gmail.com</a>&gt; wrote:</div><br \
class="Apple-interchange-newline"><blockquote type="cite"><meta \
http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Thanks \
Btradley,<div><br></div><div>I'm using ITV4 with compatibility set to V3, not sure if \
that would be an issue.</div><div><br></div><div>I tried adding the \
Centeredtransforminitializer to my example but it seems I need to change the \
transformtype to CenterRigidTransform rather than TranslationTransform, is that true? \
(I'm getting compilation erros)..</div><div><br></div><div>The example you point is \
2D, I don't think there has been a 3D version of the&nbsp;MultiResImageRegistration1 \
with V4.. I'll try though to see if I can convert to 3D, it was pretty simple with \
the V3 version example.</div><div><br></div><div>Thanks \
again.</div><div><br></div><div>Matias.</div></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Wed, Feb 11, 2015 at 11:01 AM, Bradley Lowekamp <span \
dir="ltr">&lt;<a href="mailto:blowekamp@mail.nih.gov" \
target="_blank">blowekamp@mail.nih.gov</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; \
border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; \
position: static; z-index: auto;"><div \
style="word-wrap:break-word">Hello,<div><br></div><div>This message occurs when the \
images don't overlap.</div><div><br></div><div>If this error message occurs at the \
first iteration, its due to the initial parameters. If not then the optimizer is not \
setup correctly and is miss behaving due to scale, minimizing/maximizing, gradient \
noise etc..</div><div><br></div><div>Typically the CenterTransformInitializer[1] can \
be used to get reasonable initial parameters for many \
cases.</div><div><br></div><div>Also you are using the older ITKv3 registration \
framework. I would recommend using the v4 version of the example[2], I believe it \
give a clearer error message for this \
case.</div><div><br></div><div>Brad</div><div><br></div><div><br></div><div>[1]&nbsp;<a \
href="http://www.itk.org/Doxygen/html/classitk_1_1CenteredTransformInitializer.html" \
target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1CenteredTransformInitializer.html</a></div><div>[2]&nbsp;<a \
href="http://www.itk.org/Doxygen/html/Examples_2RegistrationITKv4_2MultiResImageRegistration1_8cxx-example.html" \
target="_blank">http://www.itk.org/Doxygen/html/Examples_2RegistrationITKv4_2MultiResImageRegistration1_8cxx-example.html</a><br><div><div><div \
class="h5"><div>On Feb 11, 2015, at 8:50 AM, Matias Montroull &lt;<a \
href="mailto:matimontg@gmail.com" target="_blank">matimontg@gmail.com</a>&gt; \
wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div \
dir="ltr">Hi,<div><br></div><div>I'm trying to do 3D Registration using \
TranslationTransform as transformtype. I've \
downloaded&nbsp;MultiResImageRegistration3.cxx and when I run it I get this \
error:</div><div><br></div><div><b>Description: itk::ERROR: \
MattesMutualInformationImageToImageMetric(04067A40): Joint PDF summed to \
zero</b></div><div><b><br></b></div><div>Is this due to the initial \
parameters?</div><div><br></div><div>Thanks,</div><div><br></div><div>Matias.</div></div></div></div>
 _____________________________________<br>Powered by <a \
href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other \
Kitware open-source projects at<br><a \
href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware \
offers ITK Training Courses, for more information visit:<br><a \
href="http://www.kitware.com/products/protraining.php" \
target="_blank">http://www.kitware.com/products/protraining.php</a><br><br>Please \
keep messages on-topic and check the ITK FAQ at:<br><a \
href="http://www.itk.org/Wiki/ITK_FAQ" \
target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to \
subscribe/unsubscribe:<br><a \
href="http://public.kitware.com/mailman/listinfo/insight-users" \
target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br></blockquote></div><br></div></div></blockquote></div><br></div>
 </blockquote></div><br></div></body></html>



_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic