<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Christina,<div><br></div><div>I don't think you are doing anything wrong to cause the error.<br><div><br></div><div>What version of ITK are you using. This issue should have been addressed with the following patch:</div><div><br></div><div><div>commit 5e9563377ca7ac327d6a3b090962dd038f1df6fa</div><div>Author: Bradley Lowekamp <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>></div><div>Date: Tue Nov 8 08:37:41 2011 -0500</div><div><br></div><div> BUG: There should not be a space contraint on Paste filter</div><div> </div><div> The paste image filter can work with a variety of image types,</div><div> including having it's input images be different dimensions. As the</div><div> user is explicity specifying the pixel corespondence between the</div><div> source and the input images, the same physical space check performed</div><div> in ImageToImageFilter::VerifyInputInformation is not needed.</div><div> </div><div> Change-Id: Ifa2b7f89d76a05faf1f48d3d909d72f2ab53903e</div><div><br></div><div>This patch should be included with 4.0.0 release.</div><div><br></div><div>Brad</div><div><br></div><div><br></div></div><div><br><div><div>On Feb 8, 2012, at 9:22 AM, Chr. Rossmanith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I've tried a lot to get a pipeline of RegionOfInterestImageFilter
-> PasteImageFilter working. For the moment I'm leaving out the
filter between ROI and Paste. It keeps failing with<br>
<br>
terminate called after throwing an instance of
'itk::ExceptionObject'<br>
what():
.../ITK/ITK-4.0.0/Modules/Core/Common/include/itkImageToImageFilter.hxx:228:<br>
itk::ERROR: PasteImageFilter(0x87fd350): Inputs do not occupy the
same physical space! <br>
InputImage Origin: [0, 0], InputImageIndexedDataObject1 Origin: [80,
60]<br>
<br>
Could someone explain what I'm doing wrong?<br>
<br>
Thank you,<br>
Christina<br>
<br>
<br>
<br>
Am 03.02.2012 18:00, schrieb cagatay bilgin:
<blockquote cite="mid:CAHoiV3bfFtzxDF98usp4rcYT5Lu+WD2Tp770A8rNPU57=YyAkA@mail.gmail.com" type="cite">
<div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; background-color: rgb(249, 249, 249); ">"</span><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; background-color: rgb(249, 249, 249); "><a moz-do-not-send="true" href="http://www.vtk.org/Wiki/ITK/Examples/ImageProcessing/RegionOfInterestImageFilter" title="ITK/Examples/ImageProcessing/RegionOfInterestImageFilter" style="text-decoration: none; color: rgb(0, 43, 184);
background-image: none;">Extract a portion of an image
(region of interest)</a></span><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; background-color: rgb(249, 249, 249); ">"</span></div>
<div><a moz-do-not-send="true" href="http://www.vtk.org/Wiki/ITK/Examples/ImageProcessing/RegionOfInterestImageFilter">http://www.vtk.org/Wiki/ITK/Examples/ImageProcessing/RegionOfInterestImageFilter</a><br>
</div>
<br>
<div><br>
<div class="gmail_quote">On Fri, Feb 3, 2012 at 3:24 AM, Chr.
Rossmanith <span dir="ltr"><<a moz-do-not-send="true" href="mailto:cr@neuro.ma.uni-heidelberg.de">cr@neuro.ma.uni-heidelberg.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">Hi,<br>
<br>
I'd like to process only a subregion of an image. A search
only gave <a moz-do-not-send="true" href="http://old.nabble.com/How-to-restrict-work-region-of-filters-td5963437.html" target="_blank">http://old.nabble.com/How-to-restrict-work-region-of-filters-td5963437.html</a>
as a result. Is the ExtractRegionOfInterestFilter +
PasteImageFilter approach described there still valid or is
there a more elegant way?<br>
<br>
Christina Rossmanith<br>
-- <br>
Dept. of Neurology<br>
University Medical Center Mannheim<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
</div>
<span><itkROIPlusPaste.cxx></span>_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.html<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>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></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space"> </span><span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>