code: public static <T extends ImageBase<T>> ImageDistort<T,T>
  	rectifyImage(CameraPinholeBrown param, FMatrixRMaj rectify , BorderType borderType, ImageType<T> imageType)
  	{
  		boolean skip = borderType == BorderType.SKIP;
  		if( skip ) {
  			borderType = BorderType.EXTENDED;
  		}
  		InterpolatePixel<T> interp =
  				FactoryInterpolation.createPixel(0,255, InterpolationType.BILINEAR,borderType,imageType);
  
  		// only compute the transform once
  		ImageDistort<T,T> ret = FactoryDistort.distort(true, interp, imageType);
  		ret.setRenderAll(!skip);
  
  		Point2Transform2_F32 transform = transformRectToPixel(param, rectify);
  
  		ret.setModel(new PointToPixelTransform_F32(transform));
  
  		return ret;
  	}
docs: Creates an {@link ImageDistort} for rectifying an image given its radial distortion and
  rectification matrix.
  
  @param param Intrinsic parameters.
  @param rectify Transform for rectifying the image.
  @param imageType Type of single band image the transform is to be applied to.
  @return ImageDistort for rectifying the image.