opencv 一日一練 api 之 blur

2021-06-22 06:38:55 字數 882 閱讀 7658

opencv版本為 2.4.8 或 2.4.9

blur

blurs an image using the normalized box filter.

blur的作用是對輸入的影象src進行均值濾波後用dst輸出。

函式原型

c++: void blur(inputarray src, outputarray dst, size ksize, point anchor=point(-1,-1), int bordertype=border_default )

引數詳解如下:

示例:

mat src,dst;

blur 支援本地計算,即輸入輸出可以使用同一引數。

如下:

blur(src,src,size(3,3));
參考:

windows API一日一練(6)

貼出昨天沒有完成的程式 自己還沒有來得及在程式中試用,因此此函式自作參考用 bool autorun getmodulefilename module,filepath,max path 開啟登錄檔 hkey hkey long flag null falg regopenkeyex hket lo...

Halcon一日一練 Halcon異常判斷方法

1 trycatch trycatch處理的方式如下 try 可能會出現錯誤的語句 catch exception 獲取錯誤 errorcode exception 0 對錯誤的回應 endtry 程式繼續 舉個例子 try read image image,cuowu 讀取乙個影象,但影象路徑是錯...

力扣一日一練(31) 寶石與石頭

給定字串j 代表石頭中寶石的型別,和字串 s代表你擁有的石頭。s 中每個字元代表了一種你擁有的石頭的型別,你想知道你擁有的石頭中有多少是寶石。j 中的字母不重複,j 和 s中的所有字元都是字母。字母區分大小寫,因此 a 和 a 是不同型別的石頭。示例 1 輸入 j aa s aaabbbb 輸出 3...