Modeling complex geological structures with elementary training images and transform‐invariant distances