Pattern representation with anisotropic behavior based on bubble packing