資源描述:
《opencv中文手冊》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、^~目錄·1梯度、邊緣和角點o1.1Sobelo1.2Laplaceo1.3Cannyo1.4PreCornerDetecto1.5CornerEigenValsAndVecso1.6CornerMinEigenValo1.7CornerHarriso1.8FindCornerSubPixo1.9GoodFeaturesToTrack·2采樣、插值和幾何變換o2.1InitLineIteratoro2.2SampleLineo2.3GetRectSubPixo2.4GetQuadrangleSubPix
2、o2.5Resizeo2.6WarpAffineo2.7GetAffineTransformo2.82DRotationMatrixo2.9WarpPerspectiveo2.10WarpPerspectiveQMatrixo2.11GetPerspectiveTransformo2.12Remapo2.13LogPolar·3形態(tài)學(xué)操作o3.1CreateStructuringElementExo3.2ReleaseStructuringElemento3.3Erodeo3.4Dilateo3.5Mo
3、rphologyEx·4濾波器與色彩空間變換o4.1Smootho4.2Filter2Do4.3CopyMakeBordero4.4Integralo4.5CvtColoro4.6Thresholdo4.7AdaptiveThreshold·5金字塔及其應(yīng)用o5.1PyrDowno5.2PyrUp^~·6連接部件o6.1CvConnectedCompo6.2FloodFillo6.3FindContourso6.4StartFindContourso6.5FindNextContouro6.6Subst
4、ituteContouro6.7EndFindContourso6.8PyrSegmentationo6.9PyrMeanShiftFilteringo6.10Watershed·7圖像與輪廓矩o7.1Momentso7.2GetSpatialMomento7.3GetCentralMomento7.4GetNormalizedCentralMomento7.5GetHuMoments·8特殊圖像變換o8.1HoughLineso8.2HoughCircleso8.3DistTransformo8.4I
5、npaint·9直方圖o9.1CvHistogramo9.2CreateHisto9.3SetHistBinRangeso9.4ReleaseHisto9.5ClearHisto9.6MakeHistHeaderForArrayo9.7QueryHistValue_1Do9.8GetHistValue_1Do9.9GetMinMaxHistValueo9.10NormalizeHisto9.11ThreshHisto9.12CompareHisto9.13CopyHisto9.14CalcHisto9.
6、15CalcBackProjecto9.16CalcBackProjectPatcho9.17CalcProbDensityo9.18EqualizeHist·10匹配o10.1MatchTemplateo10.2MatchShapes^~o10.3CalcEMD2梯度、邊緣和角點Sobel使用擴展Sobel算子計算一階、二階、三階或混合圖像差分voidcvSobel(constCvArr*src,CvArr*dst,intxorder,intyorder,intaperture_size=3);src
7、輸入圖像.dst輸出圖像.xorderx方向上的差分階數(shù)yordery方向上的差分階數(shù)aperture_size擴展Sobel核的大小,必須是1,3,5或7。除了尺寸為1,其它情況下,aperture_size×aperture_size可分離內(nèi)核將用來計算差分。對aperture_size=1的情況,使用3x1或1x3內(nèi)核(不進行高斯平滑操作)。這里有一個特殊變量CV_SCHARR(=-1),對應(yīng)3x3Scharr濾波器,可以給出比3x3Sobel濾波更精確的結(jié)果。Scharr濾波器系數(shù)是:對x-方向
8、或矩陣轉(zhuǎn)置后對y-方向。函數(shù)cvSobel通過對圖像用相應(yīng)的內(nèi)核進行卷積操作來計算圖像差分:由于Sobel算子結(jié)合了Gaussian平滑和微分,所以,其結(jié)果或多或少對噪聲有一定的魯棒性。通常情況,函數(shù)調(diào)用采用如下參數(shù)(xorder=1,yorder=0,aperture_size=3)或(xorder=0,yorder=1,aperture_size=3)來計算一階x-或y-方向的圖像差分。第一種情況對應(yīng):^~核。第二種對應(yīng):或者核的選則依