23 #ifndef __CUDA_WARP_H__
24 #define __CUDA_WARP_H__
37 cudaError_t
cudaWarpAffine( uchar4* input, uchar4* output, uint32_t width, uint32_t height,
38 const float transform[2][3],
bool transform_inverted=
false );
47 cudaError_t
cudaWarpAffine( float4* input, float4* output, uint32_t width, uint32_t height,
48 const float transform[2][3],
bool transform_inverted=
false );
58 void* output, uint32_t outputWidth, uint32_t outputHeight,
imageFormat outputFormat,
59 const float transform[3][3],
bool transform_inverted=
false );
70 T* output, uint32_t outputWidth, uint32_t outputHeight,
71 const float transform[3][3],
bool transform_inverted=
false )
73 return cudaWarpPerspective(input, inputWidth, inputHeight, imageFormatFromType<T>(), output, outputWidth, outputHeight, imageFormatFromType<T>(), transform, transform_inverted);
85 cudaError_t
cudaWarpPerspective( uchar4* input, uchar4* output, uint32_t width, uint32_t height,
86 const float transform[3][3],
bool transform_inverted=
false );
97 cudaError_t
cudaWarpPerspective( float4* input, float4* output, uint32_t width, uint32_t height,
98 const float transform[3][3],
bool transform_inverted=
false );
106 cudaError_t
cudaWarpIntrinsic( uchar4* input, uchar4* output, uint32_t width, uint32_t height,
107 const float2& focalLength,
const float2& principalPoint,
const float4& distortion );
115 cudaError_t
cudaWarpIntrinsic( float4* input, float4* output, uint32_t width, uint32_t height,
116 const float2& focalLength,
const float2& principalPoint,
const float4& distortion );
124 cudaError_t
cudaWarpFisheye( uchar4* input, uchar4* output, uint32_t width, uint32_t height,
float focus );
132 cudaError_t
cudaWarpFisheye( float4* input, float4* output, uint32_t width, uint32_t height,
float focus );