[Insight-users] Re: On Metrics of registration

Luis Ibanez luis . ibanez at kitware . com
Tue, 27 Aug 2002 10:15:22 -0400


Hi cspl,

In your code,
the line:

     metric->SetFixedImageRegion(FixedImage->GetBuffer());

should be:

    metric->SetFixedImageRegion(FixedImage->GetBufferedRegion());


What the line does is to define a region on the FixedImage,
only the pixels inside this region will contribute to the
computation of the metric.

Please find attached the corrected file.

Regards,


   Luis

=======================================

cspl wrote:
> Dear Mr.Luis,
>    I have done the same process as you specified in your mail.But,I could
> not get the output.I am getting problem at start registration.when I tried
> to run the application on windows98 system,I am getting error message "this
> program has performed an illegal operation".Even i could not catch the error
> message using try catch. I am enclosing the code.Please check my code and
> suggest any modifications in the code.
> 
> 
>