A shrinking algorithm that works in parallel has been implemented on an 8Ã8 matrix on which binary patterns are digitised. This shrinking technique has been used for normalising and counting patterns preventing merging when some objects containing others are present.