免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開(kāi)通VIP
OpenCV學(xué)習(xí)筆記(矩陣和圖象操作)
資料來(lái)源:《O'Reilly Learning OpenCV》
表3-3列出了對(duì)矩陣操作的多個(gè)例程,它們中大部分也可以很好的對(duì)圖象進(jìn)行處理。它們可以做幾乎所有常規(guī)的事情,例如矩陣的對(duì)角化(diagonalizing)和轉(zhuǎn)置(transposing),以及一些復(fù)雜的操作,例如計(jì)算圖象的統(tǒng)計(jì)值。原文是按字母順序排列的,這里本人按函數(shù)的用途進(jìn)行了整理。
表3-3,矩陣和圖象的基本操作
函數(shù) Description 說(shuō)明
cvAdd Elementwise addition of two arrays 兩個(gè)數(shù)組對(duì)應(yīng)元素的和
cvAddS
Elementwise addition of an array and a scalar
一個(gè)數(shù)組和一個(gè)標(biāo)量對(duì)應(yīng)元素的和
cvAddWeighted
Elementwise weighted addition of two arrays (alpha blending)
兩個(gè)數(shù)組對(duì)元素的加權(quán)求和(alpha混合)
cvSub
Elementwise subtraction of one array from another
把兩個(gè)數(shù)組的對(duì)應(yīng)元素相減
cvSubS
Elementwise subtraction of a scalar from an array
把一個(gè)數(shù)組的元素減去一個(gè)標(biāo)量
cvSubRS
Elementwise subtraction of an array from a scalar
把一個(gè)標(biāo)量減去一個(gè)數(shù)組中的元素
cvMul
Elementwise multiplication of two arrays
兩個(gè)數(shù)組對(duì)應(yīng)元素的乘法
cvDotProduct
Compute dot product of two vectors
計(jì)算兩個(gè)向量的點(diǎn)乘
cvCrossProduct
Compute cross product of two three-dimensional vectors
對(duì)兩個(gè)三維向量做叉乘
cvGEMM
Generalized matrix multiplication
廣義矩陣的乘法
cvDiv
Elementwise division of one array by another
一個(gè)數(shù)組和另一個(gè)數(shù)組對(duì)應(yīng)元素的除法
cvAbs
Absolute value of all elements in an array
數(shù)組中所有元素的絕對(duì)值
cvAbsDiff
Absolute value of diff erences between two arrays
兩個(gè)數(shù)組差值的絕對(duì)值
cvAbsDiffS
Absolute value of diff erence between an array and a scalar
一個(gè)數(shù)組和一個(gè)標(biāo)量的差值的絕對(duì)值
cvMin
Elementwise min operation on two arrays
對(duì)兩個(gè)數(shù)組中的對(duì)應(yīng)元素做最小值操作
cvMinS
Elementwise min operation between an array and a scalar
一個(gè)數(shù)組的元素和一個(gè)向量做最小值操作
cvMax
Elementwise max operation on two arrays
對(duì)兩個(gè)數(shù)組中的對(duì)應(yīng)元素做最大值操作
cvMaxS
Elementwise max operation between an array and a scalar
一個(gè)數(shù)組的元素和一個(gè)向量做最大值操作
cvMinMaxLoc
Find minimum and maximum values in an array
尋找數(shù)組中的最大值和最小值
cvAvg
Average value of all elements in an array
數(shù)組中所有元素的平均值
cvAvgStd
Absolute value and standard deviation of all elements in an array
數(shù)組中所有元素的平均值和標(biāo)準(zhǔn)差
cvSum
Sum all elements of an array
對(duì)數(shù)組的所有元素求和
cvCountNonZero
Count nonzero elements in an array
對(duì)數(shù)組中非零元素計(jì)數(shù)
cvGetRow
Copy elements from row slice of an array
拷貝數(shù)組中一行元素
cvGetRows
Copy elements from multiple adjacent rows of an array
拷貝數(shù)組中相鄰的多行元素
cvGetCol
Copy elements from column slice of an array
拷貝數(shù)組中一列元素
cvGetCols
Copy elements from multiple adjacent columns of an array
拷貝數(shù)組中相鄰的多列元素
cvGetSubRect
Copy elements from subregion of an array
拷貝一個(gè)數(shù)組中子區(qū)域的元素
cvGetDiag
Copy elements from an array diagonal
拷貝數(shù)組對(duì)角線元素
cvAnd
Elementwise bit-level AND of two arrays
把兩個(gè)數(shù)組的對(duì)應(yīng)元素做位與操作
cvNot
Bitwise inversion of every element of an array
對(duì)數(shù)組中每個(gè)元素逐位取反
cvOr
Elementwise bit-level OR of two arrays
把兩個(gè)數(shù)組的對(duì)應(yīng)元素做位取反
cvOrS
Elementwise bit-level OR of an array and a scalar
把一個(gè)數(shù)組中的元素和一個(gè)標(biāo)量取反
cvXor
Elementwise bit-level XOR between two arrays
把兩個(gè)數(shù)組中的對(duì)應(yīng)元素做異或運(yùn)算
cvXorS
Elementwise bit-level XOR between an array and a scalar
把一個(gè)數(shù)組中的元素和一個(gè)標(biāo)量做異或運(yùn)算
cvGetDims
Return the number of dimensions of an array
返回?cái)?shù)組的維數(shù)
cvGetDimSize
Return the sizes of all dimensions of an array
返回?cái)?shù)組所有維的尺寸
cvGetSize
Get size of a two-dimensional array and return as CvSize
獲取二維數(shù)組的尺寸,返回一個(gè)CvSize結(jié)構(gòu)
cvCopy
Copy elements of one array to another
把一個(gè)數(shù)組中的元素拷貝到另一個(gè)數(shù)組
cvRepeat
Tile the contents of one array into another
把一個(gè)數(shù)組的內(nèi)容鋪到另一個(gè)中
cvSplit
Split a multichannel array into multiple single-channel arrays
把一個(gè)多通道數(shù)組分解為多個(gè)單通道數(shù)組
cvMerge
Merge several single-channel images into one multichannel image
把數(shù)個(gè)單通道圖象合并為一個(gè)多通道圖象
cvCvtColor
Convert channels of an array from one color space to another
把數(shù)組中通道從一個(gè)色彩空間轉(zhuǎn)換到另一個(gè)色彩空間
cvReduce
Reduce a two-dimensional array to a vector by a given operation
根據(jù)一個(gè)給定操作,把一個(gè)二維數(shù)組縮減為一個(gè)向量
cvConvertScale
Convert array type with optional rescaling of the value
cvConvertScaleAbs
Convert array type after absolute value with optional rescaling
cvSet
Set all elements of an array to a given value
把數(shù)組中所有元素賦一個(gè)給定的值
cvSetZero
Set all elements of an array to 0
把數(shù)組中所有元素賦值為0
cvZero
Set all elements of an array to 0
把數(shù)組中所有元素置0
cvFlip
Flip an array about a selected axis
把數(shù)組相對(duì)一個(gè)選定的軸做翻轉(zhuǎn)
cvNormalize
Normalize elements in an array to some value
把數(shù)組中的元素規(guī)一化到某一值
cvTranspose
Transpose all elements of an array across the diagonal
把所有元素相對(duì)對(duì)角線轉(zhuǎn)置
cvSetIdentity
Set all elements of an array to 1 for the diagonal and 0 otherwise
對(duì)數(shù)組的對(duì)角線元素賦1,其它的為0
cvCalcCovarMatrix
Compute covariance of a set of n-dimensional vectors
一組n維向量的協(xié)方差
cvDet
Compute determinant of a square matrix
計(jì)算一個(gè)方陣行列式的值
cvEigenVV
Compute eigenvalues and eigenvectors of a square matrix
計(jì)算一個(gè)方陣的特征值和特征向量
cvInvert
Invert a square matrix
計(jì)算方陣的逆矩陣
cvMahalonobis
Compute Mahalonobis distance between two vectors
計(jì)算兩個(gè)向量的馬氏距離( Mahalonobis distance)
cvNorm
Compute normalized correlations between two arrays
計(jì)算兩相數(shù)組的規(guī)一化系數(shù)
cvSVD
Compute singular value decomposition of a two-dimensional array
計(jì)算一個(gè)二維數(shù)組的奇異值分解
cvSVBkSb
Compute singular value back-substitution
計(jì)算奇異值回代
cvTrace
Compute the trace of an array
計(jì)算數(shù)組的跡
cvSolve
Solve a system of linear equations
求解一個(gè)線性方程
cvInRange
Test if elements of an array are within values of two other arrays
測(cè)試一個(gè)數(shù)組中的元素的值是否在另兩個(gè)數(shù)組的值之間
cvInRangeS
Test if elements of an array are in range between two scalars
測(cè)試一個(gè)數(shù)組上的元素是否在兩個(gè)標(biāo)量之間
cvCmp
Apply selected comparison operator to all elements in two arrays
對(duì)兩個(gè)數(shù)組中所有元素進(jìn)行選中的比較操作
cvCmpS
Apply selected comparison operator to an array relative to a scalar
一個(gè)數(shù)組和一個(gè)標(biāo)量之間進(jìn)行選中的比較操作
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
數(shù)組 矩陣 向量的討論
NumPy使用手記[z]
成功解決TypeError: only integer scalar arrays can be converted to a scalar index
一文學(xué)會(huì)Eigen庫(kù)
Perl引用reference(\運(yùn)算符)
Python中的Numpy入門教程
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服