<div dir="ltr"><div><div><div><div><div><div><div><div>Hello everyone,<br><br></div>We need to split a volume into pieces, overlaped by a certain amount, do some computation and then repaste them.<br><br></div>The
 computation requires the pieces' region indexes to be set to zero. The 
original volume might not have index at zero, but be a subregion itself.<br><br></div>What is the best way to achieve this?<br><br></div>I've thought of the following pipeline:<br><br>1. imageRegionSplitterSlowDimension<br></div><div>2. Store the index and size of each region<br></div>3. manually increase the size of each region (and modify index)<br></div>4. crop with the largestPossibleRegion of the original volume (to prevent requesting more than available)<br></div><div>iterate over regions:<br></div>      5. extractImageFilter<br></div>      6. disconnect pipeline for each region<br><div>      7. reset indexes<br></div><div>      8. perform computation<br></div>      9. crop with the regions in step 1 to remove the added overlap<br><div><div>      10. restore indexes<br></div>11. pasteImageFilter<br><br></div><div>I'll have to think of a smart way to deal with the index restore/cropping of steps 9 and 10.<br></div><div><br></div>I somehow feel somebody will have already dealt with this... And there's certainly a better way to do it.<br></div>