Tesi Robotica Un co-processore per Stereo-Matching: Architettura | Page 81
i
i
“LP_Tesi” — 2011/9/9 — 21:20 — page 81 — #81
i
4.5. MODULO SCORING
i
81
Algoritmo 4.21 Scoring: method I
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
method Action put(Pixel l, Pixel r) if(step==1);
Bit#(32) cNorthWest = bound - extend(absSub(l.red,r.red)) extend(absSub(l.green,r.green)) - extend(absSub(l.blue,r.blue));
Bit#(32) cNorth=top; Bit#(32) cWest=left;
if(addr==0) begin
cNorth = top + gap;
cWest = left + gap;
top<=top+egap;
left<=left+egap;
end
else if(addr