A compact and efficient image retrieval approach based on border/interior pixel classification | Synapse