OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::reg::MapAffine 類參考

#include <opencv2/reg/mapaffine.hpp>

cv::reg::MapAffine 的協作圖

公共成員函式

 MapAffine ()
 
 MapAffine (InputArray linTr, InputArray shift)
 
 ~MapAffine ()
 
void compose (cv::Ptr< Map > map) CV_OVERRIDE
 
const cv::Matx< double, 2, 2 > & getLinTr () const
 
void getLinTr (OutputArray linTr) const
 
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
 

詳細描述

定義仿射變換

建構函式 & 解構函式文件

◆ MapAffine() [1/2]

cv::reg::MapAffine::MapAffine ( )
Python
cv.reg.MapAffine() -> <reg_MapAffine 物件>
cv.reg.MapAffine(linTr, shift) -> <reg_MapAffine 物件>

預設建構函式構建一個單位對映

◆ MapAffine() [2/2]

cv::reg::MapAffine::MapAffine ( InputArray linTr,
InputArray shift )
Python
cv.reg.MapAffine() -> <reg_MapAffine 物件>
cv.reg.MapAffine(linTr, shift) -> <reg_MapAffine 物件>

提供顯式值的建構函式

引數
[輸入]linTr仿射變換的線性部分
[輸入]移位 (shift)仿射變換的位移部分

◆ ~MapAffine()

cv::reg::MapAffine::~MapAffine ( )

解構函式

成員函式文件

◆ compose()

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

透過將當前變換與呼叫中提供的變換組合來更改對映。 順序是首先是當前變換,然後是輸入引數。

引數
[輸入]map要組合的變換。

實現 cv::reg::Map

◆ getLinTr() [1/2]

const cv::Matx< double, 2, 2 > & cv::reg::MapAffine::getLinTr ( ) const
inline
Python
cv.reg.MapAffine.getLinTr([, linTr]) -> linTr

返回仿射變換的線性部分

返回
仿射變換的線性部分

◆ getLinTr() [2/2]

void cv::reg::MapAffine::getLinTr ( OutputArray linTr) const
inline
Python
cv.reg.MapAffine.getLinTr([, linTr]) -> linTr
此函式的呼叫圖如下

◆ getShift() [1/2]

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

返回仿射變換的位移部分

返回
仿射變換的位移部分

◆ getShift() [2/2]

void cv::reg::MapAffine::getShift ( OutputArray 移位 (shift)) const
inline
Python
cv.reg.MapAffine.getShift([, shift]) -> 移位 (shift)
此函式的呼叫圖如下

◆ inverseMap()

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

計算逆對映

返回
逆對映

實現 cv::reg::Map

◆ inverseWarp()

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

將影像扭曲到新的座標框架。 計算公式為 img2(x)=img1(T(x)),所以實際上這是逆扭曲,因為我們使用點的前向變換獲取 img1 的值。

引數
[輸入]img1原始影像
[輸出]img2扭曲的影像

實現 cv::reg::Map

◆ scale()

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

透過給定因子縮放對映,就像座標系按該因子擴充套件/壓縮一樣。

引數
[輸入]factor如果大於 1 則擴充套件,如果小於 1 則壓縮

實現 cv::reg::Map


此類的文件由以下檔案生成