I'm trying to determine the smallest rectangular prism that a brain will fit in based on its MRI scan. My strategy is as follows: I am moving through the brain axially, sagittally, and coronally to see where the brain "starts" appearing and "stops" appearing. Then, I'm subtracting the amount of no-brain slices from the total number of slices and multiplying the result by the slice thickness.
This should get me the length (sagittal plane), width (coronal plane), and height (axial plane) of a box that contains the brain.
Is there a function within FreeSurfer that can automate this process of determining "first and last sight of brain" ? It is quite time consuming to manually check hundreds of patients!
Best,