Affine Invariant Texture Segmentation and Shape from Texture by Variational Methods