I managed to match two images using surf , now I want to say somehow to the user that I have successfully done the matching, via a text string. The rectangle that shows that the matching is done is visually appealing , but is there a way where I can store meta-data within the Mat struct , so that after successful match it can show the user the meta-data .