[ITK] [ITK-users] MultiResImageRegistration3 | Joint PDF summed to Zero
Bradley Lowekamp
blowekamp at mail.nih.gov
Wed Feb 11 09:34:38 EST 2015
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 at 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 at 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 at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150211/a6db5ff2/attachment-0001.html>
-------------- next part --------------
_____________________________________
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
More information about the Community
mailing list