Detection of the left ventricular (LV) endocardial (inner) and epicardial (outer) boundaries in cardiac images, provided by fast computer tomography (cine CT), magnetic resonance (MR), or ultrasound (echocardiography), is addressed. The automatic detection of the LV boundaries is difficult due to background noise, poor contrast, and often unclear differentiation of the tissue characteristics of the ventricles, papillary muscles, and surrounding tissues. An approach to the automatic ventricular boundary detection that employs set-theoretic techniques, and is based on incorporating a priori knowledge of the heart geometry, its brightness, spatial structure, and temporal dynamics into the boundaries detection algorithm is presented. Available knowledge is interpreted as constraint sets in the functional space, and the consistent boundaries are considered to belong to the intersection of all the introduced sets, thus satisfying the a priori information. An algorithm is also suggested for the simultaneous detection of the endocardial and epicardial boundaries of the LV. The procedure is demonstrated using cine CT images of the human heart.