NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/libs/nvdewarper/Warp360/src/Warp360.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2017-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
19 
20 #ifndef __WARP360_H__
21 #define __WARP360_H__
22 
23 #include <cuda.h>
24 #include <cuda_runtime.h>
25 #include "NVWarp360.h"
26 
27 #ifdef __cplusplus
28 
29 
37 
38 
41 struct Warp360Params
42 {
44  enum WarpType
45  {
46  warpEquirectBroom = NVWARP_EQUIRECT_PUSHBROOM,
47  warpEquirectCyl = NVWARP_EQUIRECT_CYLINDER,
48  warpEquirectEquirect = NVWARP_EQUIRECT_EQUIRECT,
49  warpEquirectFish = NVWARP_EQUIRECT_FISHEYE,
50  warpEquirectPanini = NVWARP_EQUIRECT_PANINI,
51  warpEquirectPerspective = NVWARP_EQUIRECT_PERSPECTIVE,
52  warpEquirectStereographic = NVWARP_EQUIRECT_STEREOGRAPHIC,
53  warpEquirectVertCyl = NVWARP_EQUIRECT_ROTCYLINDER,
54  warpFishBroom = NVWARP_FISHEYE_PUSHBROOM,
55  warpFishCyl = NVWARP_FISHEYE_CYLINDER,
56  warpFishEquirect = NVWARP_FISHEYE_EQUIRECT,
57  warpFishFish = NVWARP_FISHEYE_FISHEYE,
58  warpFishPanini = NVWARP_FISHEYE_PANINI,
59  warpFishPerspective = NVWARP_FISHEYE_PERSPECTIVE,
60  warpFishVertCyl = NVWARP_FISHEYE_ROTCYLINDER,
61  warpPerspectiveEquirect = NVWARP_PERSPECTIVE_EQUIRECT,
62  warpPerspectivePanini = NVWARP_PERSPECTIVE_PANINI,
63  warpPerspectivePerspective = NVWARP_PERSPECTIVE_PERSPECTIVE,
64  warpNone = NVWARP_NONE
65  };
66 
67  // Warp type selector
68  WarpType type;
69 
70  // Source specification
71  unsigned srcWidth;
72  unsigned srcHeight;
73  float srcX0;
74  float srcY0;
75  float srcFocalLen;
76  float srcRadius;
77  float srcDist[4];
78 
79  // Destination specification
80  unsigned dstWidth;
81  unsigned dstHeight;
82 
83  // View specification
84  float yaw;
85  float pitch;
86  float roll;
87  float topAngle;
88  float bottomAngle;
89 
90  void* userData;
91 
92  /* Warp controls */
93  float control[4];
94 
95  Warp360Params();
96  ~Warp360Params(){}
97 
115  bool computeSrcFocalLength(float angle, float radius);
116 
125  bool computeAxialAngleRange(float minMaxXY[4]) const;
126 
136  bool computeAxialAngleRange(const float srcBoundingBox[4], float minMaxXY[4]) const;
137 
146  bool computeOutputResolution(float aspectRatio);
147 };
148 
149 
151 struct nvwarpObject;
152 
154 class Warp360
155 {
156 public:
157 
159  Warp360();
160 
161  ~Warp360();
162 
165  cudaError_t setParams(const Warp360Params *params);
166 
169  void getParams(Warp360Params *params) const;
170 
173  void setBlock(dim3 dim_block);
174 
177  void getBlock(dim3 *dim_block) const;
178 
181  void* getUserData() const;
182 
188  cudaError_t warp(cudaStream_t stream, cudaTextureObject_t srcTex, cudaSurfaceObject_t dstSurface) const;
189 
196  cudaError_t warp(cudaStream_t stream, cudaTextureObject_t srcTex, void *dstAddr, size_t dstRowBytes) const;
197 
207  nvwarpResult warp(unsigned numPts, const float *inPtsXY, float *outPtsXY) const;
208 
218  nvwarpResult inverseWarp(unsigned numPts, const float *inPtsXY, float *outPtsXY) const;
219 
220 
237  unsigned version() const;
238 
239 
241  // Advanced API //
243 
246  void setWarpType(Warp360Params::WarpType type);
247 
252  void setPixelPhase(int phase);
253 
260  void setSrcFocalLength(float fl, float fy = 0.f);
261 
265  void setSrcWidthHeight(unsigned w, unsigned h);
266 
270  void setSrcRadius(float r);
271 
278  void setRotation(const float R[9]);
279 
288  void setEulerRotation(const float *angles, const char *axes);
289 
295  void setSrcPrincipalPoint(const float xy[2], bool relToCenter);
296 
301  void setDistortion(const float d[5]);
302 
306  void setDstWidthHeight(unsigned w, unsigned h);
307 
313  void setDstPrincipalPoint(const float xy[2], bool relToCenter);
314 
325  void setDstFocalLength(float fl, float fy = 0.f);
326 
334  void setDstFocalLength(float topAngle, float bottomAngle, unsigned dstWidth, unsigned dstHeight);
335 
340  void setControl(unsigned index, float control);
341 
344  void setUserData(void *userData);
345 
348  Warp360Params::WarpType warpType() const;
349 
353  int pixelPhase() const;
354 
357  float srcFocalLength() const;
358 
361  void getSrcFocalLengths(float fl[2]) const;
362 
364  void getRotation(float R[9]) const;
365 
370  void getSrcPrincipalPoint(float xy[2], bool relToCenter) const;
371 
374  float srcRadius() const;
375 
378  void getSrcWidthHeight(unsigned wh[2]) const;
379 
383  void getDistortion(float d[5]) const;
384 
387  void getDstWidthHeight(unsigned wh[2]) const;
388 
393  void getDstPrincipalPoint(float xy[2], bool relToCenter) const;
394 
397  float dstFocalLength() const;
398 
401  void getDstFocalLengths(float fl[2]) const;
402 
407  float getControl(unsigned index) const;
408 
409 
434  nvwarpResult srcToRay(unsigned numPts, const float *pts2D, float *rays3D) const;
435 
443  nvwarpResult dstToRay(unsigned numPts, const float *pts2D, float *rays3D) const;
444 
452  nvwarpResult srcFromRay(unsigned numRays, const float *rays3D, float *pts2D) const;
453 
461  nvwarpResult dstFromRay(unsigned numRays, const float *rays3D, float *pts2D) const;
462 
469  static float* convertTransformBetweenYUpandYDown(const float fr[9], float to[9]);
470 
471 
472 protected:
473 
474  struct nvwarpObject *_impl;
475 };
476 
477 
478 inline unsigned Warp360::version() const { return nvwarpVersion(); }
479 inline void Warp360::setBlock(dim3 dim_block) { nvwarpSetBlock(_impl, dim_block); }
480 inline void Warp360::getBlock(dim3 *dim_block) const { nvwarpGetBlock(_impl, dim_block); }
481 inline void Warp360::setWarpType(Warp360Params::WarpType type) { nvwarpSetWarpType(_impl, (nvwarpType_t)type); }
482 inline Warp360Params::WarpType Warp360::warpType() const { return (Warp360Params::WarpType)nvwarpGetWarpType(_impl); }
483 inline void Warp360::setPixelPhase(int phase) { nvwarpSetPixelPhase(_impl, (uint32_t)phase); }
484 inline int Warp360::pixelPhase() const { return (int)nvwarpGetPixelPhase(_impl); }
485 inline void Warp360::setSrcFocalLength(float fl, float fy) { nvwarpSetSrcFocalLengths(_impl, fl, fy); }
486 inline float Warp360::srcFocalLength() const { return nvwarpGetSrcFocalLength(_impl, nullptr); }
487 inline void Warp360::getSrcFocalLengths(float fl[2]) const { fl[0] = nvwarpGetSrcFocalLength(_impl, &fl[1]); }
488 inline void Warp360::setSrcWidthHeight(unsigned w, unsigned h) { nvwarpSetSrcWidthHeight(_impl, w, h); }
489 inline void Warp360::getSrcWidthHeight(unsigned wh[2]) const { nvwarpGetSrcWidthHeight(_impl, wh); }
490 inline void Warp360::setSrcRadius(float r) { nvwarpSetSrcRadius(_impl, r); }
491 inline float Warp360::srcRadius() const { return nvwarpGetSrcRadius(_impl); }
492 inline void Warp360::setRotation(const float R[9]) { nvwarpSetRotation(_impl, R); }
493 inline void Warp360::getRotation(float R[9]) const { nvwarpGetRotation(_impl, R); }
494 inline void Warp360::setEulerRotation(const float *angles, const char *axes)
495  { nvwarpSetEulerRotation(_impl, angles, axes); }
496 inline void Warp360::setSrcPrincipalPoint(const float xy[2], bool relToCenter)
497  { nvwarpSetSrcPrincipalPoint(_impl, xy, (uint32_t)relToCenter); }
498 inline void Warp360::getSrcPrincipalPoint(float xy[2], bool relToCenter)
499  const { nvwarpGetSrcPrincipalPoint(_impl, xy, (uint32_t)relToCenter); }
500 inline void Warp360::setDistortion(const float d[5]) { nvwarpSetDistortion(_impl, d); }
501 inline void Warp360::getDistortion(float d[5]) const { nvwarpGetDistortion(_impl, d); }
502 inline void Warp360::setDstWidthHeight(unsigned w, unsigned h) { nvwarpSetDstWidthHeight(_impl, w, h); }
503 inline void Warp360::getDstWidthHeight(unsigned wh[2]) const { nvwarpGetDstWidthHeight(_impl, wh); }
504 inline void Warp360::setDstPrincipalPoint(const float xy[2], bool relToCenter)
505  { nvwarpSetDstPrincipalPoint(_impl, xy, (uint32_t)relToCenter); }
506 inline void Warp360::getDstPrincipalPoint(float xy[2], bool relToCenter)
507  const { nvwarpGetDstPrincipalPoint(_impl, xy, (uint32_t)relToCenter); }
508 inline void Warp360::setDstFocalLength(float fl, float fy) { nvwarpSetDstFocalLengths(_impl, fl, fy); }
509 inline void Warp360::setDstFocalLength(float topAngle, float bottomAngle, unsigned dstWidth, unsigned dstHeight)
510  { nvwarpComputeDstFocalLength(_impl, topAngle, bottomAngle, dstWidth, dstHeight); }
511 inline float Warp360::dstFocalLength() const { return nvwarpGetDstFocalLength(_impl, nullptr); }
512 inline void Warp360::getDstFocalLengths(float fl[2]) const { fl[0] = nvwarpGetDstFocalLength(_impl, &fl[1]); }
513 inline void Warp360::setControl(unsigned index, float control) { nvwarpSetControl(_impl, index, control); }
514 inline float Warp360::getControl(unsigned index) const { return nvwarpGetControl(_impl, index); }
515 inline void Warp360::setUserData(void *userData) { nvwarpSetUserData(_impl, userData); }
516 inline void* Warp360::getUserData() const { return nvwarpGetUserData(_impl); }
517 inline cudaError_t Warp360::warp(cudaStream_t stream, cudaTextureObject_t srcTex, cudaSurfaceObject_t dstSurface) const
518  { return (cudaError_t)nvwarpWarpSurface(_impl, stream, srcTex, dstSurface); }
519 inline cudaError_t Warp360::warp(cudaStream_t stream, cudaTextureObject_t srcTex, void *dstAddr, size_t dstRowBytes) const
520  { return (cudaError_t)nvwarpWarpBuffer(_impl, stream, srcTex, dstAddr, dstRowBytes); }
521 inline nvwarpResult Warp360::warp(unsigned numPts, const float *inPtsXY, float *outPtsXY) const
522  { return nvwarpWarpCoordinates(_impl, numPts, inPtsXY, outPtsXY); }
523 inline nvwarpResult Warp360::inverseWarp(unsigned numPts, const float *inPtsXY, float *outPtsXY) const
524  { return nvwarpInverseWarpCoordinates(_impl, numPts, inPtsXY, outPtsXY); }
525 inline nvwarpResult Warp360::srcToRay(unsigned numPts, const float *pts2D, float *rays3D)
526  const { return nvwarpSrcToRay(_impl, numPts, pts2D, rays3D); }
527 inline nvwarpResult Warp360::dstToRay(unsigned numPts, const float *pts2D, float *rays3D)
528  const { return nvwarpDstToRay(_impl, numPts, pts2D, rays3D); }
529 inline nvwarpResult Warp360::srcFromRay(unsigned numRays, const float *rays3D, float *pts2D)
530  const { return nvwarpSrcFromRay(_impl, numRays, rays3D, pts2D); }
531 inline nvwarpResult Warp360::dstFromRay(unsigned numRays, const float *rays3D, float *pts2D)
532  const { return nvwarpDstFromRay(_impl, numRays, rays3D, pts2D); }
533 
534 
542 
543 
544 
546 struct YUVRGBParams
547 {
548  unsigned width;
549  unsigned height;
550  unsigned cLocation;
551  float ry,
552  rcb,
553  rcr,
554  gy,
555  gcb,
556  gcr,
557  by,
558  bcb,
559  bcr;
560  float yOffset,
561  cOffset;
562 
566  void computeMatrix(int matrix_coefficients, int video_full_range_flag);
567 };
568 
569 
577 void ComputeYCbCr2RgbMatrix(int matrix_coefficients, int video_full_range_flag, int bit_depth, bool normalized_input, bool normalized_output, YUVRGBParams *p);
578 
579 
588 cudaError_t ConvertYUVNV12ToRGBA(cudaStream_t stream, const YUVRGBParams *params, const void *yuv, size_t yuvRowBytes, void *dst, size_t dstRowBytes);
589 
590 
591 
603 
604 
605 
620 cudaError_t MultiWarp360(cudaStream_t stream,
621  const YUVRGBParams *yuvParams, const void *yuvBuffer, size_t yuvRowBytes,
622  void *rgbBuffer, size_t rgbRowBytes, cudaTextureObject_t rgbTex,
623  unsigned numWarps, const Warp360Params *paramArray, void **dstBuffers, const size_t *dstRowBytes);
624 
625 
626 
627 
628 #ifdef MULTIWARP_IMPLEMENTATION
629 /********************************************************************************
630  * MultiWarp360 - with array of parameter blocks.
631  ********************************************************************************/
632 
633 cudaError_t MultiWarp360(cudaStream_t stream,
634  const YUVRGBParams *yuvParams, const void *yuvBuffer, size_t yuvRowBytes,
635  void *rgbBuffer, size_t rgbRowBytes, cudaTextureObject_t rgbTex,
636  unsigned numWarps, const Warp360Params *paramArray, void **dstBuffers, const size_t *dstRowBytes)
637 {
638  cudaError_t cuErr = cudaSuccess;
639  Warp360 warper;
640 
641  if (yuvParams)
642  {
643  cuErr = ConvertYUVNV12ToRGBA(stream, yuvParams, yuvBuffer, yuvRowBytes, rgbBuffer, rgbRowBytes);
644  if (cudaSuccess != cuErr)
645  return cuErr;
646  }
647  for (; numWarps--; ++paramArray, ++dstBuffers, ++dstRowBytes)
648  {
649  cuErr = warper.setParams(paramArray);
650  if (cudaSuccess != cuErr)
651  return cuErr;
652  cuErr = warper.warp(stream, rgbTex, *dstBuffers, *dstRowBytes);
653  if (cudaSuccess != cuErr)
654  return cuErr;
655  }
656 
657  return cuErr;
658 }
659 #endif /* MULTIWARP_IMPLEMENTATION */
660 
661 
662 
663 
664 
665 #endif // __cplusplus
666 #endif // __WARP360_H__
nvwarpSrcToRay
nvwarpResult NVWARPAPI nvwarpSrcToRay(const nvwarpHandle han, uint32_t numPts, const float *pts2D, float *rays3D)
Convert source coordinates into normalized rays.
nvwarpSrcFromRay
nvwarpResult NVWARPAPI nvwarpSrcFromRay(const nvwarpHandle han, uint32_t numRays, const float *rays3D, float *pts2D)
Convert rays into source coordinates.
nvwarpSetSrcFocalLengths
void NVWARPAPI nvwarpSetSrcFocalLengths(nvwarpHandle han, float fl, float fy)
Set the source focal length.
nvwarpGetSrcWidthHeight
void NVWARPAPI nvwarpGetSrcWidthHeight(const nvwarpHandle han, uint32_t wh[2])
Get the source image dimensions.
NVWARP_FISHEYE_EQUIRECT
@ NVWARP_FISHEYE_EQUIRECT
Fisheye to equirectangular.
Definition: includes/NVWarp360.h:98
nvwarpGetUserData
void *NVWARPAPI nvwarpGetUserData(nvwarpHandle han)
Get the current value of the user data pointer.
width
JDIMENSION JDIMENSION * width
Definition: sources/libs/nvll_batch_jpeg_encode/oss/jpeglib.h:1001
nvwarpSetBlock
void NVWARPAPI nvwarpSetBlock(nvwarpHandle han, dim3 dim_block)
Set the CUDA block size.
NVWARP_FISHEYE_FISHEYE
@ NVWARP_FISHEYE_FISHEYE
Fisheye to fisheye.
Definition: includes/NVWarp360.h:99
nvwarpSetPixelPhase
void NVWARPAPI nvwarpSetPixelPhase(nvwarpHandle han, uint32_t phase)
Set the pixel phase.
nvwarpGetSrcFocalLength
float NVWARPAPI nvwarpGetSrcFocalLength(const nvwarpHandle han, float *fy)
Get one or both source focal lengths.
nvwarpSetDstWidthHeight
void NVWARPAPI nvwarpSetDstWidthHeight(nvwarpHandle han, uint32_t w, uint32_t h)
Set the destination width and height.
nvwarpSetDistortion
void NVWARPAPI nvwarpSetDistortion(nvwarpHandle han, const float d[5])
Set the distortion coefficients.
NVWARP_PERSPECTIVE_EQUIRECT
@ NVWARP_PERSPECTIVE_EQUIRECT
Perspective to equirectangular.
Definition: includes/NVWarp360.h:104
nvwarpSetWarpType
nvwarpResult NVWARPAPI nvwarpSetWarpType(nvwarpHandle han, nvwarpType_t type)
Set the warp type.
nvwarpGetRotation
void NVWARPAPI nvwarpGetRotation(const nvwarpHandle han, float R[9])
Get the rotation matrix.
NVWARP_NONE
@ NVWARP_NONE
This makes it 32 bits.
Definition: includes/NVWarp360.h:107
nvwarpSetRotation
void NVWARPAPI nvwarpSetRotation(nvwarpHandle han, const float R[9])
Specify the rotation.
NVWARP_EQUIRECT_STEREOGRAPHIC
@ NVWARP_EQUIRECT_STEREOGRAPHIC
Equirectangular to generalized stereographic.
Definition: includes/NVWarp360.h:95
nvwarpSetUserData
void NVWARPAPI nvwarpSetUserData(nvwarpHandle han, void *userData)
Set the user data pointer.
nvwarpType_t
nvwarpType_t
Warp type enumeration.
Definition: includes/NVWarp360.h:87
nvwarpInverseWarpCoordinates
nvwarpResult NVWARPAPI nvwarpInverseWarpCoordinates(const nvwarpHandle han, uint32_t numPts, const float *inPtsXY, float *outPtsXY)
Transform coordinates from the destination space to the source space.
cudaStream_t
struct CUstream_st * cudaStream_t
Forward declaration of cudaStream_t.
Definition: includes/nvbufsurftransform.h:40
version
int version
Definition: sources/libs/nvll_batch_jpeg_encode/oss/jpeglib.h:908
nvwarpSetDstPrincipalPoint
void NVWARPAPI nvwarpSetDstPrincipalPoint(nvwarpHandle han, const float xy[2], uint32_t relToCenter)
Set the destination principal point.
nvwarpWarpBuffer
nvwarpResult NVWARPAPI nvwarpWarpBuffer(const nvwarpHandle han, cudaStream_t stream, cudaTextureObject_t srcTex, void *dstAddr, size_t dstRowBytes)
Warp an image texture to a buffer.
nvwarpGetDstWidthHeight
void NVWARPAPI nvwarpGetDstWidthHeight(const nvwarpHandle han, uint32_t wh[2])
Get the destination width and height.
NVWARP_FISHEYE_PANINI
@ NVWARP_FISHEYE_PANINI
Fisheye to Panini.
Definition: includes/NVWarp360.h:100
NVWARP_FISHEYE_CYLINDER
@ NVWARP_FISHEYE_CYLINDER
Fisheye to horizontally panned cylinder.
Definition: includes/NVWarp360.h:97
nvwarpGetDistortion
void NVWARPAPI nvwarpGetDistortion(const nvwarpHandle han, float d[5])
Get the distortion coefficients.
NVWARP_FISHEYE_PERSPECTIVE
@ NVWARP_FISHEYE_PERSPECTIVE
Fisheye to perspective.
Definition: includes/NVWarp360.h:101
nvwarpComputeDstFocalLength
void NVWARPAPI nvwarpComputeDstFocalLength(nvwarpHandle han, float topAngle, float bottomAngle, uint32_t dstWidth, uint32_t dstHeight)
From the vertical view angles, this sets the identical destination focal lengths, plus width and heig...
nvwarpGetPixelPhase
uint32_t NVWARPAPI nvwarpGetPixelPhase(const nvwarpHandle han)
Get the pixel phase.
nvwarpSetControl
void NVWARPAPI nvwarpSetControl(nvwarpHandle han, uint32_t index, float control)
Set a control parameter.
nvwarpGetWarpType
nvwarpType_t NVWARPAPI nvwarpGetWarpType(const nvwarpHandle han)
Get the type of the warp.
nvwarpGetControl
float NVWARPAPI nvwarpGetControl(const nvwarpHandle han, uint32_t index)
Get the value for the control parameters.
nvwarpGetDstFocalLength
float NVWARPAPI nvwarpGetDstFocalLength(const nvwarpHandle han, float *fy)
Get one or both destination focal lengths.
nvwarpResult
nvwarpResult
Error code enumerations for NVWarp360.
Definition: includes/NVWarp360.h:50
nvwarpDstFromRay
nvwarpResult NVWARPAPI nvwarpDstFromRay(const nvwarpHandle han, uint32_t numRays, const float *rays3D, float *pts2D)
Convert rays into destination coordinates.
nvwarpSetEulerRotation
void NVWARPAPI nvwarpSetEulerRotation(nvwarpHandle han, const float *angles, const char *axes)
Specify the view rotation, using a list of angles and their respective axes of rotation.
nvwarpWarpSurface
nvwarpResult NVWARPAPI nvwarpWarpSurface(const nvwarpHandle han, cudaStream_t stream, cudaTextureObject_t srcTex, cudaSurfaceObject_t dstSurface)
Warp an image texture to a surface.
nvwarpWarpCoordinates
nvwarpResult NVWARPAPI nvwarpWarpCoordinates(const nvwarpHandle han, uint32_t numPts, const float *inPtsXY, float *outPtsXY)
Transform coordinates from the input space to the output space.
NVWARP_PERSPECTIVE_PERSPECTIVE
@ NVWARP_PERSPECTIVE_PERSPECTIVE
Perspective to perspective.
Definition: includes/NVWarp360.h:106
NVWARP_EQUIRECT_PANINI
@ NVWARP_EQUIRECT_PANINI
Equirectangular to Panini.
Definition: includes/NVWarp360.h:92
NVWARP_EQUIRECT_PERSPECTIVE
@ NVWARP_EQUIRECT_PERSPECTIVE
Equirectangular to perspective.
Definition: includes/NVWarp360.h:93
NVWARP_EQUIRECT_EQUIRECT
@ NVWARP_EQUIRECT_EQUIRECT
Equirectangular to equirectangular.
Definition: includes/NVWarp360.h:90
nvwarpGetDstPrincipalPoint
void NVWARPAPI nvwarpGetDstPrincipalPoint(const nvwarpHandle han, float xy[2], uint32_t relToCenter)
Get the destination principal point.
nvwarpSetSrcRadius
void NVWARPAPI nvwarpSetSrcRadius(nvwarpHandle han, float r)
set the source fisheye clipping radius.
NVWARP_EQUIRECT_CYLINDER
@ NVWARP_EQUIRECT_CYLINDER
Equirectangular to cylindrical.
Definition: includes/NVWarp360.h:89
NVWARP_EQUIRECT_ROTCYLINDER
@ NVWARP_EQUIRECT_ROTCYLINDER
Equirectangular to vertical cylindrical.
Definition: includes/NVWarp360.h:96
NVWARP_EQUIRECT_FISHEYE
@ NVWARP_EQUIRECT_FISHEYE
Equirectangular to fisheye.
Definition: includes/NVWarp360.h:91
NVWARP_PERSPECTIVE_PANINI
@ NVWARP_PERSPECTIVE_PANINI
Perspective to Panini.
Definition: includes/NVWarp360.h:105
nvwarpSetSrcPrincipalPoint
void NVWARPAPI nvwarpSetSrcPrincipalPoint(nvwarpHandle han, const float xy[2], uint32_t relToCenter)
Specify the principal point of the source image.
nvwarpGetSrcRadius
float NVWARPAPI nvwarpGetSrcRadius(const nvwarpHandle han)
Get the source fisheye clipping radius.
nvwarpGetBlock
void NVWARPAPI nvwarpGetBlock(const nvwarpHandle han, dim3 *dim_block)
Get the current value of the CUDA block size.
NVWARP_FISHEYE_ROTCYLINDER
@ NVWARP_FISHEYE_ROTCYLINDER
Fisheye to vertically panned radial cylinder.
Definition: includes/NVWarp360.h:103
nvwarpDstToRay
nvwarpResult NVWARPAPI nvwarpDstToRay(const nvwarpHandle han, uint32_t numPts, const float *pts2D, float *rays3D)
Convert destination coordinates into normalized rays.
nvwarpVersion
uint32_t NVWARPAPI nvwarpVersion()
Get the version number, encoded as (major_version * 16777216u + minor * 65536u + revision * 256u).
NVWARP_FISHEYE_PUSHBROOM
@ NVWARP_FISHEYE_PUSHBROOM
Fisheye to pushbroom.
Definition: includes/NVWarp360.h:102
nvwarpGetSrcPrincipalPoint
void NVWARPAPI nvwarpGetSrcPrincipalPoint(const nvwarpHandle han, float xy[2], uint32_t relToCenter)
Get the source principal point.
nvwarpSetSrcWidthHeight
void NVWARPAPI nvwarpSetSrcWidthHeight(nvwarpHandle han, uint32_t w, uint32_t h)
Set the source dimensions.
NVWARP_EQUIRECT_PUSHBROOM
@ NVWARP_EQUIRECT_PUSHBROOM
Equirectangular to pushbroom.
Definition: includes/NVWarp360.h:94
nvwarpSetDstFocalLengths
void NVWARPAPI nvwarpSetDstFocalLengths(nvwarpHandle han, float fl, float fy)
Set the destination focal length.