NVIDIA 2D Image And Signal Performance Primitives (NPP)  Version 11.0.1.*
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
LabelMarkers

Generate image connected region label markers to be used for later image segmentation. More...

LabelMarkersGetBufferSize

Before calling any of the LabelMarkers functions the application first needs to call the corresponding LabelMarkersGetBufferSize function to determine the amount of device memory to allocate as a working buffer.

The application allocated device memory is then passed as the pBuffer parameter to the corresponding LabelMarkers function.

NppStatus nppiLabelMarkersGetBufferSize_8u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Calculate scratch buffer size needed for 1 channel 8-bit unsigned integer LabelMarkers function based on destination image oSizeROI width and height. More...
 
NppStatus nppiLabelMarkersGetBufferSize_8u32u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 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. More...
 
NppStatus nppiLabelMarkersGetBufferSize_16u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Calculate scratch buffer size needed for 1 channel 16-bit unsigned integer LabelMarkers function based on destination image oSizeROI width and height. More...
 

LabelMarkers

Generate image connected region label markers to be used for later image segmentation.

A connected region is any non-zero pixel region bounded by pixel values less than or equal to nMinVal. Pixels outside the ROI are always treated as having values of 0 thus resulting in a connected region segmentation boundary in that direction. Note that while marker label IDs start at ID number 1, they are not generated in any particular order and there may be numeric gaps between sequential marker IDs. The pNumber parameter returns the value of the maximum label ID generated in the first pass. However during convergence passes higher label ID numbers in connected regions containing multiple label ID numbers will be replaced with the lowest label ID number in the region. However, connected region label IDs will be unique unless the value returned by pNumber exceeds the data type range of a destination pixel in which case ID values will roll over causing some to be used on multiple connected regions. If this occurs for 8 bit data it is recommended that you use the 8u32u version of the function for 8 bit data. Pixels not connected to any connected region like those with values less than or equal to nMinVal will be assigned a marker label ID value of 0.

Before calling any of the LabelMarkers functions the application first needs to call the corresponding LabelMarkersGetBufferSize to determine the amount of device memory to allocate as a working buffer. The allocated device memory is then passed as the pBuffer parameter to the corresponding LabelMarkers function.

NppStatus nppiLabelMarkers_8u_C1IR_Ctx (Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, Npp8u nMinVal, NppiNorm eNorm, int *pNumber, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 1 channel 8-bit unsigned integer in place label markers image generation. More...
 
NppStatus nppiLabelMarkers_8u_C1IR (Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, Npp8u nMinVal, NppiNorm eNorm, int *pNumber, Npp8u *pBuffer)
 
NppStatus nppiLabelMarkers_8u32u_C1R_Ctx (Npp8u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, Npp8u nMinVal, NppiNorm eNorm, int *pNumber, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 1 channel 8-bit to 32-bit unsigned integer label markers image generation. More...
 
NppStatus nppiLabelMarkers_8u32u_C1R (Npp8u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, Npp8u nMinVal, NppiNorm eNorm, int *pNumber, Npp8u *pBuffer)
 
NppStatus nppiLabelMarkers_16u_C1IR_Ctx (Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, Npp16u nMinVal, NppiNorm eNorm, int *pNumber, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 1 channel 16-bit unsigned integer in place label markers image generation. More...
 
NppStatus nppiLabelMarkers_16u_C1IR (Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, Npp16u nMinVal, NppiNorm eNorm, int *pNumber, Npp8u *pBuffer)
 

LabelMarkersUFGetBufferSize

Before calling any of the LabelMarkersUF functions the application first needs to call the LabelMarkersGetBufferSize function to determine the amount of device memory to allocate as a working buffer.

The application allocated device memory is then passed as the pBuffer parameter to the corresponding LabelMarkersUF function.

NppStatus nppiLabelMarkersUFGetBufferSize_32u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Calculate scratch buffer size needed 1 channel 32-bit unsigned integer LabelMarkersUF function based on destination image oSizeROI width and height. More...
 

LabelMarkersUF

Generate image connected region label markers to be used for later image segmentation.

A connected region is any pixel region where all pixels in the region have the same pixel value. Note that marker label IDs generally increase in value from image left to right and top to bottom they are not generated in any particular order and there may be numeric gaps between sequential marker IDs. To limit the number of marker IDs generated the application should pass the image through a threshold filter before calling this funcion. Doing so however does not necessarily limit the maximum marker ID value generated by this function. Note that these functions currently only support image ROI sizes up to 4 gigapixels. Also note that while these functions support destination image pitches that are not exactly equal to oSizeROI.width * sizeof(Npp32u) it can avoid a cudaMemCpyAsync() call to copy the final result from the working buffer to the destination image if the pitch exactly equals oSizeROI.width * sizeof(Npp32u).

Before calling any of the LabelMarkersUF functions the application first needs to call the LabelMarkersUFGetBufferSize to determine the amount of device memory to allocate as a working buffer. The allocated device memory is then passed as the pBuffer parameter to the corresponding LabelMarkersUF function.

The algorithm used in this implementation is based on the one described in "An Optimized Union-Find Algorithm for Connected Components Labeling Using GPUs" by Jun Chen and others.

Note that the destination image in these functions must be allocated with cudaMalloc() and NOT cudaMallocPitch(). Also the pitch of the output image MUST be set to oSizeROI.width * sizeof(Npp32u).

NppStatus nppiLabelMarkersUF_8u32u_C1R_Ctx (Npp8u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 1 channel 8-bit to 32-bit unsigned integer label markers image generation. More...
 
NppStatus nppiLabelMarkersUF_8u32u_C1R (Npp8u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm, Npp8u *pBuffer)
 
NppStatus nppiLabelMarkersUF_16u32u_C1R_Ctx (Npp16u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 1 channel 16-bit to 32-bit unsigned integer label markers image generation. More...
 
NppStatus nppiLabelMarkersUF_16u32u_C1R (Npp16u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm, Npp8u *pBuffer)
 
NppStatus nppiLabelMarkersUF_32u_C1R_Ctx (Npp32u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm, Npp8u *pBuffer, NppStreamContext nppStreamCtx)
 1 channel 32-bit to 32-bit unsigned integer label markers image generation. More...
 
NppStatus nppiLabelMarkersUF_32u_C1R (Npp32u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm, Npp8u *pBuffer)
 

LabelMarkersUFBatch

Generate image connected region label markers to be used for later image segmentation for a batched list of images.

A connected region is any pixel region where all pixels in the region have the same pixel value. Note that marker label IDs generally increase in value from image left to right and top to bottom they are not generated in any particular order and there may be numeric gaps between sequential marker IDs. To limit the number of marker IDs generated the application should pass the image through a threshold filter before calling this funcion. Doing so however does not necessarily limit the maximum marker ID value generated by this function. Note that these functions currently only support image ROI sizes up to 4 gigapixels. Also note that these functions work directly in the destination image so destination pitch MUST be equal to destination ROI.width * sizeof(Npp32u) and even if destination pitch is greater than that the output will be in that format. If this doesn't work for you use the single image version of these functions or cudaMemCopy2D can be called for each output image to restore the original pitch. Note that all source and destination images in the batch list must contain enough device memory to support the full ROI size. ROIs in descriptor lists are ignored in these functions.

The algorithm used in this implementation is based on the one described in "An Optimized Union-Find Algorithm for Connected Components Labeling Using GPUs" by Jun Chen and others.

Note that the destination images in these functions must be allocated with cudaMalloc() and NOT cudaMallocPitch(). Also the pitch of the output image MUST be set to oSizeROI.width * sizeof(Npp32u).

NppStatus nppiLabelMarkersUFBatch_8u32u_C1R_Ctx (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oSizeROI, NppiNorm eNorm, NppStreamContext nppStreamCtx)
 1 channel 8-bit to 32-bit unsigned integer label markers image generation with fixed destination ROI applied to all images in the batch. More...
 
NppStatus nppiLabelMarkersUFBatch_8u32u_C1R (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oSizeROI, NppiNorm eNorm)
 
NppStatus nppiLabelMarkersUFBatch_16u32u_C1R_Ctx (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oSizeROI, NppiNorm eNorm, NppStreamContext nppStreamCtx)
 1 channel 16-bit to 32-bit unsigned integer label markers image generation with fixed destination ROI applied to all images in the batch. More...
 
NppStatus nppiLabelMarkersUFBatch_16u32u_C1R (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oSizeROI, NppiNorm eNorm)
 
NppStatus nppiLabelMarkersUFBatch_32u_C1R_Ctx (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oSizeROI, NppiNorm eNorm, NppStreamContext nppStreamCtx)
 1 channel 32-bit to 32-bit unsigned integer label markers image generation with fixed destination ROI applied to all images in the batch. More...
 
NppStatus nppiLabelMarkersUFBatch_32u_C1R (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oSizeROI, NppiNorm eNorm)
 

LabelMarkersUFBatchAdvanced

Generate image connected region label markers to be used for later image segmentation for a batched list of images.

A connected region is any pixel region where all pixels in the region have the same pixel value. Note that marker label IDs generally increase in value from image left to right and top to bottom they are not generated in any particular order and there may be numeric gaps between sequential marker IDs. To limit the number of marker IDs generated the application should pass the image through a threshold filter before calling this funcion. Doing so however does not necessarily limit the maximum marker ID value generated by this function. Note that these functions currently only support image ROI sizes up to 4 gigapixels. Also note that these functions work directly in the destination image so destination pitch MUST be equal to destination ROI.width * sizeof(Npp32u) for each destination image in the list and even if the destination image pitch is greater than that of the output will be in that format. If this doesn't work for you use the single image version of these functions or cudaMemCopy2D can be called for each output image to restore the original pitch. Note that all source and destination images in the batch list must contain enough device memory to contain their specified ROI size.

The algorithm used in this implementation is based on the one described in "An Optimized Union-Find Algorithm for Connected Components Labeling Using GPUs" by Jun Chen and others.

Note that the destination images in these functions must be allocated with cudaMalloc() and NOT cudaMallocPitch(). Also the pitch of the output image MUST be set to oSizeROI.width * sizeof(Npp32u).

NppStatus nppiLabelMarkersUFBatch_8u32u_C1R_Advanced_Ctx (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oMaxSizeROI, NppiNorm eNorm, NppStreamContext nppStreamCtx)
 1 channel 8-bit to 32-bit unsigned integer label markers image generation with per image destination ROI. More...
 
NppStatus nppiLabelMarkersUFBatch_8u32u_C1R_Advanced (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oMaxSizeROI, NppiNorm eNorm)
 
NppStatus nppiLabelMarkersUFBatch_16u32u_C1R_Advanced_Ctx (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oMaxSizeROI, NppiNorm eNorm, NppStreamContext nppStreamCtx)
 1 channel 16-bit to 32-bit unsigned integer label markers image generation with per image destination ROI. More...
 
NppStatus nppiLabelMarkersUFBatch_16u32u_C1R_Advanced (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oMaxSizeROI, NppiNorm eNorm)
 
NppStatus nppiLabelMarkersUFBatch_32u_C1R_Advanced_Ctx (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oMaxSizeROI, NppiNorm eNorm, NppStreamContext nppStreamCtx)
 1 channel 32-bit to 32-bit unsigned integer label markers image generation with per image destination ROI. More...
 
NppStatus nppiLabelMarkersUFBatch_32u_C1R_Advanced (const NppiImageDescriptor *pSrcBatchList, NppiImageDescriptor *pDstBatchList, int nBatchSize, NppiSize oMaxSizeROI, NppiNorm eNorm)
 

Detailed Description

Generate image connected region label markers to be used for later image segmentation.

Function Documentation

NppStatus nppiLabelMarkers_16u_C1IR ( Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
Npp16u  nMinVal,
NppiNorm  eNorm,
int *  pNumber,
Npp8u pBuffer 
)
NppStatus nppiLabelMarkers_16u_C1IR_Ctx ( Npp16u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
Npp16u  nMinVal,
NppiNorm  eNorm,
int *  pNumber,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit unsigned integer in place label markers image generation.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepSource-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nMinValPixel values less than or equal to nMinVal will be excluded as members of any connected region and given a label ID of 0.
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity.
pNumberPointer to host memory integer value where the maximum generated marker label ID will be returned.
pBufferPointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersGetBufferSize call.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkers_8u32u_C1R ( Npp8u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp8u  nMinVal,
NppiNorm  eNorm,
int *  pNumber,
Npp8u pBuffer 
)
NppStatus nppiLabelMarkers_8u32u_C1R_Ctx ( Npp8u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp8u  nMinVal,
NppiNorm  eNorm,
int *  pNumber,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit to 32-bit unsigned integer label markers image generation.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nMinValPixel values less than or equal to nMinVal will be excluded as members of any connected region and given a label ID of 0.
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity.
pNumberPointer to host memory integer value where the maximum generated marker label ID will be returned.
pBufferPointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersGetBufferSize call.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkers_8u_C1IR ( Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
Npp8u  nMinVal,
NppiNorm  eNorm,
int *  pNumber,
Npp8u pBuffer 
)
NppStatus nppiLabelMarkers_8u_C1IR_Ctx ( Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
Npp8u  nMinVal,
NppiNorm  eNorm,
int *  pNumber,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned integer in place label markers image generation.

Parameters
pSrcDstIn-Place Image Pointer.
nSrcDstStepSource-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nMinValPixel values less than or equal to nMinVal will be excluded as members of any connected region and given a label ID of 0.
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity.
pNumberPointer to host memory integer value where the maximum generated marker label ID will be returned.
pBufferPointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersGetBufferSize call.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersGetBufferSize_16u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Calculate scratch buffer size needed for 1 channel 16-bit unsigned integer LabelMarkers function based on destination image oSizeROI width and height.

Parameters
oSizeROIRegion-of-Interest (ROI).
hpBufferSizeRequired buffer size in bytes.
NppStatus nppiLabelMarkersGetBufferSize_8u32u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

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.

Parameters
oSizeROIRegion-of-Interest (ROI).
hpBufferSizeRequired buffer size in bytes.
NppStatus nppiLabelMarkersGetBufferSize_8u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Calculate scratch buffer size needed for 1 channel 8-bit unsigned integer LabelMarkers function based on destination image oSizeROI width and height.

Parameters
oSizeROIRegion-of-Interest (ROI).
hpBufferSizeRequired buffer size in bytes.
NppStatus nppiLabelMarkersUF_16u32u_C1R ( Npp16u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppiNorm  eNorm,
Npp8u pBuffer 
)
NppStatus nppiLabelMarkersUF_16u32u_C1R_Ctx ( Npp16u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppiNorm  eNorm,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit to 32-bit unsigned integer label markers image generation.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity.
pBufferPointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersUFGetBufferSize call.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersUF_32u_C1R ( Npp32u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppiNorm  eNorm,
Npp8u pBuffer 
)
NppStatus nppiLabelMarkersUF_32u_C1R_Ctx ( Npp32u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppiNorm  eNorm,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit to 32-bit unsigned integer label markers image generation.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity.
pBufferPointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersUFGetBufferSize call.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersUF_8u32u_C1R ( Npp8u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppiNorm  eNorm,
Npp8u pBuffer 
)
NppStatus nppiLabelMarkersUF_8u32u_C1R_Ctx ( Npp8u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppiNorm  eNorm,
Npp8u pBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit to 32-bit unsigned integer label markers image generation.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity.
pBufferPointer to device memory scratch buffer at least as large as value returned by the corresponding LabelMarkersUFGetBufferSize call.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersUFBatch_16u32u_C1R ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oSizeROI,
NppiNorm  eNorm 
)
NppStatus nppiLabelMarkersUFBatch_16u32u_C1R_Advanced ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oMaxSizeROI,
NppiNorm  eNorm 
)
NppStatus nppiLabelMarkersUFBatch_16u32u_C1R_Advanced_Ctx ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oMaxSizeROI,
NppiNorm  eNorm,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit to 32-bit unsigned integer label markers image generation with per image destination ROI.

Parameters
pSrcBatchListSource-Batch-Images Pointer device memory pointer to the list of device memory source image descriptors, oSize element is ignored.
pDstBatchListDestination-Batch-Images Pointer device memory pointer to the list of device memory destination image descriptors.
nBatchSizeNumber of NppiImageDescriptor structures processed in this call (must be > 1).
oMaxSizeROIRegion-of-Interest (ROI) maximum ROI width and height of ALL images in the batch.
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity for all images in batch.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersUFBatch_16u32u_C1R_Ctx ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oSizeROI,
NppiNorm  eNorm,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit to 32-bit unsigned integer label markers image generation with fixed destination ROI applied to all images in the batch.

Parameters
pSrcBatchListSource-Batch-Images Pointer device memory pointer to the list of device memory source image descriptors, oSize element is ignored.
pDstBatchListDestination-Batch-Images Pointer device memory pointer to the list of device memory destination image descriptors, oSize element is ignored.
nBatchSizeNumber of NppiImageDescriptor structures processed in this call (must be > 1).
oSizeROIRegion-of-Interest (ROI).
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity for all images in batch.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersUFBatch_32u_C1R ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oSizeROI,
NppiNorm  eNorm 
)
NppStatus nppiLabelMarkersUFBatch_32u_C1R_Advanced ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oMaxSizeROI,
NppiNorm  eNorm 
)
NppStatus nppiLabelMarkersUFBatch_32u_C1R_Advanced_Ctx ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oMaxSizeROI,
NppiNorm  eNorm,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit to 32-bit unsigned integer label markers image generation with per image destination ROI.

Parameters
pSrcBatchListSource-Batch-Images Pointer device memory pointer to the list of device memory source image descriptors, oSize element is ignored.
pDstBatchListDestination-Batch-Images Pointer device memory pointer to the list of device memory destination image descriptors.
nBatchSizeNumber of NppiImageDescriptor structures processed in this call (must be > 1).
oMaxSizeROIRegion-of-Interest (ROI) maximum ROI width and height of ALL images in the batch.
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity for all images in batch.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersUFBatch_32u_C1R_Ctx ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oSizeROI,
NppiNorm  eNorm,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit to 32-bit unsigned integer label markers image generation with fixed destination ROI applied to all images in the batch.

Parameters
pSrcBatchListSource-Batch-Images Pointer device memory pointer to the list of device memory source image descriptors, oSize element is ignored.
pDstBatchListDestination-Batch-Images Pointer device memory pointer to the list of device memory destination image descriptors, oSize element is ignored.
nBatchSizeNumber of NppiImageDescriptor structures processed in this call (must be > 1).
oSizeROIRegion-of-Interest (ROI).
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity for all images in batch.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersUFBatch_8u32u_C1R ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oSizeROI,
NppiNorm  eNorm 
)
NppStatus nppiLabelMarkersUFBatch_8u32u_C1R_Advanced ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oMaxSizeROI,
NppiNorm  eNorm 
)
NppStatus nppiLabelMarkersUFBatch_8u32u_C1R_Advanced_Ctx ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oMaxSizeROI,
NppiNorm  eNorm,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit to 32-bit unsigned integer label markers image generation with per image destination ROI.

Parameters
pSrcBatchListSource-Batch-Images Pointer device memory pointer to the list of device memory source image descriptors, oSize element is ignored.
pDstBatchListDestination-Batch-Images Pointer device memory pointer to the list of device memory destination image descriptors.
nBatchSizeNumber of NppiImageDescriptor structures processed in this call (must be > 1).
oMaxSizeROIRegion-of-Interest (ROI) maximum ROI width and height of ALL images in the batch.
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity for all images in batch.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersUFBatch_8u32u_C1R_Ctx ( const NppiImageDescriptor pSrcBatchList,
NppiImageDescriptor pDstBatchList,
int  nBatchSize,
NppiSize  oSizeROI,
NppiNorm  eNorm,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit to 32-bit unsigned integer label markers image generation with fixed destination ROI applied to all images in the batch.

Parameters
pSrcBatchListSource-Batch-Images Pointer device memory pointer to the list of device memory source image descriptors, oSize element is ignored.
pDstBatchListDestination-Batch-Images Pointer device memory pointer to the list of device memory destination image descriptors, oSize element is ignored.
nBatchSizeNumber of NppiImageDescriptor structures processed in this call (must be > 1).
oSizeROIRegion-of-Interest (ROI).
eNormType of pixel connectivity test to use, nppiNormInf will use 8 way connectivity and nppiNormL1 will use 4 way connectivity for all images in batch.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLabelMarkersUFGetBufferSize_32u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Calculate scratch buffer size needed 1 channel 32-bit unsigned integer LabelMarkersUF function based on destination image oSizeROI width and height.

Parameters
oSizeROIRegion-of-Interest (ROI).
hpBufferSizeRequired buffer size in bytes.

Copyright © 2009-2020 NVIDIA Corporation