[ITK Community] [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://public.kitware.com/pipermail/community/attachments/20140221/3e93c68a/attachment-0002.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list