Library/ManagedCuda/NPP/NPPImage_32sC1.cs
/// <summary>
/// Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
/// </summary>
/// <param name="nConstant">Value to subtract</param>
/// <param name="dest">Destination image</param>
/// <param name="nScaleFactor">scaling factor</param>
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Subtract constant to image scale by 2^ ( - nScaleFactor ) then clamp to saturated value .
public void Sub(int nConstant, NPPImage_32sC1 dest, int nScaleFactor)
		{
			status = NPPNativeMethods.NPPi.SubConst.nppiSubC_32s_C1RSfs(_devPtrRoi, _pitch, nConstant, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiSubC_32s_C1RSfs", status));
			NPPException.CheckNppStatus(status, this);
		}
public void Sub ( int nConstant , NPPImage_32sC1 dest , int nScaleFactor ) { status = NPPNativeMethods . NPPi . SubConst . nppiSubC_32s_C1RSfs ( _devPtrRoi , _pitch , nConstant , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Subtract constant to image scale by 2^ ( - nScaleFactor ) then clamp to saturated value .
nConstant
int
Value to subtract
Value to subtract
dest
NPPImage_32sC1
None
nScaleFactor
int
None