NVIDIA 2D Image And Signal Performance Primitives (NPP)  Version 10.2.*.*
Perspective Transform Utility Functions

The set of perspective transform utility functions. More...

Functions

NppStatus nppiGetPerspectiveTransform (NppiRect oSrcROI, const double quad, double aCoeffs)
Calculates perspective transform coefficients given source rectangular ROI and its destination quadrangle projection. More...

NppStatus nppiGetPerspectiveQuad (NppiRect oSrcROI, double quad, const double aCoeffs)
Calculates perspective transform projection of given source rectangular ROI. More...

NppStatus nppiGetPerspectiveBound (NppiRect oSrcROI, double bound, const double aCoeffs)
Calculates bounding box of the perspective transform projection of the given source rectangular ROI. More...

Detailed Description

The set of perspective transform utility functions.

Function Documentation

 NppStatus nppiGetPerspectiveBound ( NppiRect oSrcROI, double bound, const double aCoeffs )

Calculates bounding box of the perspective transform projection of the given source rectangular ROI.

Parameters
 oSrcROI Source ROI bound Bounding box of the transformed source ROI aCoeffs Perspective transform coefficients
Returns
Error codes:
• NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value
• NPP_RECTANGLE_ERROR Indicates an error condition if width or height of the intersection of the oSrcROI and source image is less than or equal to 1
• NPP_COEFFICIENT_ERROR Indicates an error condition if coefficient values are invalid
 NppStatus nppiGetPerspectiveQuad ( NppiRect oSrcROI, double quad, const double aCoeffs )

Calculates perspective transform projection of given source rectangular ROI.

Parameters
 oSrcROI Source ROI quad Destination quadrangle aCoeffs Perspective transform coefficients
Returns
Error codes:
• NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value
• NPP_RECTANGLE_ERROR Indicates an error condition if width or height of the intersection of the oSrcROI and source image is less than or equal to 1
• NPP_COEFFICIENT_ERROR Indicates an error condition if coefficient values are invalid
 NppStatus nppiGetPerspectiveTransform ( NppiRect oSrcROI, const double quad, double aCoeffs )

Calculates perspective transform coefficients given source rectangular ROI and its destination quadrangle projection.

Parameters
 oSrcROI Source ROI quad Destination quadrangle aCoeffs Perspective transform coefficients
Returns
Error codes:
• NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value
• NPP_RECTANGLE_ERROR Indicates an error condition if width or height of the intersection of the oSrcROI and source image is less than or equal to 1
• NPP_COEFFICIENT_ERROR Indicates an error condition if coefficient values are invalid