Library/ManagedCuda/NPP/NPPImage_8uC1.cs
/// <summary>
/// 1 channel 8-bit unsigned integer in place label markers image generation.
/// </summary>
/// <param name="nMinVal">Pixel values less than or equal to nMinVal will be excluded as members of any connected region and given a label ID of 0.</param>
/// <param name="eNorm">Type of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity. </param>
/// <param name="pBuffer">Pointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersGetBufferSize call.</param>
/// <returns>The maximum generated marker label ID will be returned.</returns>
1 channel 8-bit unsigned integer in place label markers image generation.
1 channel 8 - bit unsigned integer in place label markers image generation .
public int LabelMarkers(byte nMinVal, NppiNorm eNorm, CudaDeviceVariable<byte> pBuffer)
        {
            int pNumber = 0;
            status = NPPNativeMethods.NPPi.LabelMarkers.nppiLabelMarkers_8u_C1IR(_devPtrRoi, _pitch, _sizeRoi, nMinVal, eNorm, ref pNumber, pBuffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiLabelMarkers_8u_C1IR", status));
            NPPException.CheckNppStatus(status, this);
            return pNumber;
        }
public int LabelMarkers ( byte nMinVal , NppiNorm eNorm , CudaDeviceVariable < byte > pBuffer ) { int pNumber = 0 ; status = NPPNativeMethods . NPPi . LabelMarkers . nppiLabelMarkers_8u_C1IR ( _devPtrRoi , _pitch , _sizeRoi , nMinVal , eNorm , ref pNumber , pBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; return pNumber ; }
1 channel 8-bit unsigned integer in place label markers image generation.
1 channel 8 - bit unsigned integer in place label markers image generation .
The maximum generated marker label ID will be returned.
The maximum generated marker label ID will be returned .
nMinVal
byte
Pixel values less than or equal to nMinVal will be excluded as members of any connected region and given a label ID of 0.
Pixel values less than or equal to nMinVal will be excluded as members of any connected region and given a label ID of 0 .
eNorm
NppiNorm
Type of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity.
Type of pixel connectivity test to use nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity .
pBuffer
CudaDeviceVariable<byte>
Pointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersGetBufferSize call.
Pointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersGetBufferSize call .