Library/ManagedCuda/NPP/NPPImage_32uC1.cs
/// <summary>
/// 1 channel 32-bit unsigned integer to 8-bit unsigned integer connected region marker label renumbering with numbering sparseness elimination.
/// </summary>
/// <param name="dest">Destination-Image</param>
/// <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 32-bit unsigned integer to 8-bit unsigned integer connected region marker label renumbering with numbering sparseness elimination.
1 channel 32 - bit unsigned integer to 8 - bit unsigned integer connected region marker label renumbering with numbering sparseness elimination .
public int CompressMarkerLabels(NPPImage_8uC1 dest, int nStartingNumber, CudaDeviceVariable<byte> pBuffer)
        {
            int pNewNumber = 0;
            status = NPPNativeMethods.NPPi.LabelMarkers.nppiCompressMarkerLabels_32u8u_C1R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, nStartingNumber, ref pNewNumber, pBuffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiCompressMarkerLabels_32u8u_C1R", status));
            NPPException.CheckNppStatus(status, this);
            return pNewNumber;
        }
public int CompressMarkerLabels ( NPPImage_8uC1 dest , int nStartingNumber , CudaDeviceVariable < byte > pBuffer ) { int pNewNumber = 0 ; status = NPPNativeMethods . NPPi . LabelMarkers . nppiCompressMarkerLabels_32u8u_C1R ( _devPtrRoi , _pitch , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , nStartingNumber , ref pNewNumber , pBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; return pNewNumber ; }
1 channel 32-bit unsigned integer to 8-bit unsigned integer connected region marker label renumbering with numbering sparseness elimination.
1 channel 32 - bit unsigned integer to 8 - bit unsigned integer 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 .
dest
NPPImage_8uC1
None
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 .