Extracting the affine transformation from texture moments