[Insight-users] RuntimeError about MutualInformationImageToImageMetric:FixedImageRegion
is empty
Luis Ibanez
luis.ibanez at kitware.com
Sat, 10 Apr 2004 11:52:27 -0400
Hi Carrie,
You probably forgot to invoke the method
SetFixedImageRegion()
from the ImageRegistrationMethod before
invoking StartRegistration().
Please look at the SoftwareGuide for details
on how to use this method
http://www.itk.org/ItkSoftwareGuide.pdf
In particular look at Section 8.2, pdf-page 242.
(the method is shown in page 244).
Regards,
Luis
--------------
carrie wrote:
> hi,all
>
> when my code ran to the sentence StartRegistration(),an itk RutimeError,
> MutualInformationImageToImageMetric:FixedImageRegion is empty ,happened to me.
> Details as followed:
>
> File "TkRegistration2.py", line 867, in RegistrationSwitch
> self.MutualInformation()
> File "TkRegistration2.py", line 949, in MutualInformation
> registration.StartRegistration()
> File "itkImageRegistrationMethod.py", line 370, in StartRegistration
> def StartRegistration(*args): return _itkImageRegistrationMethod.itkImageReg
> istrationMethodF3F3_Pointer_StartRegistration(*args)
> RuntimeError: E:\ITK6\Code\Algorithms\itkImageToImageMetric.txx:93:
> itk::ERROR: MutualInformationImageToImageMetric(0C15C4C8): FixedImageRegion is e
> mpty
>
> Before this sentence, Update() is no error.
> How can I solve this problem?
> thx,
> best regards
>
>
>
>
>
>
>
> carrie
> carrie_shi at sjtu.edu.cn
> 2004-04-10
> "{"n炎┘x%H朏z"J+m霖?f?X)滷(!矩rs==