ROI Defining GUI
Image classification algorithms often classify individual smaller image regions, or patches. To develop a training dataset for this work, patches with the classification target and patches without the target, or controls, are needed. This program displays three orthogonal planes through a NIFTI image and writes image patches to numpy files. By centering the cursor at a given location and pressing a key to write a patch centered at that location to file, the software can also immediately write additional “augmented” patches, which include flips along all three dimensions and offsets in the centering of the patches, as well as non-overlapping “control” patches, to disk.