Using shape inside a picture as template for matching

Hey, I want to build a program that will detect shapes and use them as a template for the Template Matching- or Shape Matching- algorithm . In the next step identical shapes inside the image will be marked.
Do you think this kind of idea is possible?