ManagedCuda.NPP.NPPImage_16sC3.AverageRelativeError C# (CSharp) Method

AverageRelativeError() public method

image average relative error. User buffer is internally allocated and freed.
public AverageRelativeError ( NPPImage_16sC3 src2, CudaDeviceVariable pError ) : void
src2 NPPImage_16sC3 2nd source image
pError CudaDeviceVariable Pointer to the computed error.
return void
        public void AverageRelativeError(NPPImage_16sC3 src2, CudaDeviceVariable<double> pError)
        {
            int bufferSize = AverageRelativeErrorGetBufferHostSize();
            CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
            status = NPPNativeMethods.NPPi.AverageRelativeError.nppiAverageRelativeError_16s_C3R(_devPtrRoi, _pitch, src2.DevicePointerRoi, src2.Pitch, _sizeRoi, pError.DevicePointer, buffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiAverageRelativeError_16s_C3R", status));
            buffer.Dispose();
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_16sC3::AverageRelativeError ( NPPImage_16sC3 src2, CudaDeviceVariable pError, CudaDeviceVariable buffer ) : void
NPPImage_16sC3