<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I just want to add that a tutorial on regular expressions for beginners would be very much appreciated..</p>
<p><br>
</p>
<p>Kind regards,</p>
<p>Ana<br>
</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Rtk-users <rtk-users-bounces@public.kitware.com> on behalf of Cyril Mory <cyril.mory@uclouvain.be><br>
<b>Sent:</b> Thursday, June 23, 2016 4:22:39 PM<br>
<b>To:</b> Christoph Zöllner; rtk-users@public.kitware.com<br>
<b>Subject:</b> Re: [Rtk-users] rtksubselect</font>
<div> </div>
</div>
<div>Hi Christoph,<br>
<br>
The error lies in the regular expression: replace the "*.his" with ".*.his" and it should work.<br>
<br>
By the way: does anyone know have a tutorial on regular expressions for beginners to recommend ?
<br>
<br>
Cyril<br>
<br>
<div class="moz-cite-prefix">On 06/23/2016 03:48 PM, Christoph Zöllner wrote:<br>
</div>
<blockquote cite="mid:576BE8A3.40409@physik.uni-muenchen.de" type="cite">Dear all,<br>
<br>
I want to use rtksubselect to create single geometryfiles for every projection for parallelization purposes. When using the following command:<br>
<br>
<blockquote>rtksubselect -g geometryfilename.xml --out_proj subsettest.mha --out_geometry subsettestgeom.xml -f 1 -l 2 -p projectionfolder -r *.his
<br>
</blockquote>
<br>
I get this error:<br>
<br>
<blockquote>ExceptionObject caught with paste->Update() in file /scratch-local/rauscher/rtk/RTK/applications/rtksubselect/rtksubselect.cxx line 113<br>
<br>
itk::InvalidRequestedRegionError (0x1818600)<br>
Location: "unknown" <br>
File: /scratch-local/rauscher/itk/InsightToolkit-4.8.2/Modules/Core/Common/src/itkDataObject.cxx<br>
Line: 393<br>
Description: Requested region is (at least partially) outside the largest possible region.<br>
<br>
<br>
Invalid requested region error triggered by ProjectionsReader<br>
img->GetRequestedRegion() = [ ImageRegion (0x180ea40)<br>
Dimension: 3<br>
Index: [4, 4, 1]<br>
Size: [504, 504, 1]<br>
]<br>
img->GetLargestPossibleRegion() = [ ImageRegion (0x180ea08)<br>
Dimension: 3<br>
Index: [4, 4, 0]<br>
Size: [504, 504, 1]<br>
]<br>
</blockquote>
it works for the first file though when using -f 0 -l 1<br>
<br>
regards,<br>
Christoph<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
Rtk-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a>
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/rtk-users">http://public.kitware.com/mailman/listinfo/rtk-users</a>
</pre>
</blockquote>
<br>
</div>
</body>
</html>