Sonography is a painless medical procedure that uses high-frequency sound waves to produce visual images of organs, tissues, or blood flow inside the body. Depending on the situation, sonography may be used to examine the abdomen, breasts, prostate, female reproductive organs, heart, blood vessels, and other areas.