[Insight-users] SetFixedImageRegion

Iyas Hamdan iyas.hamdan at gmail.com
Fri Feb 21 08:19:49 EST 2014


Hi,
I'm working on a 2D registration methode. I'm using an affine
transformation with the metric being the mutual information.


The point is that I dont want to consider the whole fixed image in the
registration process, so what I should do is choose a region of interest.

I have a binary image with a value of 1 where I want to take the pixels in
consideration ( my ROI ) and 0 elsewhere.

I tried to set the metric fixed image mask to my binary image (using
spatialobjectmask)

But sometimes I get the next error : "A spacing of 0 is not allowed" even
thought I'm not changing the spacing at all!

But since the region I want to focus on is a rectangle, I thought maybe it
would be easier to use FixedImageRegion for the registration process not
for the metric.

So, my question is, how can I pass my mask to the FixedImageRegion function
?

Thanks

Iyas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140221/3e93c68a/attachment.html>


More information about the Insight-users mailing list