New scale function using Boofcv affine transform