[Insight-users] Getting overlap region

Luis Ibanez luis.ibanez at kitware.com
Sun Feb 15 16:52:30 EST 2009


Hi Erik,

The easiest method is among ImageRegions.

In that case, simply use:

     itk::ImageRegion::Crop()

If you have two image regions

     itk::ImageRegion regionA;
     itk::ImageRegion regionB;

Then you can find the overlap by doing

     regionA.Crop( regionB )

The common region will be stored in the
variable regionA.


    Regards,


       Luis

------------------
Erik Türke wrote:
> Hi!
> 
> Thanks for your response.
> 
> Actually it doesnt matter, if i am doing this with an image, an image 
> region, or spatial object, since you can convert these types amoung 
> themselves. I guess ;-)
> 
> I think, i would prefere the easiest method.
> 
> But if there is no difference between the effort of these methods, i 
> would take the SpatialObject method.
> 
> Thanks!
> 
> best regards!
> 
> 
>  > Date: Thu, 12 Feb 2009 11:16:21 -0500
>  > From: luis.ibanez at kitware.com
>  > To: erik_tuerke at hotmail.com
>  > CC: insight-users at itk.org
>  > Subject: Re: [Insight-users] Getting overlap region
>  >
>  >
>  > Hi Erik,
>  >
>  > You question is too general.
>  >
>  > Could you elaborate on it please ?
>  >
>  > Do you :
>  >
>  > a) Have two images and want to create a third
>  > image containing the overlap of the two images ?
>  >
>  > OR
>  >
>  > b) Have two itkImageRegions and want to compute
>  > the itkImageRegion that represents the overlap
>  > of the two ?
>  >
>  > OF
>  >
>  > c) Have two itkSpatialObjects and you are trying to
>  > compute the itkSpatialObject representing their
>  > overlap ?
>  >
>  >
>  >
>  > Thanks
>  >
>  >
>  > Luis
>  >
>  >
>  > ------------------
>  > Erik Türke wrote:
>  > > Hi!
>  > >
>  > > I am asking myself if there is any possibility to get the region of an
>  > > overlap of 2 images or a new object containing the overlap of 2 other
>  > > objects, respectively.
>  > >
>  > > Thanks fr your help!
>  > >
>  > > Best regards!
>  > >
>  > >
>  > >
>  > > 
> ------------------------------------------------------------------------
>  > > MSN Mobile: Die neuesten Infos aus der Welt der Stars und Sternchen 
> zum
>  > > Mitnehmen!
>  > > 
> <http://redirect.gimas.net/?cat=hmtl&n=M0809MSNMobile&d=http://info.mobile.de.msn.com/pc/default.aspx>
>  > >
>  > >
>  > > 
> ------------------------------------------------------------------------
>  > >
>  > > _____________________________________
>  > > Powered by www.kitware.com
>  > >
>  > > Visit other Kitware open-source projects at
>  > > http://www.kitware.com/opensource/opensource.html
>  > >
>  > > 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
> 
> ------------------------------------------------------------------------
> Messenger Online Treff: Spontan chatten, über Hobbies reden, sofort 
> Spass haben? Jetzt klicken! 
> <http://redirect.gimas.net/?cat=hmtl&n=M0809MOT&d=http://messenger.live.de/community/messenger-online-treff.aspx>


More information about the Insight-users mailing list