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


此類文件由以下檔案生成