OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::detail::SphericalWarper 类参考

将图像映射到位于原点的单位球上的 Warper。更多...

#include <opencv2/stitching/detail/warpers.hpp>

cv::detail::SphericalWarper 的协作图

公共成员函数

 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) 点。

构造函数 & 析构函数文档

◆ SphericalWarper()

cv::detail::SphericalWarper::SphericalWarper ( float scale)
inline

构造球面扭曲器类的实例。

参数
scale投影球体的半径,以像素为单位。跨越整个球体的图像的宽度将为 2 * scale * PI 像素。

成员函数文档

◆ buildMaps()

Rect cv::detail::SphericalWarper::buildMaps ( Size src_size,
InputArray 输入的相机内参矩阵。,
InputArray R,
OutputArray xmap,
OutputArray ymap )
virtual

根据给定的相机数据构建投影图。

参数
src_size源图像尺寸
输入的相机内参矩阵。相机内参
R相机旋转矩阵
xmapx 轴的投影图
ymapy 轴的投影图
返回
投影图像的最小边界框

cv::detail::RotationWarperBase< SphericalProjector > 重新实现。

cv::detail::SphericalWarperGpu 中重新实现。

◆ detectResultRoi()

void cv::detail::SphericalWarper::detectResultRoi ( Size src_size,
Point & dst_tl,
Point & dst_br )
protectedvirtual

◆ warp()

Point cv::detail::SphericalWarper::warp ( InputArray src,
InputArray 输入的相机内参矩阵。,
InputArray R,
int interp_mode,
int border_mode,
OutputArray dst )
virtual

投影图像。

参数
src源图像
输入的相机内参矩阵。相机内参
R相机旋转矩阵
interp_mode插值模式
border_mode边界外推模式
dst投影图像
返回
投影图像的左上角

cv::detail::RotationWarperBase< SphericalProjector > 重新实现。

cv::detail::SphericalWarperGpu 中重新实现。


此类文档从以下文件生成