public void NormL1(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
{
int bufferSize = NormL1MaskedGetBufferHostSize();
CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
status = NPPNativeMethods.NPPi.NormL1.nppiNorm_L1_8u_C3CMR(_devPtrRoi, _pitch, mask.DevicePointerRoi, mask.Pitch, _sizeRoi, coi, norm.DevicePointer, buffer.DevicePointer);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiNorm_L1_8u_C3CMR", status));
buffer.Dispose();
NPPException.CheckNppStatus(status, this);
}