The present invention relates to an ultrasound imaging system in which the scan head includes a beamformer circuit that performs far field subarray beamforming or includes a sparse array selecting circuit that actuates selected elements. When using a hierarchical two-stage or three-stage beamforming system, three dimensional ultrasound images can be generated in real-time. The invention further relates to flexible printed circuit boards in the probe head. The invention furthermore relates to the use of coded or spread spectrum signalling in ultrasound imaging systems. Matched filters based on pulse compression using Golay code pairs improve the signal-to-noise ratio thus enabling third harmonic imaging with suppressed sidelobes. The system is suitable for 3D full volume cardiac imaging.