Invia SMS: Tissue segmentation and classification using graph-based unsupervised clustering