Velocities are unaliased using conditional random fields. To constrain the energy minimization function, a global term includes a measure of a level of aliasing. In one example, the measure of the level of aliasing is based on a change in volume, such as the volume of the left ventricle. The unaliasing is performed along one or more surfaces, such as surfaces intersecting the mitral annulus and the left ventricle outflow tract. The anatomy used is identified and/or tracked using one or more machine-learnt detectors. Both B-mode and velocity information may be used for detecting the anatomy.