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

Performs Exact Euclidean Distance Transform function using the Parallel Banding Algorithm (PBA+) defined by Tiow-Seng Tan, et al paper named "Parallel Banding Algorithm to Compute Exact Distance Transform with the GPU" published dated August 8, 2019. More...

Functions

NppStatus  nppiDistanceTransformPBAGetBufferSize (NppiSize oSizeROI, size_t *hpBufferSize)
  Calculate scratch buffer size needed for the DistanceTransformPBA function based on destination image SizeROI width and height. More...
 
NppStatus  nppiDistanceTransformPBAGetAntialiasingBufferSize (NppiSize oSizeROI, size_t *hpAntialiasingBufferSize)
  Calculate scratch buffer size needed for the DistanceTransformPBA function antialiasing based on destination image SizeROI width and height. More...
 
NppStatus  nppiSignedDistanceTransformPBAGetBufferSize (NppiSize oSizeROI, size_t *hpBufferSize)
  Calculate scratch buffer size needed for the DistanceTransformPBA Antialiasing function based on destination image SizeROI width and height. More...
 
NppStatus  nppiSignedDistanceTransformPBAGet64fBufferSize (NppiSize oSizeROI, size_t *hpBufferSize)
  Calculate scratch buffer size needed for the SignedDistanceTransformPBA function when transform output data type is Npp64f based on destination image SizeROI width and height. More...
 
NppStatus  nppiSignedDistanceTransformPBAGetAntialiasingBufferSize (NppiSize oSizeROI, size_t *hpAntialiasingBufferSize)
  Calculate scratch buffer size needed for the SignedDistanceTransformPBA function antialiasing based on destination image SizeROI width and height. More...
 
NppStatus  nppiDistanceTransformPBA_8u16u_C1R_Ctx (Npp8u *pSrc, int nSrcStep, Npp8u nMinSiteValue, Npp8u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp16u *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_8u16u_C1R_Ctx (Npp8u *pSrc, int nSrcStep, Npp8u nMinSiteValue, Npp8u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp16u *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_8s16u_C1R_Ctx (Npp8s *pSrc, int nSrcStep, Npp8s nMinSiteValue, Npp8s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp16u *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_8s16u_C1R_Ctx (Npp8s *pSrc, int nSrcStep, Npp8s nMinSiteValue, Npp8s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp16u *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_16u16u_C1R_Ctx (Npp16u *pSrc, int nSrcStep, Npp16u nMinSiteValue, Npp16u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp16u *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_16u16u_C1R_Ctx (Npp16u *pSrc, int nSrcStep, Npp16u nMinSiteValue, Npp16u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp16u *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_16s16u_C1R_Ctx (Npp16s *pSrc, int nSrcStep, Npp16s nMinSiteValue, Npp16s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp16u *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_16s16u_C1R_Ctx (Npp16s *pSrc, int nSrcStep, Npp16s nMinSiteValue, Npp16s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp16u *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_8u32f_C1R_Ctx (Npp8u *pSrc, int nSrcStep, Npp8u nMinSiteValue, Npp8u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_8u32f_C1R_Ctx (Npp8u *pSrc, int nSrcStep, Npp8u nMinSiteValue, Npp8u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_8s32f_C1R_Ctx (Npp8s *pSrc, int nSrcStep, Npp8s nMinSiteValue, Npp8s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_8s32f_C1R_Ctx (Npp8s *pSrc, int nSrcStep, Npp8s nMinSiteValue, Npp8s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_16u32f_C1R_Ctx (Npp16u *pSrc, int nSrcStep, Npp16u nMinSiteValue, Npp16u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_16u32f_C1R_Ctx (Npp16u *pSrc, int nSrcStep, Npp16u nMinSiteValue, Npp16u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_16s32f_C1R_Ctx (Npp16s *pSrc, int nSrcStep, Npp16s nMinSiteValue, Npp16s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_16s32f_C1R_Ctx (Npp16s *pSrc, int nSrcStep, Npp16s nMinSiteValue, Npp16s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_8u64f_C1R_Ctx (Npp8u *pSrc, int nSrcStep, Npp8u nMinSiteValue, Npp8u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_8u64f_C1R_Ctx (Npp8u *pSrc, int nSrcStep, Npp8u nMinSiteValue, Npp8u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_8s64f_C1R_Ctx (Npp8s *pSrc, int nSrcStep, Npp8s nMinSiteValue, Npp8s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_8s64f_C1R_Ctx (Npp8s *pSrc, int nSrcStep, Npp8s nMinSiteValue, Npp8s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_16u64f_C1R_Ctx (Npp16u *pSrc, int nSrcStep, Npp16u nMinSiteValue, Npp16u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_16u64f_C1R_Ctx (Npp16u *pSrc, int nSrcStep, Npp16u nMinSiteValue, Npp16u nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_16s64f_C1R_Ctx (Npp16s *pSrc, int nSrcStep, Npp16s nMinSiteValue, Npp16s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_16s64f_C1R_Ctx (Npp16s *pSrc, int nSrcStep, Npp16s nMinSiteValue, Npp16s nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_32f64f_C1R_Ctx (Npp32f *pSrc, int nSrcStep, Npp32f nMinSiteValue, Npp32f nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_32f64f_C1R_Ctx (Npp32f *pSrc, int nSrcStep, Npp32f nMinSiteValue, Npp32f nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiDistanceTransformPBA_64f_C1R_Ctx (Npp64f *pSrc, int nSrcStep, Npp64f nMinSiteValue, Npp64f nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 64-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances. More...
 
NppStatus  nppiDistanceTransformAbsPBA_64f_C1R_Ctx (Npp64f *pSrc, int nSrcStep, Npp64f nMinSiteValue, Npp64f nMaxSiteValue, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 64-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances. More...
 
NppStatus  nppiSignedDistanceTransformPBA_32f_C1R_Ctx (Npp32f *pSrc, int nSrcStep, Npp32f nCutoffValue, Npp32f nSubPixelXShift, Npp32f nSubPixelYShift, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 32-bit floating point transform with optional sub-pixel shifts. More...
 
NppStatus  nppiSignedDistanceTransformAbsPBA_32f_C1R_Ctx (Npp32f *pSrc, int nSrcStep, Npp32f nCutoffValue, Npp32f nSubPixelXShift, Npp32f nSubPixelYShift, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp32f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 32-bit floating point transform with optional sub-pixel shifts. More...
 
NppStatus  nppiSignedDistanceTransformPBA_32f64f_C1R_Ctx (Npp32f *pSrc, int nSrcStep, Npp32f nCutoffValue, Npp64f nSubPixelXShift, Npp64f nSubPixelYShift, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 64-bit floating point transform with optional sub-pixel shifts. More...
 
NppStatus  nppiSignedDistanceTransformAbsPBA_32f64f_C1R_Ctx (Npp32f *pSrc, int nSrcStep, Npp32f nCutoffValue, Npp64f nSubPixelXShift, Npp64f nSubPixelYShift, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 64-bit floating point transform with optional sub-pixel shifts. More...
 
NppStatus  nppiSignedDistanceTransformPBA_64f_C1R_Ctx (Npp64f *pSrc, int nSrcStep, Npp64f nCutoffValue, Npp64f nSubPixelXShift, Npp64f nSubPixelYShift, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16s *pDstVoronoiRelativeManhattanDistances, int nDstVoronoiRelativeManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 64-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 64-bit floating point transform with optional sub-pixel shifts. More...
 
NppStatus  nppiSignedDistanceTransformAbsPBA_64f_C1R_Ctx (Npp64f *pSrc, int nSrcStep, Npp64f nCutoffValue, Npp64f nSubPixelXShift, Npp64f nSubPixelYShift, Npp16s *pDstVoronoi, int nDstVoronoiStep, Npp16s *pDstVoronoiIndices, int nDstVoronoiIndicesStep, Npp16u *pDstVoronoiAbsoluteManhattanDistances, int nDstVoronoiAbsoluteManhattanDistancesStep, Npp64f *pDstTransform, int nDstTransformStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pAntialiasingDeviceBuffer, NppStreamContext nppStreamCtx)
  1 channel 64-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 64-bit floating point transform with optional sub-pixel shifts. More...
 

Detailed Description

Performs Exact Euclidean Distance Transform function using the Parallel Banding Algorithm (PBA+) defined by Tiow-Seng Tan, et al paper named "Parallel Banding Algorithm to Compute Exact Distance Transform with the GPU" published dated August 8, 2019.

Output for these functions is an optional 16-bit signed integer voronoi diagram (pairs of signed 16 bit integer x, y distance values) and/or an optional true euclidean distance transform image generated from the internal voronoi diagram in either unsigned 16-bit truncated integer format or 32-bit floating point format. Additional optional output can include an signed 16-bit integer Voronoi diagram containing site indices and/or a signed 16-bit integer Voronoi diagram containing relative Manhattan distances to the closest sites. Minimum and maximum image ROI widths and heights are 64 and 32767.

The nMinSiteValue and nMaxSiteValue parameters can be used to control which source image pixels are considered sites(traditionally 0) and non-sites (everything else).

Antialiased true distance transform, when available, is only available as double precision floating point (Npp64f) output data only and is enabled by setting the pAntialiasingDeviceBuffer pointer parameter to a non-NULL value.

The algorithm used for antialising is derived from the edtaa4 version from "Anti-aliased Euclidean distance transform" by Stefan Gustavson et. al. published in 2009 and is used under the permissions specified below.

Derived from edtaa4.c - compute the Euclidean distance transform of an image, with more accurate handling of 1 pixel wide anti-aliased edges.

This is a MEX-file for MATLAB. MATLAB is a product of The MathWorks, Inc.

Code in "edtaa4func.c" originally by Stefan Gustavson 1994, implemented from a verbal description in the PhD dissertation of Ingemar Ragnemalm, dept of EE, Linkoping University.

Modification to handle antialiased edges and this Matlab MEX wrapper by Stefan Gustavson, (stefa.nosp@m.n.gu.nosp@m.stavs.nosp@m.on@g.nosp@m.mail..nosp@m.com) 2009-05-17

Copyright (C) 2009 Stefan Gustavson (stefa.nosp@m.n.gu.nosp@m.stavs.nosp@m.on@g.nosp@m.mail..nosp@m.com)

This software is distributed under the permissive "MIT License":

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Function Documentation

NppStatus nppiDistanceTransformAbsPBA_16s16u_C1R_Ctx ( Npp16s pSrc,
int  nSrcStep,
Npp16s  nMinSiteValue,
Npp16s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp16u pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp16u)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_16s32f_C1R_Ctx ( Npp16s pSrc,
int  nSrcStep,
Npp16s  nMinSiteValue,
Npp16s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_16s64f_C1R_Ctx ( Npp16s pSrc,
int  nSrcStep,
Npp16s  nMinSiteValue,
Npp16s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_16u16u_C1R_Ctx ( Npp16u pSrc,
int  nSrcStep,
Npp16u  nMinSiteValue,
Npp16u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp16u pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp16u)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_16u32f_C1R_Ctx ( Npp16u pSrc,
int  nSrcStep,
Npp16u  nMinSiteValue,
Npp16u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_16u64f_C1R_Ctx ( Npp16u pSrc,
int  nSrcStep,
Npp16u  nMinSiteValue,
Npp16u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_32f64f_C1R_Ctx ( Npp32f pSrc,
int  nSrcStep,
Npp32f  nMinSiteValue,
Npp32f  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_64f_C1R_Ctx ( Npp64f pSrc,
int  nSrcStep,
Npp64f  nMinSiteValue,
Npp64f  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 64-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_8s16u_C1R_Ctx ( Npp8s pSrc,
int  nSrcStep,
Npp8s  nMinSiteValue,
Npp8s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp16u pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp16u)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_8s32f_C1R_Ctx ( Npp8s pSrc,
int  nSrcStep,
Npp8s  nMinSiteValue,
Npp8s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_8s64f_C1R_Ctx ( Npp8s pSrc,
int  nSrcStep,
Npp8s  nMinSiteValue,
Npp8s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_8u16u_C1R_Ctx ( Npp8u pSrc,
int  nSrcStep,
Npp8u  nMinSiteValue,
Npp8u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp16u pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp16u)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_8u32f_C1R_Ctx ( Npp8u pSrc,
int  nSrcStep,
Npp8u  nMinSiteValue,
Npp8u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformAbsPBA_8u64f_C1R_Ctx ( Npp8u pSrc,
int  nSrcStep,
Npp8u  nMinSiteValue,
Npp8u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional absolute Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_16s16u_C1R_Ctx ( Npp16s pSrc,
int  nSrcStep,
Npp16s  nMinSiteValue,
Npp16s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp16u pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp16u)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_16s32f_C1R_Ctx ( Npp16s pSrc,
int  nSrcStep,
Npp16s  nMinSiteValue,
Npp16s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_16s64f_C1R_Ctx ( Npp16s pSrc,
int  nSrcStep,
Npp16s  nMinSiteValue,
Npp16s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_16u16u_C1R_Ctx ( Npp16u pSrc,
int  nSrcStep,
Npp16u  nMinSiteValue,
Npp16u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp16u pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp16u)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_16u32f_C1R_Ctx ( Npp16u pSrc,
int  nSrcStep,
Npp16u  nMinSiteValue,
Npp16u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_16u64f_C1R_Ctx ( Npp16u pSrc,
int  nSrcStep,
Npp16u  nMinSiteValue,
Npp16u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_32f64f_C1R_Ctx ( Npp32f pSrc,
int  nSrcStep,
Npp32f  nMinSiteValue,
Npp32f  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_64f_C1R_Ctx ( Npp64f pSrc,
int  nSrcStep,
Npp64f  nMinSiteValue,
Npp64f  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 64-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_8s16u_C1R_Ctx ( Npp8s pSrc,
int  nSrcStep,
Npp8s  nMinSiteValue,
Npp8s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp16u pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp16u)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_8s32f_C1R_Ctx ( Npp8s pSrc,
int  nSrcStep,
Npp8s  nMinSiteValue,
Npp8s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_8s64f_C1R_Ctx ( Npp8s pSrc,
int  nSrcStep,
Npp8s  nMinSiteValue,
Npp8s  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit signed grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue signed source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_8u16u_C1R_Ctx ( Npp8u pSrc,
int  nSrcStep,
Npp8u  nMinSiteValue,
Npp8u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp16u pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional unsigned 16-bit truncated integer transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp16u)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_8u32f_C1R_Ctx ( Npp8u pSrc,
int  nSrcStep,
Npp8u  nMinSiteValue,
Npp8u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 32-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBA_8u64f_C1R_Ctx ( Npp8u pSrc,
int  nSrcStep,
Npp8u  nMinSiteValue,
Npp8u  nMaxSiteValue,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram output and/or optional 64-bit floating point transform with optional relative Manhattan distances.

Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nMinSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
nMaxSiteValue source image pixel values >= nMinSiteValue and <= nMaxSiteValue are considered sites (traditionally 0s).
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp64f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiDistanceTransformPBAGetBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBAGetAntialiasingBufferSize ( NppiSize  oSizeROI,
size_t *  hpAntialiasingBufferSize 
)

Calculate scratch buffer size needed for the DistanceTransformPBA function antialiasing based on destination image SizeROI width and height.

Parameters
oSizeROI Region-of-Interest (ROI).
hpAntialiasingBufferSize Optional buffer size. Important: hpAntialiasingBufferSize is a host pointer. Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiDistanceTransformPBAGetBufferSize ( NppiSize  oSizeROI,
size_t *  hpBufferSize 
)

Calculate scratch buffer size needed for the DistanceTransformPBA function based on destination image SizeROI width and height.

Parameters
oSizeROI Region-of-Interest (ROI).
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSignedDistanceTransformAbsPBA_32f64f_C1R_Ctx ( Npp32f pSrc,
int  nSrcStep,
Npp32f  nCutoffValue,
Npp64f  nSubPixelXShift,
Npp64f  nSubPixelYShift,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 64-bit floating point transform with optional sub-pixel shifts.

For this particular version of the function acceptable input pixel intensities are less than or equal to 0.0f for those fully outside of connected pixel regions, intensities with fractional parts between 0.0f and 1.0f representing the percentage of connected pixel region sub-pixel coverage within a particular pixel (region contour), and intensities greater than or equal to 1.0f for pixels that are fully contained within closed connected pixel regions. This function executes in two passes, the first pass prioritizes pixels outside of closed regions, the second pass prioritizes pixels within closed regions. The two passes are then merged on output. The function assumes that fully covered pixels have centers located at sub-pixel locations of .5,.5 .

ExampleSignedDistanceTransform.png
ExampleShiftedSignedDistanceTransform.png
Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nCutoffValue source image pixel values < nCutoffValue will be considered fully outside of pixel regions (and set to -1).
nSubPixelXShift final transform distances will be shifted in the X direction by this sub-pixel fraction.
nSubPixelYShift final transform distances will be shifted in the Y direction by this sub-pixel fraction.
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiSignedDistanceTransformPBAGet64fBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiSignedDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSignedDistanceTransformAbsPBA_32f_C1R_Ctx ( Npp32f pSrc,
int  nSrcStep,
Npp32f  nCutoffValue,
Npp32f  nSubPixelXShift,
Npp32f  nSubPixelYShift,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 32-bit floating point transform with optional sub-pixel shifts.

For this particular version of the function acceptable input pixel intensities are less than or equal to 0.0f for those fully outside of connected pixel regions, intensities with fractional parts between 0.0f and 1.0f representing the percentage of connected pixel region sub-pixel coverage within a particular pixel (region contour), and intensities greater than or equal to 1.0f for pixels that are fully contained within closed connected pixel regions. This function executes in two passes, the first pass prioritizes pixels outside of closed regions, the second pass prioritizes pixels within closed regions. The two passes are then merged on output. The function assumes that fully covered pixels have centers located at sub-pixel locations of .5,.5 .

ExampleSignedDistanceTransform.png
ExampleShiftedSignedDistanceTransform.png
Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nCutoffValue source image pixel values < nCutoffValue will be considered fully outside of pixel regions (and set to -1).
nSubPixelXShift final transform distances will be shifted in the X direction by this sub-pixel fraction.
nSubPixelYShift final transform distances will be shifted in the Y direction by this sub-pixel fraction.
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiSignedDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSignedDistanceTransformAbsPBA_64f_C1R_Ctx ( Npp64f pSrc,
int  nSrcStep,
Npp64f  nCutoffValue,
Npp64f  nSubPixelXShift,
Npp64f  nSubPixelYShift,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16u pDstVoronoiAbsoluteManhattanDistances,
int  nDstVoronoiAbsoluteManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 64-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 64-bit floating point transform with optional sub-pixel shifts.

For this particular version of the function acceptable input pixel intensities are less than or equal to 0.0f for those fully outside of connected pixel regions, intensities with fractional parts between 0.0f and 1.0f representing the percentage of connected pixel region sub-pixel coverage within a particular pixel (region contour), and intensities greater than or equal to 1.0f for pixels that are fully contained within closed connected pixel regions. This function executes in two passes, the first pass prioritizes pixels outside of closed regions, the second pass prioritizes pixels within closed regions. The two passes are then merged on output. The function assumes that fully covered pixels have centers located at sub-pixel locations of .5,.5 .

ExampleSignedDistanceTransform.png
ExampleShiftedSignedDistanceTransform.png
Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nCutoffValue source image pixel values < nCutoffValue will be considered fully outside of pixel regions (and set to -1).
nSubPixelXShift final transform distances will be shifted in the X direction by this sub-pixel fraction.
nSubPixelYShift final transform distances will be shifted in the Y direction by this sub-pixel fraction.
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiAbsoluteManhattanDistances device memory voronoi absolute Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiAbsoluteManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiSignedDistanceTransformPBAGet64fBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSignedDistanceTransformPBA_32f64f_C1R_Ctx ( Npp32f pSrc,
int  nSrcStep,
Npp32f  nCutoffValue,
Npp64f  nSubPixelXShift,
Npp64f  nSubPixelYShift,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 64-bit floating point transform with optional sub-pixel shifts.

For this particular version of the function acceptable input pixel intensities are less than or equal to 0.0f for those fully outside of connected pixel regions, intensities with fractional parts between 0.0f and 1.0f representing the percentage of connected pixel region sub-pixel coverage within a particular pixel (region contour), and intensities greater than or equal to 1.0f for pixels that are fully contained within closed connected pixel regions. This function executes in two passes, the first pass prioritizes pixels outside of closed regions, the second pass prioritizes pixels within closed regions. The two passes are then merged on output. The function assumes that fully covered pixels have centers located at sub-pixel locations of .5,.5 .

ExampleSignedDistanceTransform.png
ExampleShiftedSignedDistanceTransform.png
Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nCutoffValue source image pixel values < nCutoffValue will be considered fully outside of pixel regions (and set to -1).
nSubPixelXShift final transform distances will be shifted in the X direction by this sub-pixel fraction.
nSubPixelYShift final transform distances will be shifted in the Y direction by this sub-pixel fraction.
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiSignedDistanceTransformPBAGet64fBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiSignedDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSignedDistanceTransformPBA_32f_C1R_Ctx ( Npp32f pSrc,
int  nSrcStep,
Npp32f  nCutoffValue,
Npp32f  nSubPixelXShift,
Npp32f  nSubPixelYShift,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp32f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 32-bit floating point transform with optional sub-pixel shifts.

For this particular version of the function acceptable input pixel intensities are less than or equal to 0.0f for those fully outside of connected pixel regions, intensities with fractional parts between 0.0f and 1.0f representing the percentage of connected pixel region sub-pixel coverage within a particular pixel (region contour), and intensities greater than or equal to 1.0f for pixels that are fully contained within closed connected pixel regions. This function executes in two passes, the first pass prioritizes pixels outside of closed regions, the second pass prioritizes pixels within closed regions. The two passes are then merged on output. The function assumes that fully covered pixels have centers located at sub-pixel locations of .5,.5 .

ExampleSignedDistanceTransform.png
ExampleShiftedSignedDistanceTransform.png
Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nCutoffValue source image pixel values < nCutoffValue will be considered fully outside of pixel regions (and set to -1).
nSubPixelXShift final transform distances will be shifted in the X direction by this sub-pixel fraction.
nSubPixelYShift final transform distances will be shifted in the Y direction by this sub-pixel fraction.
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiSignedDistanceTransformPBAGetBufferSize() above)
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSignedDistanceTransformPBA_64f_C1R_Ctx ( Npp64f pSrc,
int  nSrcStep,
Npp64f  nCutoffValue,
Npp64f  nSubPixelXShift,
Npp64f  nSubPixelYShift,
Npp16s pDstVoronoi,
int  nDstVoronoiStep,
Npp16s pDstVoronoiIndices,
int  nDstVoronoiIndicesStep,
Npp16s pDstVoronoiRelativeManhattanDistances,
int  nDstVoronoiRelativeManhattanDistancesStep,
Npp64f pDstTransform,
int  nDstTransformStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pAntialiasingDeviceBuffer,
NppStreamContext  nppStreamCtx 
)

1 channel 64-bit floating point grayscale to optional 1 channel 16-bit signed integer euclidean distance voronoi diagram and 64-bit floating point transform with optional sub-pixel shifts.

For this particular version of the function acceptable input pixel intensities are less than or equal to 0.0f for those fully outside of connected pixel regions, intensities with fractional parts between 0.0f and 1.0f representing the percentage of connected pixel region sub-pixel coverage within a particular pixel (region contour), and intensities greater than or equal to 1.0f for pixels that are fully contained within closed connected pixel regions. This function executes in two passes, the first pass prioritizes pixels outside of closed regions, the second pass prioritizes pixels within closed regions. The two passes are then merged on output. The function assumes that fully covered pixels have centers located at sub-pixel locations of .5,.5 .

ExampleSignedDistanceTransform.png
ExampleShiftedSignedDistanceTransform.png
Parameters
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nCutoffValue source image pixel values < nCutoffValue will be considered fully outside of pixel regions (and set to -1).
nSubPixelXShift final transform distances will be shifted in the X direction by this sub-pixel fraction.
nSubPixelYShift final transform distances will be shifted in the Y direction by this sub-pixel fraction.
pDstVoronoi device memory voronoi diagram destination_image_pointer or NULL for no voronoi output.
nDstVoronoiStep voronoi destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiIndices device memory voronoi diagram destination_image_pointer or NULL for no voronoi indices output.
nDstVoronoiIndicesStep voronoi indices destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstVoronoiRelativeManhattanDistances device memory voronoi relative Manhattan distances destination_image_pointer or NULL for no voronoi Manhattan output.
nDstVoronoiRelativeManhattanDistancesStep voronoi Manhattan destination_image_line_step (must be at least oSizeROI.width * 2 * sizeof(Npp16s)).
pDstTransform device memory true euclidean distance transform destination_image_pointer or NULL for no transform output.
nDstTransformStep true euclidean distance transform destination_image_line_step (must be at least oSizeROI.width * sizeof(Npp32f)).
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer pointer to scratch DEVICE memory buffer of size hpBufferSize (see nppiSignedDistanceTransformPBAGet64fBufferSize() above)
pAntialiasingDeviceBuffer pointer to scratch DEVICE memory buffer of size hpAntialiasingBufferSize (see nppiDistanceTransformPBAGetAntialiasingBufferSize() above) or NULL if not Antialiasing
nppStreamCtx Application Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSignedDistanceTransformPBAGet64fBufferSize ( NppiSize  oSizeROI,
size_t *  hpBufferSize 
)

Calculate scratch buffer size needed for the SignedDistanceTransformPBA function when transform output data type is Npp64f based on destination image SizeROI width and height.

Parameters
oSizeROI Region-of-Interest (ROI).
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSignedDistanceTransformPBAGetAntialiasingBufferSize ( NppiSize  oSizeROI,
size_t *  hpAntialiasingBufferSize 
)

Calculate scratch buffer size needed for the SignedDistanceTransformPBA function antialiasing based on destination image SizeROI width and height.

Parameters
oSizeROI Region-of-Interest (ROI).
hpAntialiasingBufferSize Optional buffer size. Important: hpAntialiasingBufferSize is a host pointer. Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiSignedDistanceTransformPBAGetBufferSize ( NppiSize  oSizeROI,
size_t *  hpBufferSize 
)

Calculate scratch buffer size needed for the DistanceTransformPBA Antialiasing function based on destination image SizeROI width and height.

Parameters
oSizeROI Region-of-Interest (ROI).
hpBufferSize Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes