1. A method for adjusting an inversion time setting in a magnetic resonance imaging (MRI) scanner, the method comprising: positioning a readout line of the MRI scanner through a compartment of interest of a region of interest in a subject; inverting magnetization within the readout line by playing an inversion pulse; reading out data along the readout line at a predetermined number of times after play of the inversion pulse; determining a T1 value for each pixel along the readout line; determining the pixels that belong to first and second portions within the compartment of interest, wherein determining the pixels that belong to first and second portions comprises applying an edge detection algorithm along the line of T1 values; determining a T1 value of each of the first and second portions by, for each portion, averaging the pixels within each portion; and determining an inversion time based on the determined T1 values such that the compartment of interest has a desired magnetization in an image to be acquired by an imaging sequence.