Optimal Positive Generation via Latent Transformation for Contrastive Learning