[Insight-users] Problems with SetFixedImageMask, MattesMI, BSpline Transfo. and RegularStepGradientDescentOptimizer
sere f
serenaf33 at gmail.com
Wed Jun 9 11:39:51 EDT 2010
Hi All,
I am registering CT and MRI of the brain with Bspline Transformation,
Mattes-MI, RegularStepGradientDescentOptimizer.
The registration works fine.
But when I set:
spatialObjectMask->SetImage( maskReader->GetOutput() );
metric->SetFixedImageMask( spatialObjectMask);
The Registration ends with 0 iteration and I get this message:
Optimizer stop condition = RegularStepGradientDescentOptimizer: Gradient
magnitude tolerance met after 0 iterations. Gradient magnitude (0) is less
than gradient magnitude tolerance (0.001).
My mask is a binary image (0,255). Is it wrong?
How can I register using a mask for Fixed Image?
any idea?
Thank you very much.
Serena.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100609/c447e28b/attachment.htm>
More information about the Insight-users
mailing list