The improved extraction method of Blob region applied to holographic projection display proposed by the present invention involves the technical field of holographic projection, with specific steps as follows: 1. Let I be a binary image containing only Blob region, and use two-dimensional Gaussian formula to generate a Gaussian filter template, then convolute the template and image I to obtain the image I`; 2. Two operators in the X direction and Y direction of Sobel operator are used respectively with I`; `By convolution operation, the gradient magnitude map IB is obtained, and its gradient angle map IB` is obtained by using formula theta=arctan (My/Mx). 3. Combining with IB`, IB is suppressed by non-maximum value and temporary Blob region contour map IC is obtained. 4. The gradient histogram of IC is counted and the high threshold thigh and low threshold TLOW are calculated. 5. Double threshold processing of IC is carried out by thigh and t obtained from the previous step. Finally, the Blob region I `of the source image I is obtained. The invention effectively characterizes the blob region outline, and the extracted blob region outline is more accurate and continuous.
【技術實現步驟摘要】
應用于全息投影顯示的Blob區域改進提取方法
本專利技術涉及全息投影
,尤其是應用于全息投影顯示的Blob區域改進提取方法。
技術介紹
傳統Canny算子對于的選取通過經驗值設定,但不同的手指觸摸圖像會產生不同的觸摸點數,Blob區域輪靡信息的提取就會產生不同的情況。當觸摸點數增加時,仍采用相同的閾值處理不同情況下的手指觸摸圖像,將使提取到的Blob區域輪廓產生誤差。因此,有必要對傳統Canny算子滯后閾值化處理提出改進方法,實現高閾值選取的自適應性,在增加Canny算子性能的同時提高Blob區域輪廓提取的準確度。
技術實現思路
本專利技術提供的應用于全息投影顯示的Blob區域改進提取方法,提高Blob區域輪廓提取的準確度和連續性。本專利技術具體采用如下技術方案實現:一種應用于全息投影顯示的Blob區域改進提取方法,其特征在于,具體步驟為:步驟1、設I為只含有Blob區域的二值圖像,使用二維高斯公式,產生高斯濾波模版,然后用模版和圖像I進行卷積,得到圖像I`;步驟2、用Sobel算子X方向和Y方向的兩個算子分別與I`做卷積運算,求得梯度幅值圖IB,并利用公式θ=arctan(My/Mx)求得其梯度角度圖IB`;步驟3、結合IB`,對IB進行非最大值抑制處理,得到臨時Blob區域輪廓圖IC;步驟4、對IC進行梯度直方圖統計,并計算出高閾值thigh和低閾值tlow,具體計算步驟如下:步驟41、出經過非極大值抑制處理后的圖像中像素的最小梯度值Zl和最大梯度值Zh,并通過T0=(Zl+Zh)/2求得初始閾值T0;步驟42、根據閾值Tk將圖像梯度分為兩部分,分別 ...
【技術保護點】
1.一種應用于全息投影顯示的Blob區域改進提取方法,其特征在于,具體步驟為:步驟1、設I為只含有Blob區域的二值圖像,使用二維高斯公式,產生高斯濾波模版,然后用模版和圖像I進行卷積,得到圖像I`;步驟2、用Sobel算子X方向和Y方向的兩個算子分別與I`做卷積運算,求得梯度幅值圖IB,并利用公式θ=arctan(My/Mx)求得其梯度角度圖IB`;步驟3、結合IB`,對IB進行非最大值抑制處理,得到臨時Blob區域輪廓圖IC;步驟4、對IC進行梯度直方圖統計,并計算出高閾值thigh和低閾值tlow,具體計算步驟如下:步驟41、出經過非極大值抑制處理后的圖像中像素的最小梯度值Zl和最大梯度值Zh,并通過T0=(Zl+Zh)/2求得初始閾值T0;步驟42、根據閾值Tk將圖像梯度分為兩部分,分別求出兩部分的平均梯度值Z0和ZB;
【技術特征摘要】
1.一種應用于全息投影顯示的Blob區域改進提取方法,其特征在于,具體步驟為:步驟1、設I為只含有Blob區域的二值圖像,使用二維高斯公式,產生高斯濾波模版,然后用模版和圖像I進行卷積,得到圖像I`;步驟2、用Sobel算子X方向和Y方向的兩個算子分別與I`做卷積運算,求得梯度幅值圖IB,并利用公式θ=arctan(My/Mx)求得其梯度角度圖IB`;步驟3、結合IB`,對IB進行非最大值抑制處理,得到臨時Blob區域輪廓圖IC;步驟4、對IC進行梯度直方圖統計,并計算出高閾值thigh和低閾值tlow,具體計算步...
【專利技術屬性】
技術研發人員:不公告發明人,
申請(專利權)人:北京微美云息軟件有限公司,
類型:發明
國別省市:北京,11
還沒有人留言評論。發表了對其他瀏覽者有用的留言會獲得科技券。