ManagedCuda.NPP.NPPImage_8uC3.CountInRange C# (CSharp) Method

CountInRange() public method

image CountInRange.
public CountInRange ( CudaDeviceVariable pCounts, byte nLowerBound, byte nUpperBound ) : void
pCounts CudaDeviceVariable Pointer to the number of pixels that fall into the specified range. (3 * sizeof(int))
nLowerBound byte Fixed size array of the lower bound of the specified range, one per channel.
nUpperBound byte Fixed size array of the upper bound of the specified range, one per channel.
return void
        public void CountInRange(CudaDeviceVariable<int> pCounts, byte[] nLowerBound, byte[] nUpperBound)
        {
            int bufferSize = CountInRangeGetBufferHostSize();
            CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);

            status = NPPNativeMethods.NPPi.CountInRange.nppiCountInRange_8u_C3R(_devPtrRoi, _pitch, _sizeRoi, pCounts.DevicePointer, nLowerBound, nUpperBound, buffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiCountInRange_8u_C3R", status));
            buffer.Dispose();
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::CountInRange ( CudaDeviceVariable pCounts, byte nLowerBound, byte nUpperBound, CudaDeviceVariable buffer ) : void
NPPImage_8uC3