[Insight-users] [ITK Community] SetFixedImageRegion
Matt McCormick
matt.mccormick at kitware.com
Wed Feb 5 00:33:22 EST 2014
Hi lyas,
If the v4 registration framework is used [1], masks for the Moving and
Fixed image can be specified through SetMovingImageMask() and
SetFixedImageMask().
Hope this helps,
Matt
[1] http://www.itk.org/Doxygen/html/classitk_1_1ImageToImageMetricv4.html
On Tue, Feb 4, 2014 at 5:56 AM, Iyas Hamdan <iyas.hamdan at gmail.com> wrote:
> Hello all,
>
> I am working on image registration, and for now I am considering the whole
> image but I want to use a region of interest instead.
>
> And to do so I'm using :
>
> registration ->SetFixedImageRegion(region);
>
> And "region" being my region of interesed defined as follows: ( assuming 2D
> )
>
> FixedImageType::IndexType index;
> FixedImageType::SizeType size;
> FixedImageType::RegionType region;
>
> index[0] = xxx;
> index[1] = yyy;
>
> size[0] = xx;
> size[1] = yy;
>
>
> region.SetIndex(index);
> region.SetSize(size);
>
>
> This way I define my region of interest as a rectangle, so my question is;
> is it possible to make it two different rectangles ( having two regions of
> interest in the image) ?
>
>
> Thanks in advance!
>
> Iyas
>
>
> _____________________________________
> 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
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
More information about the Insight-users
mailing list