description "Extracts a sub-image of an image" author "laurent.guigues@creatis.insa-lyon.fr" category "application" load std load itk new ImageReader reader input I reader.In "Input file name" new ExtractImageFilter filter connect reader.Out filter.In new ImageRegion region input P region.Index "Position of the crop region" input S region.Size "Size of the crop region" connect region.Out filter.Region new ImageWriter writer connect filter.Out writer.In input O writer.In "Output file name" exec writer