Library/ManagedCuda/NPP/NPPImageBase.cs
/// <summary>
/// Returns NppiRect which represents the offset and size of the destination rectangle that would be generated by
/// resizing the source NppiRect by the requested scale factors and shifts.
/// </summary>
/// <param name="nXFactor">Factor by which x dimension is changed. </param>
/// <param name="nYFactor">Factor by which y dimension is changed. </param>
/// <param name="nXShift">Source pixel shift in x-direction.</param>
/// <param name="nYShift">Source pixel shift in y-direction.</param>
/// <param name="eInterpolation">The type of eInterpolation to perform resampling.</param>
Returns NppiRect which represents the offset and size of the destination rectangle that would be generated by
resizing the source NppiRect by the requested scale factors and shifts.
Returns NppiRect which represents the offset and size of the destination rectangle that would be generated by resizing the source NppiRect by the requested scale factors and shifts .
public NppiRect GetResizeRect(double nXFactor, double nYFactor, double nXShift, double nYShift, InterpolationMode eInterpolation)
		{
			NppiRect srcRect = new NppiRect(_pointRoi, _sizeRoi);
			NppiRect dstRect = new NppiRect();
			status = NPPNativeMethods.NPPi.GetResizeRect.nppiGetResizeRect(srcRect, ref dstRect, nXFactor, nYFactor, nXShift, nYShift, eInterpolation);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiGetResizeRect", status));
			NPPException.CheckNppStatus(status, this);
			return dstRect;
		}
public NppiRect GetResizeRect ( double nXFactor , double nYFactor , double nXShift , double nYShift , InterpolationMode eInterpolation ) { NppiRect srcRect = new NppiRect ( _pointRoi , _sizeRoi ) ; NppiRect dstRect = new NppiRect ( ) ; status = NPPNativeMethods . NPPi . GetResizeRect . nppiGetResizeRect ( srcRect , ref dstRect , nXFactor , nYFactor , nXShift , nYShift , eInterpolation ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; return dstRect ; }
Returns NppiRect which represents the offset and size of the destination rectangle that would be generated by
resizing the source NppiRect by the requested scale factors and shifts.
Returns NppiRect which represents the offset and size of the destination rectangle that would be generated by resizing the source NppiRect by the requested scale factors and shifts .
nXFactor
double
Factor by which x dimension is changed.
Factor by which x dimension is changed .
nYFactor
double
Factor by which y dimension is changed.
Factor by which y dimension is changed .
nXShift
double
Source pixel shift in x-direction.
Source pixel shift in x - direction .
nYShift
double
Source pixel shift in y-direction.
Source pixel shift in y - direction .
eInterpolation
InterpolationMode
The type of eInterpolation to perform resampling.
The type of eInterpolation to perform resampling .