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

RGB Color to Scharr Gradient Vector conversion using user selected fixed mask size and gradient distance method. More...

Functions

NppStatus nppiGradientVectorScharrBorder_8u16s_C1R_Ctx (const Npp8u *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDstX, int nDstXStep, Npp16s *pDstY, int nDstYStep, Npp16s *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 1 channel 8-bit unsigned packed RGB to optional 1 channel 16-bit signed X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control. More...
 
NppStatus nppiGradientVectorScharrBorder_8u16s_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDstX, int nDstXStep, Npp16s *pDstY, int nDstYStep, Npp16s *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
 
NppStatus nppiGradientVectorScharrBorder_8u16s_C3C1R_Ctx (const Npp8u *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDstX, int nDstXStep, Npp16s *pDstY, int nDstYStep, Npp16s *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 3 channel 8-bit unsigned packed RGB to optional 1 channel 16-bit signed X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control. More...
 
NppStatus nppiGradientVectorScharrBorder_8u16s_C3C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp16s *pDstX, int nDstXStep, Npp16s *pDstY, int nDstYStep, Npp16s *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
 
NppStatus nppiGradientVectorScharrBorder_16s32f_C1R_Ctx (const Npp16s *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 1 channel 16-bit signed packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control. More...
 
NppStatus nppiGradientVectorScharrBorder_16s32f_C1R (const Npp16s *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
 
NppStatus nppiGradientVectorScharrBorder_16s32f_C3C1R_Ctx (const Npp16s *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 3 channel 16-bit signed packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control. More...
 
NppStatus nppiGradientVectorScharrBorder_16s32f_C3C1R (const Npp16s *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
 
NppStatus nppiGradientVectorScharrBorder_16u32f_C1R_Ctx (const Npp16u *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 1 channel 16-bit unsigned packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control. More...
 
NppStatus nppiGradientVectorScharrBorder_16u32f_C1R (const Npp16u *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
 
NppStatus nppiGradientVectorScharrBorder_16u32f_C3C1R_Ctx (const Npp16u *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 3 channel 16-bit unsigned packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control. More...
 
NppStatus nppiGradientVectorScharrBorder_16u32f_C3C1R (const Npp16u *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
 
NppStatus nppiGradientVectorScharrBorder_32f_C1R_Ctx (const Npp32f *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 1 channel 32-bit floating point packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control. More...
 
NppStatus nppiGradientVectorScharrBorder_32f_C1R (const Npp32f *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
 
NppStatus nppiGradientVectorScharrBorder_32f_C3C1R_Ctx (const Npp32f *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType, NppStreamContext nppStreamCtx)
 3 channel 32-bit floating point packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control. More...
 
NppStatus nppiGradientVectorScharrBorder_32f_C3C1R (const Npp32f *pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, Npp32f *pDstX, int nDstXStep, Npp32f *pDstY, int nDstYStep, Npp32f *pDstMag, int nDstMagStep, Npp32f *pDstAngle, int nDstAngleStep, NppiSize oSizeROI, NppiMaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
 

Detailed Description

RGB Color to Scharr Gradient Vector conversion using user selected fixed mask size and gradient distance method.

Functions support up to 4 optional single channel output gradient vectors, X (vertical), Y (horizontal), magnitude, and angle with user selectable distance methods. Output for a particular vector is disabled by supplying a NULL pointer for that vector. X and Y gradient vectors are in cartesian form in the destination data type. Magnitude vectors are polar gradient form in the destination data type, angle is always in floating point polar gradient format. Only fixed mask sizes of 3x3 are supported. Only nppiNormL1 (sum) and nppiNormL2 (sqrt of sum of squares) distance methods are currently supported.

Currently only the NPP_BORDER_REPLICATE border type operation is supported. Borderless output can be accomplished by using a larger source image than the destination and adjusting oSrcSize and oSrcOffset parameters accordingly.

Common parameters for nppiFilterGradientVectorScharrBorder functions include:

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
oSrcSizeSource image width and height in pixels relative to pSrc.
oSrcOffsetThe pixel offset that pSrc points to relative to the origin of the source image.
pDstXX vector destination_image_pointer.
nDstXStepX vector destination_image_line_step.
pDstYY vector destination_image_pointer.
nDstYStepY vector destination_image_line_step.
pDstMagmagnitude destination_image_pointer.
nDstMagStepmagnitude destination_image_line_step.
pDstAngleangle destination_image_pointer.
nDstAngleStepangle destination_image_line_step.
oSizeROIRegion-of-Interest (ROI).
eMaskSizefixed filter mask size to use.
eNormgradient distance method to use.
eBorderTypesource image border type to use use.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes

The following fixed kernel mask is used for producing the pDstX (vertical) output image.

\[ \left( \begin{array}{rrr} 3 & 0 & -3 \\ 10 & 0 & -10 \\ 3 & 0 & -3 \\ \end{array} \right) \]

The following fixed kernel mask is used for producing the pDstY (horizontal) output image.

\[ \left( \begin{array}{rrr} 3 & 10 & 3 \\ 0 & 0 & 0 \\ -3 & -10 & -3 \\ \end{array} \right) \]

For the C1R versions of the function the pDstMag output image value for L1 normalization consists of the absolute value of the pDstX value plus the absolute value of the pDstY value at that particular image pixel location. For the C1R versions of the function the pDstMag output image value for L2 normalization consists of the square root of the pDstX value squared plus the pDstY value squared at that particular image pixel location. For the C1R versions of the function the pDstAngle output image value consists of the arctangent (atan2) of the pDstY value and the pDstX value at that particular image pixel location.

For the C3C1R versions of the function, regardless of the selected normalization method, the L2 normalization value is first determined for each or the pDstX and pDstY values for each source channel then the largest L2 normalization value (largest gradient) is used to select which of the 3 pDstX channel values are output to the pDstX image or pDstY channel values are output to the pDstY image. For the C3C1R versions of the function the pDstMag output image value for L1 normalizaton consists of the same technique used for the C1R version for each source image channel. Then the largest L2 normalization value is again used to select which of the 3 pDstMag channel values to output to the pDstMag image. For the C3C1R versions of the function the pDstMag output image value for L2 normalizaton consists of just outputting the largest per source channel L2 normalization value to the pDstMag image. For the C3C1R versions of the function the pDstAngle output image value consists of the same technique used for the C1R version calculated for each source image channel. Then the largest L2 normalization value is again used to select which of the 3 angle values to output to the pDstAngle image.

Function Documentation

NppStatus nppiGradientVectorScharrBorder_16s32f_C1R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType 
)
NppStatus nppiGradientVectorScharrBorder_16s32f_C1R_Ctx ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit signed packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.

For common parameter descriptions, see Common parameters for nppiFilterGradientVectorScharrBorder functions.

NppStatus nppiGradientVectorScharrBorder_16s32f_C3C1R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType 
)
NppStatus nppiGradientVectorScharrBorder_16s32f_C3C1R_Ctx ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

3 channel 16-bit signed packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.

For common parameter descriptions, see Common parameters for nppiFilterGradientVectorScharrBorder functions.

NppStatus nppiGradientVectorScharrBorder_16u32f_C1R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType 
)
NppStatus nppiGradientVectorScharrBorder_16u32f_C1R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit unsigned packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.

For common parameter descriptions, see Common parameters for nppiFilterGradientVectorScharrBorder functions.

NppStatus nppiGradientVectorScharrBorder_16u32f_C3C1R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType 
)
NppStatus nppiGradientVectorScharrBorder_16u32f_C3C1R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

3 channel 16-bit unsigned packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.

For common parameter descriptions, see Common parameters for nppiFilterGradientVectorScharrBorder functions.

NppStatus nppiGradientVectorScharrBorder_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType 
)
NppStatus nppiGradientVectorScharrBorder_32f_C1R_Ctx ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit floating point packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.

For common parameter descriptions, see Common parameters for nppiFilterGradientVectorScharrBorder functions.

NppStatus nppiGradientVectorScharrBorder_32f_C3C1R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType 
)
NppStatus nppiGradientVectorScharrBorder_32f_C3C1R_Ctx ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp32f pDstX,
int  nDstXStep,
Npp32f pDstY,
int  nDstYStep,
Npp32f pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

3 channel 32-bit floating point packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.

For common parameter descriptions, see Common parameters for nppiFilterGradientVectorScharrBorder functions.

NppStatus nppiGradientVectorScharrBorder_8u16s_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDstX,
int  nDstXStep,
Npp16s pDstY,
int  nDstYStep,
Npp16s pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType 
)
NppStatus nppiGradientVectorScharrBorder_8u16s_C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDstX,
int  nDstXStep,
Npp16s pDstY,
int  nDstYStep,
Npp16s pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned packed RGB to optional 1 channel 16-bit signed X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.

For common parameter descriptions, see Common parameters for nppiFilterGradientVectorScharrBorder functions.

NppStatus nppiGradientVectorScharrBorder_8u16s_C3C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDstX,
int  nDstXStep,
Npp16s pDstY,
int  nDstYStep,
Npp16s pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType 
)
NppStatus nppiGradientVectorScharrBorder_8u16s_C3C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSrcSize,
NppiPoint  oSrcOffset,
Npp16s pDstX,
int  nDstXStep,
Npp16s pDstY,
int  nDstYStep,
Npp16s pDstMag,
int  nDstMagStep,
Npp32f pDstAngle,
int  nDstAngleStep,
NppiSize  oSizeROI,
NppiMaskSize  eMaskSize,
NppiNorm  eNorm,
NppiBorderType  eBorderType,
NppStreamContext  nppStreamCtx 
)

3 channel 8-bit unsigned packed RGB to optional 1 channel 16-bit signed X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.

For common parameter descriptions, see Common parameters for nppiFilterGradientVectorScharrBorder functions.


Copyright © 2009-2020 NVIDIA Corporation