[Insight-users] Getting overlap region

Andreas Schuh andreas.schuh.84 at googlemail.com
Mon Feb 16 06:11:05 EST 2009


Hi,

the difference of determining the overlap region of two single  
ImageRegions and of getting the overlap of two oriented images or  
spatial objects is, that in the former case the regions are not  
oriented (considered having the same orientation) whereas in the  
latter cases you may have to be corncerned with the orientation of  
your regions, too. In this case ImageRegion::Crop won't help if you  
would like to have the oriented overlap region of minimal volume.  
That's a more difficult task, where you will have to solve some  
optimization problem probably by some kind of simplex algorithm.

Otherwise, as you Erik are interested in spatial objects and I assume  
that the bounding boxes of these (SpatialObjects::GetBoundingBox) are  
all oriented along the axes of the coordinate system, you have a  
simpler task which can be solved by using ImageRegion::Crop.

--
regards
Andreas

Am 15.02.2009 um 22:52 schrieb Luis Ibanez <luis.ibanez at kitware.com>:

>
> 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, sofor 
>> t Spass haben? Jetzt klicken! <http://redirect.gimas.net/?cat=hmtl&n=M0809MOT&d=http://messenger.live.de/community/messenger-online-treff.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


More information about the Insight-users mailing list