網(wǎng)站如何創(chuàng)建全網(wǎng)營(yíng)銷
數(shù)學(xué)真是不可思議,不管什么東西,都能用數(shù)學(xué)來處理。OpenCV以前也接觸過,這次是系統(tǒng)學(xué)習(xí)一下。
- 顏色模型
RGB,YUV,HSV,Lab,GRAY
顏色轉(zhuǎn)換cvtColor()/convertTo(),通道分離split(),通道合并merge()。
- 像素
尋找最大最小minMaLoc(),變成單通道reshape(),平均值mean(),方差meanStdDev()。
min()/max(), bitwise_and(), bitwise_or(), bitwise_not(), bitwise_xor()
二值化threshold(),顏色查找LUT()
vconcat()/hconcat()/resize()/flip()/
仿射變換,就是變形。
- 圖像直方圖
calcHist()/normalize()/compareHist()/equalizeHist()
calcBackProject()/matchTemplate()
- 濾波
用來去除噪聲。椒鹽噪聲,高斯噪聲,
filter2D()
均值濾波blur(),方框?yàn)V波boxFilter(),高斯濾波GaussianBlur(),可分離濾波sepFilter2D()
中值濾波medianBlur(),雙邊濾波(常用)bilateralFilter()
- 圖像邊緣檢測(cè)
Soble()/Schar()/Laplacian()/Canny(),Canny()常用。
- 像素距離
歐氏,街區(qū),棋盤
- 圖像連通域
connectedCommponents()/connectedCommponentsWithStats()
腐蝕erode()、膨脹dilate()
開運(yùn)算,閉運(yùn)算,形態(tài)學(xué)梯度,頂帽運(yùn)算,黑帽運(yùn)算,擊中不擊中變換
圖像細(xì)化,
- 檢測(cè)
霍夫直線檢測(cè)HoughLines()/HoughLinesP()/HoughLinesPointSet()
直線擬合fitLine()
圓檢測(cè)HoughCircles()
輪廓檢測(cè)findContours()/輪廓長(zhǎng)度arcLength()/輪廓外接多邊形boundingRect()/最小矩形minAreaRect()/外接多邊形approxPolytDP()/點(diǎn)到輪廓距離pointPolygonTest()/凸包檢測(cè)convexHull()
- 矩
中心矩,幾何矩moments()。
Hu矩HuMoments()/matchShapes()
- 點(diǎn)集擬合
minEnclosingTriangle()
- 二維碼
detect()/decode()/detectAndDecode()
- 變換
傅立葉變換dft()/idft()/getOptimalDFTSize()
幅值矩陣magnitude()
矩陣乘積mulSpectrums()
離散余弦變換dct()/idct()
積分integral()
- 圖像分割
漫水填充floodFill()、分水嶺watershed()、grabCut(),pyrMeanShiftFiltering()
- 圖像修復(fù)
inpaint()
- 角點(diǎn)檢測(cè)
關(guān)鍵點(diǎn)drawKeypoints()、conerHarris()、Shi-Tomas法goodFeaturesToTrack(),亞像素cornerSubPix()
- 特征點(diǎn)檢測(cè)
關(guān)鍵點(diǎn):Feature2D:detect()/compute()detectAndCompute()
SIFT特征點(diǎn):xfeatures2d:SURF::detect()
ORB特征點(diǎn)檢測(cè):ORB::detect()
特征點(diǎn)匹配:DescriptorMatcher::match()/knnMatch()radiusMatch()、BFMatcher()、FlannBasedMatcher()
RANSAC特征點(diǎn):findHomography()
- 立體
非齊次轉(zhuǎn)齊次:convertPointsToHomogeneous()/convertPointsFromHomogeneous()
findChessboardConners()
find4QuadCornerSubpix()
findCirclesGrid()
drawChessboardCorners()
calibrateCamera()
- 單目相機(jī)校正
initUndistorRectifyMap()/remap()/undistort()
projectPoints()/solvePnp()/solvePnpRansac()/Rodrigues()
- 雙目相機(jī)
stereoCalibrate()
stereoRectify()
- 視頻分析
差值法檢測(cè)移動(dòng)物體absdiff()
均值遷移法目標(biāo)跟蹤meanShift()/selectROI()
自適應(yīng)CamShift()
光流法:calcOpticalFlowFarneback()/cartToPolar()
LK稀疏光流法:calcOpticalFlowPyrLK()
- 機(jī)器學(xué)習(xí)
K均值kmeans()
K鄰近:StateModel::tran()/create()/predict(),Algorithm::load()/KNearest::findNearest()
決策樹:DTrees::create()
隨機(jī)森林:RTrees::create()
支持向量機(jī):SVM::create()
深度學(xué)習(xí):dnn::readNet(),圖像識(shí)別blobFromImages(),