Description: (1) read the picture and convert it to gray image.
(2) view1.png, view1.png view1.png view1.png and View5.Png.Png are partitioned according to 4x4 pixel / grid.
(3) considering the relative stability of the edge and the parallax rule of the binocular imaging, the nearest to the nearest block of the block's Euclidean distance is searched as a new position in the distance between the 20 pixels of the block image divided by the first image.
(4) calculate parallax and transform the parallax information of the representative points in each block to the whole interval.
(5) convert parallax to depth and normalize to 0-255 interval and display pictures.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
main.m | 1910 | 2017-12-19
|
parallax.mat | 5186142 | 2017-12-19
|
view1.png | 1550422 | 2015-09-19
|
view5.png | 1570518 | 2015-09-19
|
depth.bmp | 3382614 | 2017-12-19
|
dis_cal.m | 246 | 2017-12-19 |