code: public static PixelTransformAffine_F32 transformScale(ImageBase from, ImageBase to,
  														  PixelTransformAffine_F32 distort)
  	{
  		if( distort == null )
  			distort = new PixelTransformAffine_F32();
  
  		float scaleX = (float)(to.width)/(float)(from.width);
  		float scaleY = (float)(to.height)/(float)(from.height);
  
  		Affine2D_F32 affine = distort.getModel();
  		affine.set(scaleX,0,0,scaleY,0,0);
  
  		return distort;
  	}
docs: Computes a transform which is used to rescale an image.  The scale is computed
  directly from the size of the two input images and independently scales
  the x and y axises.