The echocardiogram is an ultrasound of the heart. An x-ray is a two-dimensional view or picture of the heart or of the chest. In contrast, the echocardiogram is a more specialized view of the heart; it can detect the heart's motion and look at chamber sizes and blood flow through the heart.