code: public FDistort affine(double a11, double a12, double a21, double a22,
  						   double dx, double dy) {
  
  		PixelTransformAffine_F32 transform;
  
  		if( outputToInput != null && outputToInput instanceof PixelTransformAffine_F32 ) {
  			transform = (PixelTransformAffine_F32)outputToInput;
  		} else {
  			transform = new PixelTransformAffine_F32();
  		}
  
  		Affine2D_F32 m = new Affine2D_F32();
  
  		m.a11 = (float)a11;
  		m.a12 = (float)a12;
  		m.a21 = (float)a21;
  		m.a22 = (float)a22;
  		m.tx = (float)dx;
  		m.ty = (float)dy;
  
  		m.invert(transform.getModel());
  
  		return transform(transform);
  	}
docs: Affine transform from input to output