<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi!<br><br>Thanks for the response.<br><br>I´ll try to explain yout the issue. <br>It is all about a regsitration problem.<br>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].<br>The metric will give you a sample exception error because too many samples are outside the moving image. <br>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.<br><br>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. <br>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.<br><br><br>thanks and best regards!<br><br><br>> From: andreas.schuh.84@googlemail.com<br>> To: luis.ibanez@kitware.com<br>> Subject: Re: [Insight-users] Getting overlap region<br>> Date: Mon, 16 Feb 2009 12:11:05 +0100<br>> CC: erik_tuerke@hotmail.com; insight-users@itk.org<br>> <br>> Hi,<br>> <br>> the difference of determining the overlap region of two single <br>> ImageRegions and of getting the overlap of two oriented images or <br>> spatial objects is, that in the former case the regions are not <br>> oriented (considered having the same orientation) whereas in the <br>> latter cases you may have to be corncerned with the orientation of <br>> your regions, too. In this case ImageRegion::Crop won't help if you <br>> would like to have the oriented overlap region of minimal volume. <br>> That's a more difficult task, where you will have to solve some <br>> optimization problem probably by some kind of simplex algorithm.<br>> <br>> Otherwise, as you Erik are interested in spatial objects and I assume <br>> that the bounding boxes of these (SpatialObjects::GetBoundingBox) are <br>> all oriented along the axes of the coordinate system, you have a <br>> simpler task which can be solved by using ImageRegion::Crop.<br>> <br>> --<br>> regards<br>> Andreas<br>> <br>> Am 15.02.2009 um 22:52 schrieb Luis Ibanez <luis.ibanez@kitware.com>:<br>> <br>> ><br>> > Hi Erik,<br>> ><br>> > The easiest method is among ImageRegions.<br>> ><br>> > In that case, simply use:<br>> ><br>> > itk::ImageRegion::Crop()<br>> ><br>> > If you have two image regions<br>> ><br>> > itk::ImageRegion regionA;<br>> > itk::ImageRegion regionB;<br>> ><br>> > Then you can find the overlap by doing<br>> ><br>> > regionA.Crop( regionB )<br>> ><br>> > The common region will be stored in the<br>> > variable regionA.<br>> ><br>> ><br>> > Regards,<br>> ><br>> ><br>> > Luis<br>> ><br>> > ------------------<br>> > Erik Türke wrote:<br>> >> Hi!<br>> >> Thanks for your response.<br>> >> Actually it doesnt matter, if i am doing this with an image, an <br>> >> image region, or spatial object, since you can convert these types <br>> >> amoung themselves. I guess ;-)<br>> >> I think, i would prefere the easiest method.<br>> >> But if there is no difference between the effort of these methods, <br>> >> i would take the SpatialObject method.<br>> >> Thanks!<br>> >> best regards!<br>> >> > Date: Thu, 12 Feb 2009 11:16:21 -0500<br>> >> > From: luis.ibanez@kitware.com<br>> >> > To: erik_tuerke@hotmail.com<br>> >> > CC: insight-users@itk.org<br>> >> > Subject: Re: [Insight-users] Getting overlap region<br>> >> ><br>> >> ><br>> >> > Hi Erik,<br>> >> ><br>> >> > You question is too general.<br>> >> ><br>> >> > Could you elaborate on it please ?<br>> >> ><br>> >> > Do you :<br>> >> ><br>> >> > a) Have two images and want to create a third<br>> >> > image containing the overlap of the two images ?<br>> >> ><br>> >> > OR<br>> >> ><br>> >> > b) Have two itkImageRegions and want to compute<br>> >> > the itkImageRegion that represents the overlap<br>> >> > of the two ?<br>> >> ><br>> >> > OF<br>> >> ><br>> >> > c) Have two itkSpatialObjects and you are trying to<br>> >> > compute the itkSpatialObject representing their<br>> >> > overlap ?<br>> >> ><br>> >> ><br>> >> ><br>> >> > Thanks<br>> >> ><br>> >> ><br>> >> > Luis<br>> >> ><br>> >> ><br>> >> > ------------------<br>> >> > Erik Türke wrote:<br>> >> > > Hi!<br>> >> > ><br>> >> > > I am asking myself if there is any possibility to get the <br>> >> region of an<br>> >> > > overlap of 2 images or a new object containing the overlap of 2 <br>> >> other<br>> >> > > objects, respectively.<br>> >> > ><br>> >> > > Thanks fr your help!<br>> >> > ><br>> >> > > Best regards!<br>> >> > ><br>> >> > ><br>> >> > ><br>> >> > > <br>> >> --- <br>> >> ---------------------------------------------------------------------<br>> >> > > MSN Mobile: Die neuesten Infos aus der Welt der Stars und <br>> >> Sternchen zum<br>> >> > > Mitnehmen!<br>> >> > > <http://redirect.gimas.net/?cat=hmtl&n=M0809MSNMobile&d=http://info.mobile.de.msn.com/pc/default.aspx <br>> >> ><br>> >> > ><br>> >> > ><br>> >> > > <br>> >> --- <br>> >> ---------------------------------------------------------------------<br>> >> > ><br>> >> > > _____________________________________<br>> >> > > Powered by www.kitware.com<br>> >> > ><br>> >> > > Visit other Kitware open-source projects at<br>> >> > > http://www.kitware.com/opensource/opensource.html<br>> >> > ><br>> >> > > Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ<br>> >> > ><br>> >> > > Follow this link to subscribe/unsubscribe:<br>> >> > > http://www.itk.org/mailman/listinfo/insight-users<br>> >> --- <br>> >> ---------------------------------------------------------------------<br>> >> Messenger Online Treff: Spontan chatten, über Hobbies reden, sofor <br>> >> t Spass haben? Jetzt klicken! <http://redirect.gimas.net/?cat=hmtl&n=M0809MOT&d=http://messenger.live.de/community/messenger-online-treff.aspx <br>> >> ><br>> > _____________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.itk.org/mailman/listinfo/insight-users<br><br /><hr />Speichern Sie Ihre Daten von überall! <a href='http://redirect.gimas.net/?cat=hmtl&n=M0809Sky&d=http://skydrive.live.com/?mkt=de-de' target='_new'>Kostenlos: Die Festplatte im Netz mit 5 GB Speicher!</a></body>
</html>