Drawing a mask with AFNI by hand
Step by step
- The Define Data Mode panel in afni has a Plugins drawer with an option for Draw Dataset.
- Within the Draw Dataset modal, use Copy Dataset to pick the dataset to use as a refernce (FOV, pixel dims, matrix size)
- In the image viewer window, use the mouse middle button click and drag to draw shapes that will be filled per slice
- Draw to fill on the first (most top/left/front) slice
- Move display to the last (most bottom/right/back) slice and draw to fill again
- Back in the Draw Dataset modal, select a direction from the Linear Fillin dropdown and click the *Do the Fill* button.
- Repeat for each dimension (sagitial, axial, coronal).
Notes
If the “plugin” button does not exist, there might be a problem with paths. AFNI complains
Plugins = 0 libraries read
** Your Unix path must include the AFNI binary directory
** OR you must setenv AFNI_PLUGINPATH to that directory!
A fix is explicilty setting AFNI_PLUGINPATH
to the same directory as the afni binary (for the case of a local/non-system install, e.g. afni is in ~/abin
)
AFNI_PLUGINPATH="$(dirname $(which afni))" afni
Screenshots