Library/ManagedCuda/NPP/NPPImage_32sC3.cs
/// <summary>
/// Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection
/// </summary>
/// <param name="quad">Destination quadrangle [4,2]</param>
/// <returns>Perspective transform coefficients [3,3]</returns>
Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection
Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection
public double[,] GetPerspectiveTransform(double[,] quad)
		{
			double[,] coeffs = new double[3, 3];
			NppiRect rect = new NppiRect(_pointRoi, _sizeRoi);
			status = NPPNativeMethods.NPPi.PerspectiveTransforms.nppiGetPerspectiveTransform(rect, quad, coeffs);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiGetPerspectiveTransform", status));
			NPPException.CheckNppStatus(status, this);
			return coeffs;
		}
public double [ , ] GetPerspectiveTransform ( double [ , ] quad ) { double [ , ] coeffs = new double [ 3 , 3 ] ; NppiRect rect = new NppiRect ( _pointRoi , _sizeRoi ) ; status = NPPNativeMethods . NPPi . PerspectiveTransforms . nppiGetPerspectiveTransform ( rect , quad , coeffs ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; return coeffs ; }
Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection
Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection
Perspective transform coefficients [3,3]
Perspective transform coefficients [ 3 3 ]
quad
double[,]
Destination quadrangle [4,2]
Destination quadrangle [ 4 2 ]