1 description "Extracts a sub-image of an image"
2 author "laurent.guigues@creatis.insa-lyon.fr"
9 input I reader.Filename "Input file name"
11 new ExtractImageFilter filter
12 connect reader.Out filter.In
14 new ImageRegion region
15 input P region.Index "Position of the crop region"
16 input S region.Size "Size of the crop region"
18 connect region.Out filter.Region
20 new ImageWriter writer
21 connect filter.Out writer.In
23 input O writer.Filename "Output file name"