<div dir="ltr">Disregard my message... For some reason, in this new version of ITK, if I use theĀ <b>NormalizeImageFilter</b>, tehn the images end up not overlapping.<div><br></div><div>Any clue what changed on that filter?</div><div><br></div><div>This is the code I had to remove:</div><div><br></div><div><div><span class="" style="white-space:pre"> </span>typedef itk::NormalizeImageFilter<FixedImageType, InternalImageType> NormalizeFilterType;</div><div><span class="" style="white-space:pre"> </span>NormalizeFilterType::Pointer fixedNormalizer = NormalizeFilterType::New();</div><div><span class="" style="white-space:pre"> </span>NormalizeFilterType::Pointer movingNormalizer = NormalizeFilterType::New();</div><div><br></div><div><span class="" style="white-space:pre"> </span>fixedNormalizer->SetInput(fixedImageReader->GetOutput());</div><div><span class="" style="white-space:pre"> </span>movingNormalizer->SetInput(movingImageReader->GetOutput());</div><div><br></div><div><span class="" style="white-space:pre"> </span>typedef itk::DiscreteGaussianImageFilter<InternalImageType, InternalImageType> GaussianFilterType;</div><div><br></div><div><span class="" style="white-space:pre"> </span>GaussianFilterType::Pointer fixedSmoother = GaussianFilterType::New();</div><div><span class="" style="white-space:pre"> </span>GaussianFilterType::Pointer movingSmoother = GaussianFilterType::New();</div><div><br></div><div><span class="" style="white-space:pre"> </span>fixedSmoother->SetVariance(2.0);</div><div><span class="" style="white-space:pre"> </span>movingSmoother->SetVariance(2.0);</div><div><br></div><div><span class="" style="white-space:pre"> </span>fixedSmoother->SetInput(fixedNormalizer->GetOutput());</div><div><span class="" style="white-space:pre"> </span>movingSmoother->SetInput(movingNormalizer->GetOutput());</div><div><br></div><div><span class="" style="white-space:pre"> </span>registration->SetFixedImage(fixedSmoother->GetOutput());<br></div><div><span class="" style="white-space:pre"> </span>registration->SetMovingImage(movingSmoother->GetOutput());</div></div><div><br></div><div>Thanks,</div><div><br></div><div>Matias.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 25, 2015 at 9:55 AM, Matias Montroull <span dir="ltr"><<a href="mailto:matimontg@gmail.com" target="_blank">matimontg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Something I noticed is that version 4.7.1 may be more strict when it comes to origin.. My 2 images have different origins and that may be the reason.<div><br></div><div>How can I set both images to have the same origin? is it safe or should I modify the parameters to make them overlap?</div><div><br></div><div>Thanks,</div><div><br></div><div>Matias.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 25, 2015 at 9:12 AM, Matias Montroull <span dir="ltr"><<a href="mailto:matimontg@gmail.com" target="_blank">matimontg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I downloaded and compiled version 4.7.1 of ITK and then recompiled a source code I had for <b>3D</b> MuttualInformation Registration</div><div><br></div><div>I noticed it now takes longer for registration to start and for some reason I now get joint pdf sum med to zero (and I didn't change anything on my code).</div><div><br></div><div>Is there a known issue with the time it takes for registration to start?</div><div><br></div><div>Thank you,</div><div><br></div><div>Matias.</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>