Library/ManagedCuda/NPP/NPPImage_8uC1.cs
/// <summary>
/// 1 channel 8-bit unsigned integer in place connected region marker label renumbering with numbering sparseness elimination.
/// </summary>
/// <param name="nStartingNumber">The value returned from a previous call to the nppiLabelMarkers_8u32u function.</param>
/// <param name="pBuffer">Pointer to device memory scratch buffer at least as large as value returned by the corresponding CompressMarkerLabelsGetBufferSize call.</param>
/// <returns>The maximum renumbered marker label ID will be returned.</returns>
1 channel 8-bit unsigned integer in place connected region marker label renumbering with numbering sparseness elimination.
1 channel 8 - bit unsigned integer in place connected region marker label renumbering with numbering sparseness elimination .
public int CompressMarkerLabels(int nStartingNumber, CudaDeviceVariable<byte> pBuffer)
        {
            int pNewNumber = 0;
            status = NPPNativeMethods.NPPi.LabelMarkers.nppiCompressMarkerLabels_8u_C1IR(_devPtrRoi, _pitch, _sizeRoi, nStartingNumber, ref pNewNumber, pBuffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiCompressMarkerLabels_8u_C1IR", status));
            NPPException.CheckNppStatus(status, this);
            return pNewNumber;
        }
public int CompressMarkerLabels ( int nStartingNumber , CudaDeviceVariable < byte > pBuffer ) { int pNewNumber = 0 ; status = NPPNativeMethods . NPPi . LabelMarkers . nppiCompressMarkerLabels_8u_C1IR ( _devPtrRoi , _pitch , _sizeRoi , nStartingNumber , ref pNewNumber , pBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; return pNewNumber ; }
1 channel 8-bit unsigned integer in place connected region marker label renumbering with numbering sparseness elimination.
1 channel 8 - bit unsigned integer in place connected region marker label renumbering with numbering sparseness elimination .
The maximum renumbered marker label ID will be returned.
The maximum renumbered marker label ID will be returned .
nStartingNumber
int
The value returned from a previous call to the nppiLabelMarkers_8u32u function.
The value returned from a previous call to the nppiLabelMarkers_8u32u function .
pBuffer
CudaDeviceVariable<byte>
Pointer to device memory scratch buffer at least as large as value returned by the corresponding CompressMarkerLabelsGetBufferSize call.
Pointer to device memory scratch buffer at least as large as value returned by the corresponding CompressMarkerLabelsGetBufferSize call .