ManagedCuda.NPP.NPPImage_8uC3.AverageRelativeError C# (CSharp) Méthode

AverageRelativeError() public méthode

image average relative error.
public AverageRelativeError ( NPPImage_8uC3 src2, CudaDeviceVariable pError, CudaDeviceVariable buffer ) : void
src2 NPPImage_8uC3 2nd source image
pError CudaDeviceVariable Pointer to the computed error.
buffer CudaDeviceVariable Pointer to the user-allocated scratch buffer required for the AverageRelativeError operation.
Résultat void
        public void AverageRelativeError(NPPImage_8uC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
        {
            int bufferSize = AverageRelativeErrorGetBufferHostSize();
            if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");

            status = NPPNativeMethods.NPPi.AverageRelativeError.nppiAverageRelativeError_8u_C3R(_devPtrRoi, _pitch, src2.DevicePointerRoi, src2.Pitch, _sizeRoi, pError.DevicePointer, buffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiAverageRelativeError_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::AverageRelativeError ( NPPImage_8uC3 src2, CudaDeviceVariable pError ) : void
NPPImage_8uC3