Hi, I don't have a tutorial for you but you can start by reading the ITK doc: https://itk.org/Doxygen/html/classitk_1_1RegularExpressionSeriesFileNames.html There are tons of tutorials on the web (and I don't know a specifically good one), the important part to remember is that there are several formats for regular expressions and ITK uses one of them. Note that you don't have to use them in most cases. For example, Christoph could have use "-r his" to match all filenames containing "his". Simon
On Thu, Jun 23, 2016 at 4:41 PM, Ana Vaniqui <[email protected]> wrote: > Hi, > > > I just want to add that a tutorial on regular expressions for beginners > would be very much appreciated.. > > > Kind regards, > > Ana > > > ------------------------------ > *From:* Rtk-users <[email protected]> on behalf of > Cyril Mory <[email protected]> > *Sent:* Thursday, June 23, 2016 4:22:39 PM > *To:* Christoph Zöllner; [email protected] > *Subject:* Re: [Rtk-users] rtksubselect > > Hi Christoph, > > The error lies in the regular expression: replace the "*.his" with > ".*.his" and it should work. > > By the way: does anyone know have a tutorial on regular expressions for > beginners to recommend ? > > Cyril > > On 06/23/2016 03:48 PM, Christoph Zöllner wrote: > > Dear all, > > I want to use rtksubselect to create single geometryfiles for every > projection for parallelization purposes. When using the following command: > > rtksubselect -g geometryfilename.xml --out_proj subsettest.mha > --out_geometry subsettestgeom.xml -f 1 -l 2 -p projectionfolder -r *.his > > > I get this error: > > ExceptionObject caught with paste->Update() in file > /scratch-local/rauscher/rtk/RTK/applications/rtksubselect/rtksubselect.cxx > line 113 > > itk::InvalidRequestedRegionError (0x1818600) > Location: "unknown" > File: > /scratch-local/rauscher/itk/InsightToolkit-4.8.2/Modules/Core/Common/src/itkDataObject.cxx > Line: 393 > Description: Requested region is (at least partially) outside the largest > possible region. > > > Invalid requested region error triggered by ProjectionsReader > img->GetRequestedRegion() = [ ImageRegion (0x180ea40) > Dimension: 3 > Index: [4, 4, 1] > Size: [504, 504, 1] > ] > img->GetLargestPossibleRegion() = [ ImageRegion (0x180ea08) > Dimension: 3 > Index: [4, 4, 0] > Size: [504, 504, 1] > ] > > it works for the first file though when using -f 0 -l 1 > > regards, > Christoph > > > _______________________________________________ > Rtk-users mailing > [email protected]http://public.kitware.com/mailman/listinfo/rtk-users > > > > _______________________________________________ > Rtk-users mailing list > [email protected] > http://public.kitware.com/mailman/listinfo/rtk-users > >
_______________________________________________ Rtk-users mailing list [email protected] http://public.kitware.com/mailman/listinfo/rtk-users
