Efficient parallel algorithms for the extraction of image features with adjustable invariance propertiesImplementing 2d tori algorithms on de bruijn graphs