2016-05-17 40 views
0

我有使用matlab的步態識別系統。我想從幀差圖像中找到累加的幀差能量圖像(AFDEI)。通過加權平均法,得到了能夠反映時間特徵的AFDEI。接下來公式顯示如何計算累計幀差圖像:查找累計幀差能量圖像

(,) = 1/N Σ (,,)  where Σ from t=1 to N 

這是我的幀差圖像(5圖像)

frame difference images

我想找到累積幀差能量圖像(AFDEI)像這樣:

result image

我試着總結5圖像,並採取AVE憤怒使它給我一個非常不同的形象。

那麼如何找到AFDEI?

回答

0

我給這一個鏡頭:

有某種後期處理過濾的平均圖像之後。

這是平均的結果:

enter image description here

這是應用模式濾波器一個3x3的窗口前面的圖像後:

enter image description here

所以我說你的目標圖像是使用某種更智能的着色算法。在這個不知道,但它像它重疊原始幀的邊界,然後填充與模式/模式的AFDEI


編輯的價值所產生的區域:以上

function target = modeFilter(origin) 
    %origin is a monochrome IMG matrix 
    %being lazy with the margin, you may resize to filter the borders, 
    %without OOB exceptions. 
    target=origin; 
    [h,w]=size(origin); 
    for x=[2:w-1] 
    for y=[2:h-1] 
    target(y,x)=mode(origin(y-1:y+1,x-1:x+1)(:)); 
    end 
    end 
end 
+0

使用模式過濾器感謝您的重播。你能幫我編碼嗎? –

+0

我沒有時間嘗試編碼更好的過濾器,但是我已經發布了我使用的模式過濾器。 – xvan

+0

感謝您的幫助。我會嘗試看看如何讓它更好 –