Adaptive Canonicalization with Application to Invariant Anisotropic Geometric Networks