Class NPPNativeMethods.NPPi.LabelMarkers
Generate image connected region label markers to be used for later image segmentation.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class LabelMarkers
Methods
nppiBoundSegments_16u_C1IR(CUdeviceptr, Int32, NppiSize, UInt16)
1 channel 16-bit unsigned integer in place region boundary border image generation.
Declaration
public static NppStatus nppiBoundSegments_16u_C1IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, ushort nBorderVal)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.UInt16 | nBorderVal | Pixel value to be used at connected region boundary borders |
Returns
Type | Description |
---|---|
NppStatus |
nppiBoundSegments_32u_C1IR(CUdeviceptr, Int32, NppiSize, UInt32)
1 channel 32-bit unsigned integer in place region boundary border image generation.
Declaration
public static NppStatus nppiBoundSegments_32u_C1IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, uint nBorderVal)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.UInt32 | nBorderVal | Pixel value to be used at connected region boundary borders |
Returns
Type | Description |
---|---|
NppStatus |
nppiBoundSegments_8u_C1IR(CUdeviceptr, Int32, NppiSize, Byte)
1 channel 8-bit unsigned integer in place region boundary border image generation.
Declaration
public static NppStatus nppiBoundSegments_8u_C1IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, byte nBorderVal)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Byte | nBorderVal | Pixel value to be used at connected region boundary borders |
Returns
Type | Description |
---|---|
NppStatus |
nppiCompressMarkerLabels_16u_C1IR(CUdeviceptr, Int32, NppiSize, Int32, ref Int32, CUdeviceptr)
1 channel 16-bit unsigned integer in place connected region marker label renumbering with numbering sparseness elimination.
Declaration
public static NppStatus nppiCompressMarkerLabels_16u_C1IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nStartingNumber, ref int pNewNumber, CUdeviceptr pBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Int32 | nStartingNumber | The value returned from a previous call to the nppiLabelMarkers_8u32u function. |
System.Int32 | pNewNumber | Pointer to host memory integer value where the maximum renumbered marker label ID will be returned. |
CUdeviceptr | pBuffer | Pointer to device memory scratch buffer at least as large as value returned by the corresponding CompressMarkerLabelsGetBufferSize call. |
Returns
Type | Description |
---|---|
NppStatus |
nppiCompressMarkerLabels_32u_C1IR(CUdeviceptr, Int32, NppiSize, Int32, ref Int32, CUdeviceptr)
1 channel 32-bit unsigned integer in place connected region marker label renumbering with numbering sparseness elimination.
Declaration
public static NppStatus nppiCompressMarkerLabels_32u_C1IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nStartingNumber, ref int pNewNumber, CUdeviceptr pBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Int32 | nStartingNumber | The value returned from a previous call to the nppiLabelMarkers_8u32u function. |
System.Int32 | pNewNumber | Pointer to host memory integer value where the maximum renumbered marker label ID will be returned. |
CUdeviceptr | pBuffer | Pointer to device memory scratch buffer at least as large as value returned by the corresponding CompressMarkerLabelsGetBufferSize call. |
Returns
Type | Description |
---|---|
NppStatus |
nppiCompressMarkerLabels_32u8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Int32, ref Int32, CUdeviceptr)
1 channel 32-bit unsigned integer to 8-bit unsigned integer connected region marker label renumbering with numbering sparseness elimination.
Declaration
public static NppStatus nppiCompressMarkerLabels_32u8u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, int nStartingNumber, ref int pNewNumber, CUdeviceptr pBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Int32 | nStartingNumber | The value returned from a previous call to the nppiLabelMarkers_8u32u function. |
System.Int32 | pNewNumber | Pointer to host memory integer value where the maximum renumbered marker label ID will be returned. |
CUdeviceptr | pBuffer | Pointer to device memory scratch buffer at least as large as value returned by the corresponding CompressMarkerLabelsGetBufferSize call. |
Returns
Type | Description |
---|---|
NppStatus |
nppiCompressMarkerLabels_8u_C1IR(CUdeviceptr, Int32, NppiSize, Int32, ref Int32, CUdeviceptr)
1 channel 8-bit unsigned integer in place connected region marker label renumbering with numbering sparseness elimination.
Declaration
public static NppStatus nppiCompressMarkerLabels_8u_C1IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nStartingNumber, ref int pNewNumber, CUdeviceptr pBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Int32 | nStartingNumber | The value returned from a previous call to the nppiLabelMarkers_8u32u function. |
System.Int32 | pNewNumber | Pointer to host memory integer value where the maximum renumbered marker label ID will be returned. |
CUdeviceptr | pBuffer | Pointer to device memory scratch buffer at least as large as value returned by the corresponding CompressMarkerLabelsGetBufferSize call. |
Returns
Type | Description |
---|---|
NppStatus |
nppiCompressMarkerLabelsGetBufferSize_16u_C1R(Int32, ref Int32)
Calculate scratch buffer size needed for 1 channel 16-bit unsigned integer CompressMarkerLabels function based on the number returned in pNumber from a previous nppiLabelMarkers call.
Declaration
public static NppStatus nppiCompressMarkerLabelsGetBufferSize_16u_C1R(int nStartingNumber, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nStartingNumber | The value returned from a previous call to the nppiLabelMarkers_16u function. |
System.Int32 | hpBufferSize | Required buffer size in bytes. |
Returns
Type | Description |
---|---|
NppStatus |
nppiCompressMarkerLabelsGetBufferSize_32u_C1R(Int32, ref Int32)
Calculate scratch buffer size needed for 1 channel 32-bit unsigned integer CompressMarkerLabels function based on the number returned in pNumber from a previous nppiLabelMarkers call.
Declaration
public static NppStatus nppiCompressMarkerLabelsGetBufferSize_32u_C1R(int nStartingNumber, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nStartingNumber | The value returned from a previous call to the nppiLabelMarkers_32u function. |
System.Int32 | hpBufferSize | Required buffer size in bytes. |
Returns
Type | Description |
---|---|
NppStatus |
nppiCompressMarkerLabelsGetBufferSize_32u8u_C1R(Int32, ref Int32)
Calculate scratch buffer size needed for 1 channel 32-bit unsigned integer to 8-bit unsigned integer CompressMarkerLabels function based on the number returned in pNumber from a previous nppiLabelMarkers call.
Declaration
public static NppStatus nppiCompressMarkerLabelsGetBufferSize_32u8u_C1R(int nStartingNumber, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nStartingNumber | The value returned from a previous call to the nppiLabelMarkers_8u32u function. |
System.Int32 | hpBufferSize | Required buffer size in bytes. |
Returns
Type | Description |
---|---|
NppStatus |
nppiCompressMarkerLabelsGetBufferSize_8u_C1R(Int32, ref Int32)
Calculate scratch buffer size needed for 1 channel 8-bit unsigned integer CompressMarkerLabels function based on the number returned in pNumber from a previous nppiLabelMarkers call.
Declaration
public static NppStatus nppiCompressMarkerLabelsGetBufferSize_8u_C1R(int nStartingNumber, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nStartingNumber | The value returned from a previous call to the nppiLabelMarkers_8u function. |
System.Int32 | hpBufferSize | Required buffer size in bytes. |
Returns
Type | Description |
---|---|
NppStatus |
nppiLabelMarkers_16u_C1IR(CUdeviceptr, Int32, NppiSize, UInt16, NppiNorm, ref Int32, CUdeviceptr)
1 channel 16-bit unsigned integer in place label markers image generation.
Declaration
public static NppStatus nppiLabelMarkers_16u_C1IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, ushort nMinVal, NppiNorm eNorm, ref int pNumber, CUdeviceptr pBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.UInt16 | 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. |
NppiNorm | eNorm | Type of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity. |
System.Int32 | pNumber | Pointer to host memory integer value where the maximum generated marker label ID will be returned. |
CUdeviceptr | pBuffer | Pointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersGetBufferSize call. |
Returns
Type | Description |
---|---|
NppStatus |
nppiLabelMarkers_8u_C1IR(CUdeviceptr, Int32, NppiSize, Byte, NppiNorm, ref Int32, CUdeviceptr)
1 channel 8-bit unsigned integer in place label markers image generation.
Declaration
public static NppStatus nppiLabelMarkers_8u_C1IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, byte nMinVal, NppiNorm eNorm, ref int pNumber, CUdeviceptr pBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Byte | 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. |
NppiNorm | eNorm | Type of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity. |
System.Int32 | pNumber | Pointer to host memory integer value where the maximum generated marker label ID will be returned. |
CUdeviceptr | pBuffer | Pointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersGetBufferSize call. |
Returns
Type | Description |
---|---|
NppStatus |
nppiLabelMarkers_8u32u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Byte, NppiNorm, ref Int32, CUdeviceptr)
1 channel 8-bit to 32-bit unsigned integer label markers image generation.
Declaration
public static NppStatus nppiLabelMarkers_8u32u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, byte nMinVal, NppiNorm eNorm, ref int pNumber, CUdeviceptr pBuffer)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Byte | 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. |
NppiNorm | eNorm | Type of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity. |
System.Int32 | pNumber | Pointer to host memory integer value where the maximum generated marker label ID will be returned. |
CUdeviceptr | pBuffer | Pointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersGetBufferSize call. |
Returns
Type | Description |
---|---|
NppStatus |
nppiLabelMarkersGetBufferSize_16u_C1R(NppiSize, ref Int32)
Calculate scratch buffer size needed for 1 channel 16-bit unsigned integer LabelMarkers function based on destination image oSizeROI width and height.
Declaration
public static NppStatus nppiLabelMarkersGetBufferSize_16u_C1R(NppiSize oSizeROI, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Int32 | hpBufferSize | Required buffer size in bytes. |
Returns
Type | Description |
---|---|
NppStatus |
nppiLabelMarkersGetBufferSize_8u_C1R(NppiSize, ref Int32)
Calculate scratch buffer size needed for 1 channel 8-bit unsigned integer LabelMarkers function based on destination image oSizeROI width and height.
Declaration
public static NppStatus nppiLabelMarkersGetBufferSize_8u_C1R(NppiSize oSizeROI, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Int32 | hpBufferSize | Required buffer size in bytes. |
Returns
Type | Description |
---|---|
NppStatus |
nppiLabelMarkersGetBufferSize_8u32u_C1R(NppiSize, ref Int32)
Calculate scratch buffer size needed for 1 channel 8-bit to 1 channel 32-bit unsigned integer LabelMarkers function based on destination image oSizeROI width and height.
Declaration
public static NppStatus nppiLabelMarkersGetBufferSize_8u32u_C1R(NppiSize oSizeROI, ref int hpBufferSize)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Int32 | hpBufferSize | Required buffer size in bytes. |
Returns
Type | Description |
---|---|
NppStatus |