Research Article

Local Stereo Matching Using Adaptive Local Segmentation

Algorithm 4

Elimination of the outliers.
𝑁 ξ…ž 𝑝 is the length of the initial vectors 𝐳 𝑙 and 𝐳 π‘Ÿ
π‘˜ = 0
for   𝑖 = 1 to 𝑁 ξ…ž 𝑝   do
 if   | 𝐳 𝑙 ( 𝑖 ) βˆ’ 𝐳 π‘Ÿ ( 𝑖 ) | β‰₯ 𝑇   then
  Remove 𝐳 𝑙 ( 𝑖 ) and 𝐳 π‘Ÿ ( 𝑖 )
 end if
end for
𝑁 𝑝 is the length of the final vectors 𝐳 𝑙 and 𝐳 π‘Ÿ