[Insight-users] Getting overlap region
Erik Türke
erik_tuerke at hotmail.com
Tue Feb 17 03:43:30 EST 2009
Hi!
Thanks for the response.
I´ll try to explain yout the issue.
It is all about a regsitration problem.
I have two images, a fixed and a moving image. Lets consider the fixed image is of dimension [192 130 192] and the moving image is of dimension [192 7 192].
The metric will give you a sample exception error because too many samples are outside the moving image.
Now, what i want to do is to define a mask, which contains the overlap of the two images and pass it to the metric->SetFixedImageMask() method, which expects a ImageMaskSpatialObject.
So now my problem is how to compute an overlap(image, spatialobject) containing the fixed and the moving images, or the fixed and the moving spatial objects, respectively.
And i assume, i am capable of creating an ImageMaskSpatialObject with the help of the obtained overlap image or object and pass it to the metric.
thanks and best regards!
> From: andreas.schuh.84 at googlemail.com
> To: luis.ibanez at kitware.com
> Subject: Re: [Insight-users] Getting overlap region
> Date: Mon, 16 Feb 2009 12:11:05 +0100
> CC: erik_tuerke at hotmail.com; insight-users at itk.org
>
> 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
_________________________________________________________________
MSN Toolbar: Alle Infos sehen, ohne die Website auf der Sie gerade sind zu verlassen.
http://www.msn.de/toolbar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090217/157e8a73/attachment-0001.htm>
More information about the Insight-users
mailing list