A method for generating data indicating a degree of anatomical connectivity for each of a plurality of image elements, each image element representing a part of a body to be imaged. The method comprises for each of a plurality of image elements, that image element and others of said plurality of image elements; for each of said plurality of image elements, generating data indicating a degree of connectivity of that image element, said degree of connectivity being based upon said plurality of generated data sets.