Jetson Inference
DNN Vision Library
|
Various image warps and matrix transforms. More...
Functions | |
cudaError_t | cudaWarpAffine (uchar4 *input, uchar4 *output, uint32_t width, uint32_t height, const float transform[2][3], bool transform_inverted=false) |
Apply 2x3 affine warp to an 8-bit fixed-point RGBA image. More... | |
cudaError_t | cudaWarpAffine (float4 *input, float4 *output, uint32_t width, uint32_t height, const float transform[2][3], bool transform_inverted=false) |
Apply 2x3 affine warp to an 32-bit floating-point RGBA image. More... | |
cudaError_t | cudaWarpPerspective (void *input, uint32_t inputWidth, uint32_t inputHeight, imageFormat inputFormat, void *output, uint32_t outputWidth, uint32_t outputHeight, imageFormat outputFormat, const float transform[3][3], bool transform_inverted=false) |
Apply a 3x3 perspective warp to an image. More... | |
template<typename T > | |
cudaError_t | cudaWarpPerspective (T *input, uint32_t inputWidth, uint32_t inputHeight, T *output, uint32_t outputWidth, uint32_t outputHeight, const float transform[3][3], bool transform_inverted=false) |
Apply a 3x3 perspective warp to an image. More... | |
cudaError_t | cudaWarpPerspective (uchar4 *input, uchar4 *output, uint32_t width, uint32_t height, const float transform[3][3], bool transform_inverted=false) |
Apply 3x3 perspective warp to an 8-bit fixed-point RGBA image. More... | |
cudaError_t | cudaWarpPerspective (float4 *input, float4 *output, uint32_t width, uint32_t height, const float transform[3][3], bool transform_inverted=false) |
Apply 3x3 perspective warp to an 32-bit floating-point RGBA image. More... | |
cudaError_t | cudaWarpIntrinsic (uchar4 *input, uchar4 *output, uint32_t width, uint32_t height, const float2 &focalLength, const float2 &principalPoint, const float4 &distortion) |
Apply in-place instrinsic lens distortion correction to an 8-bit fixed-point RGBA image. More... | |
cudaError_t | cudaWarpIntrinsic (float4 *input, float4 *output, uint32_t width, uint32_t height, const float2 &focalLength, const float2 &principalPoint, const float4 &distortion) |
Apply in-place instrinsic lens distortion correction to 32-bit floating-point RGBA image. More... | |
cudaError_t | cudaWarpFisheye (uchar4 *input, uchar4 *output, uint32_t width, uint32_t height, float focus) |
Apply fisheye lens dewarping to an 8-bit fixed-point RGBA image. More... | |
cudaError_t | cudaWarpFisheye (float4 *input, float4 *output, uint32_t width, uint32_t height, float focus) |
Apply fisheye lens dewarping to a 32-bit floating-point RGBA image. More... | |
Various image warps and matrix transforms.
cudaError_t cudaWarpAffine | ( | float4 * | input, |
float4 * | output, | ||
uint32_t | width, | ||
uint32_t | height, | ||
const float | transform[2][3], | ||
bool | transform_inverted = false |
||
) |
Apply 2x3 affine warp to an 32-bit floating-point RGBA image.
The 2x3 matrix transform is in row-major order (transform[row][column]) If the transform has already been inverted, set transform_inverted to true.
cudaError_t cudaWarpAffine | ( | uchar4 * | input, |
uchar4 * | output, | ||
uint32_t | width, | ||
uint32_t | height, | ||
const float | transform[2][3], | ||
bool | transform_inverted = false |
||
) |
Apply 2x3 affine warp to an 8-bit fixed-point RGBA image.
The 2x3 matrix transform is in row-major order (transform[row][column]) If the transform has already been inverted, set transform_inverted to true.
cudaError_t cudaWarpFisheye | ( | float4 * | input, |
float4 * | output, | ||
uint32_t | width, | ||
uint32_t | height, | ||
float | focus | ||
) |
Apply fisheye lens dewarping to a 32-bit floating-point RGBA image.
[in] | focus | focus of the lens (in mm). |
cudaError_t cudaWarpFisheye | ( | uchar4 * | input, |
uchar4 * | output, | ||
uint32_t | width, | ||
uint32_t | height, | ||
float | focus | ||
) |
Apply fisheye lens dewarping to an 8-bit fixed-point RGBA image.
[in] | focus | focus of the lens (in mm). |
cudaError_t cudaWarpIntrinsic | ( | float4 * | input, |
float4 * | output, | ||
uint32_t | width, | ||
uint32_t | height, | ||
const float2 & | focalLength, | ||
const float2 & | principalPoint, | ||
const float4 & | distortion | ||
) |
Apply in-place instrinsic lens distortion correction to 32-bit floating-point RGBA image.
Pinhole camera model with radial (barrel) distortion and tangential distortion.
cudaError_t cudaWarpIntrinsic | ( | uchar4 * | input, |
uchar4 * | output, | ||
uint32_t | width, | ||
uint32_t | height, | ||
const float2 & | focalLength, | ||
const float2 & | principalPoint, | ||
const float4 & | distortion | ||
) |
Apply in-place instrinsic lens distortion correction to an 8-bit fixed-point RGBA image.
Pinhole camera model with radial (barrel) distortion and tangential distortion.
cudaError_t cudaWarpPerspective | ( | float4 * | input, |
float4 * | output, | ||
uint32_t | width, | ||
uint32_t | height, | ||
const float | transform[3][3], | ||
bool | transform_inverted = false |
||
) |
Apply 3x3 perspective warp to an 32-bit floating-point RGBA image.
The 3x3 matrix transform is in row-major order (transform[row][column]) If the transform has already been inverted, set transform_inverted to true.
cudaError_t cudaWarpPerspective | ( | T * | input, |
uint32_t | inputWidth, | ||
uint32_t | inputHeight, | ||
T * | output, | ||
uint32_t | outputWidth, | ||
uint32_t | outputHeight, | ||
const float | transform[3][3], | ||
bool | transform_inverted = false |
||
) |
Apply a 3x3 perspective warp to an image.
The 3x3 matrix transform is in row-major order (transform[row][column]) If the transform has already been inverted, set transform_inverted to true.
cudaError_t cudaWarpPerspective | ( | uchar4 * | input, |
uchar4 * | output, | ||
uint32_t | width, | ||
uint32_t | height, | ||
const float | transform[3][3], | ||
bool | transform_inverted = false |
||
) |
Apply 3x3 perspective warp to an 8-bit fixed-point RGBA image.
The 3x3 matrix transform is in row-major order (transform[row][column]) If the transform has already been inverted, set transform_inverted to true.
cudaError_t cudaWarpPerspective | ( | void * | input, |
uint32_t | inputWidth, | ||
uint32_t | inputHeight, | ||
imageFormat | inputFormat, | ||
void * | output, | ||
uint32_t | outputWidth, | ||
uint32_t | outputHeight, | ||
imageFormat | outputFormat, | ||
const float | transform[3][3], | ||
bool | transform_inverted = false |
||
) |
Apply a 3x3 perspective warp to an image.
The 3x3 matrix transform is in row-major order (transform[row][column]) If the transform has already been inverted, set transform_inverted to true.