A method of analyzing a stream of imaging data is disclosed. The method comprises: for each picture-element of the data, associating a vector of features indicative of temporal intensity variation relative to baseline intensity, thereby providing a plurality of vectors. The method further comprises clustering the picture-elements according to the vectors, thereby providing a plurality of clusters, and identifying different compartments in the vasculature based on the clusters.