A new framework for trademark retrieval based on Size Functions