![]() |
OpenCV 4.12.0
开源计算机视觉
|
将图像映射到位于原点的单位球上的 Warper。更多...
#include <opencv2/stitching/detail/warpers.hpp>
公共成员函数 | |
| SphericalWarper (float scale) | |
| 构造球面扭曲器类的实例。 | |
| Rect | buildMaps (Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) CV_OVERRIDE |
| 根据给定的相机数据构建投影图。 | |
| Point | warp (InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, OutputArray dst) CV_OVERRIDE |
| 投影图像。 | |
继承自 cv::detail::RotationWarperBase< SphericalProjector > 的公共成员函数 | |
| float | getScale () const CV_OVERRIDE |
| void | setScale (float val) CV_OVERRIDE |
| void | warpBackward (InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, Size dst_size, OutputArray dst) CV_OVERRIDE |
| 反向投影图像。 | |
| Point2f | warpPoint (const Point2f &pt, InputArray K, InputArray R) CV_OVERRIDE |
| 投影图像点。 | |
| Point2f | warpPointBackward (const Point2f &pt, InputArray K, InputArray R) CV_OVERRIDE |
| 反向投影图像点。 | |
| Rect | warpRoi (Size src_size, InputArray K, InputArray R) CV_OVERRIDE |
继承自 cv::detail::RotationWarper 的公共成员函数 | |
| virtual | ~RotationWarper () |
保护成员函数 | |
| void | detectResultRoi (Size src_size, Point &dst_tl, Point &dst_br) CV_OVERRIDE |
继承自 cv::detail::RotationWarperBase< SphericalProjector > 的保护成员函数 | |
| void | detectResultRoiByBorder (Size src_size, Point &dst_tl, Point &dst_br) |
附加继承成员 | |
继承自 cv::detail::RotationWarperBase< SphericalProjector > 的保护属性 | |
| SphericalProjector | projector_ |
将图像映射到位于原点的单位球上的 Warper。
以像素为单位,将图像投影到以 (0, 0, 0) 为原点、半径为 scale 的单位球上。因此,360 度全景图的最终宽度为 2 * scale * PI 像素。极点位于 (0, -1, 0) 和 (0, 1, 0) 点。
|
inline |
构造球面扭曲器类的实例。
| scale | 投影球体的半径,以像素为单位。跨越整个球体的图像的宽度将为 2 * scale * PI 像素。 |
|
virtual |
根据给定的相机数据构建投影图。
| src_size | 源图像尺寸 |
| 输入的相机内参矩阵。 | 相机内参 |
| R | 相机旋转矩阵 |
| xmap | x 轴的投影图 |
| ymap | y 轴的投影图 |
从 cv::detail::RotationWarperBase< SphericalProjector > 重新实现。
在 cv::detail::SphericalWarperGpu 中重新实现。
|
virtual |
投影图像。
| src | 源图像 |
| 输入的相机内参矩阵。 | 相机内参 |
| R | 相机旋转矩阵 |
| interp_mode | 插值模式 |
| border_mode | 边界外推模式 |
| dst | 投影图像 |
从 cv::detail::RotationWarperBase< SphericalProjector > 重新实现。
在 cv::detail::SphericalWarperGpu 中重新实现。