I am trying to undertake a pattern match, with a irregular shape, and also with a masked area inside the shape, e.g. I have an object (rectangle in shape), with different colours, shapes on top of it. None of the objects break the outline shape. I want to be able to determine if the outline shape is present regardless of the objects within the border of the shape. Taking this one step further I also want to be able to do this when the outside shape is irregular. Any tips would be appreciated.