The invention belongs to the field of computer image processing, including a foreground object dynamic scene video rapid stabilization method for an image, select a template, divide into several sub blocks; each block were calculated between pixels with a row or a column of blocks of blocks the absolute difference, and the average absolute deviation of each pixel; for each sub block, and calculating the between the upper and lower, left and right four position of the sub pixels of the block absolute difference threshold of T = AD and the threshold of T '(T' < T), for each sub block Ci, J if that blocks Ci, j as the foreground module; separating all the pictures of foreground target; motion compensation of image, image stabilization after. The invention can greatly reduce the number of modules involved in the calculation, and can improve the accuracy and speed of separation of foreground objects.
【技術實現步驟摘要】
【技術保護點】
一種具有前景目標的動態場景視頻快速穩像方法,包括下列步驟:1)對于一幀圖像,選定一個模板,將其平分成m×n大小為M×M的子塊,平分后的每個子塊記為C↓[i,j](i=1,K,m;j=1,K,n),子塊C↓[i,j]所在的行為第i行,所在的列為第j列;2)按照下列公式分別計算第i行的所有子塊與第i-1行對應子塊以及第j列的所有子塊與第j-1列對應子塊之間的像素絕對差,記為D↓[i,j]↑[row]及D↓[i,j]↑[col]:***,其中,x↓[i,j]、y↓[i,j]為子塊C↓[i,j]左上角頂點的坐標,f(x,y)為當前幀x,y處的灰度值;3)對于子塊C↓[i,j],令其周圍上、下、左、右四個位置的子塊為R↓[u]、R↓[d]、R↓[l]、R↓[r],將子塊C↓[i,j]和R↓[u]、R↓[d]、R↓[l]、R↓[r]之間的像素絕對差記為D↓[i,j]↑[k](k=1,K,4):***;4)計算D↓[i,j]↑[row]、D↓[i,j]↑[col]和的均值AD=1/(m+1)×(n+1)**(D↓[i,j]↑[row]+D↓[i,j]↑[col]);5)設定上限閾值T=AD,并選定一 ...
【技術特征摘要】
【專利技術屬性】
技術研發人員:何凱,牟聰翀,遠中文,卓磊,何海龍,
申請(專利權)人:何凱,牟聰翀,遠中文,卓磊,何海龍,
類型:發明
國別省市:12
還沒有人留言評論。發表了對其他瀏覽者有用的留言會獲得科技券。