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

#include <opencv2/reg/mapshift.hpp>

cv::reg::MapShift 的协作图

公共成员函数

 MapShift ()
 
 MapShift (InputArray shift)
 
 ~MapShift ()
 
void compose (cv::Ptr< Map > map) CV_OVERRIDE
 
const cv::Vec< double, 2 > & getShift () const
 
void getShift (OutputArray shift) const
 
cv::Ptr< MapinverseMap () const CV_OVERRIDE
 
void inverseWarp (InputArray img1, OutputArray img2) const CV_OVERRIDE
 
void scale (double factor) CV_OVERRIDE
 
- 从 cv::reg::Map 继承的公共成员函数
virtual ~Map ()
 
virtual void warp (InputArray img1, OutputArray img2) const
 

详细描述

定义一个由简单位移组成的变换

构造函数 & 析构函数文档

◆ MapShift() [1/2]

cv::reg::MapShift::MapShift ( )
Python
cv.reg.MapShift() -> <reg_MapShift object>
cv.reg.MapShift(移位 (shift)) -> <reg_MapShift object>

默认构造函数构建一个单位映射

◆ MapShift() [2/2]

cv::reg::MapShift::MapShift ( InputArray 移位 (shift))
Python
cv.reg.MapShift() -> <reg_MapShift object>
cv.reg.MapShift(移位 (shift)) -> <reg_MapShift object>

提供显式值的构造函数

参数
[输入]移位 (shift)位移

◆ ~MapShift()

cv::reg::MapShift::~MapShift ( )

析构函数

成员函数文档

◆ compose()

void cv::reg::MapShift::compose ( cv::Ptr< Map > map)
virtual
Python
cv.reg.MapShift.compose(map) ->

通过将当前变换与调用中提供的变换组合来更改映射。顺序是首先是当前变换,然后是输入参数。

参数
[输入]map要组合的变换。

实现 cv::reg::Map

◆ getShift() [1/2]

const cv::Vec< double, 2 > & cv::reg::MapShift::getShift ( ) const
inline
Python
cv.reg.MapShift.getShift([, shift]) -> 移位 (shift)

返回位移

返回
位移

◆ getShift() [2/2]

void cv::reg::MapShift::getShift ( OutputArray 移位 (shift)) const
inline
Python
cv.reg.MapShift.getShift([, shift]) -> 移位 (shift)
此函数的调用图如下

◆ inverseMap()

cv::Ptr< Map > cv::reg::MapShift::inverseMap ( ) const
virtual
Python
cv.reg.MapShift.inverseMap() -> retval

计算逆映射

返回
逆映射

实现 cv::reg::Map

◆ inverseWarp()

void cv::reg::MapShift::inverseWarp ( InputArray img1,
OutputArray img2 ) const
virtual
Python
cv.reg.MapShift.inverseWarp(img1[, img2]) -> img2

将图像扭曲到新的坐标系。计算方法是 img2(x)=img1(T(x)),所以实际上这是逆扭曲,因为我们正在使用点的前向变换来获取 img1 的值。

参数
[输入]img1原始图像
[输出]img2扭曲的图像

实现 cv::reg::Map

◆ scale()

void cv::reg::MapShift::scale ( double factor)
virtual
Python
cv.reg.MapShift.scale(factor) ->

通过给定的因子缩放地图,就好像坐标系统被该因子扩展/压缩一样。

参数
[输入]factor如果大于 1 则扩展,如果小于 1 则压缩

实现 cv::reg::Map


此类文档由以下文件生成