Skip to content

Commit

Permalink
Backup 2019-08-14
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasrosa committed Aug 14, 2019
1 parent 824e26f commit beb17c8
Show file tree
Hide file tree
Showing 7 changed files with 40,168 additions and 20 deletions.
33 changes: 19 additions & 14 deletions misc/getDatasetInfo/getDatasetInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,45 @@
close all

addpath 'align_figure'
addpath('meshCanopy')

%% Define Dataset Root Path
% dataset_root = '/media/nicolas/Nícolas/datasets/';
dataset_root = '/media/nicolas/nicolas_seagate/datasets/'

%% KITTI 2012
kitti2012_image = imread('/media/nicolas/Nícolas/datasets/kitti/stereo/stereo2012/data_stereo_flow/training/colored_0/000000_10.png');
kitti2012_depth = imread('/media/nicolas/Nícolas/datasets/kitti/stereo/stereo2012/data_stereo_flow/training/disp_noc/000000_10.png');
kitti2012_image = imread(strcat(dataset_root,'kitti/stereo/stereo2012/data_stereo_flow/training/colored_0/000000_10.png'));
kitti2012_depth = imread(strcat(dataset_root,'kitti/stereo/stereo2012/data_stereo_flow/training/disp_noc/000000_10.png'));
kitti2012_depth_true = double(kitti2012_depth)/256.0;

%% KITTI 2015
kitti2015_image = imread('/media/nicolas/Nícolas/datasets/kitti/stereo/stereo2015/data_scene_flow/training/image_2/000000_10.png');
kitti2015_depth = imread('/media/nicolas/Nícolas/datasets/kitti/stereo/stereo2015/data_scene_flow/training/disp_noc_0/000000_10.png');
kitti2015_image = imread(strcat(dataset_root,'kitti/stereo/stereo2015/data_scene_flow/training/image_2/000000_10.png'));
kitti2015_depth = imread(strcat(dataset_root,'kitti/stereo/stereo2015/data_scene_flow/training/disp_noc_0/000000_10.png'));
kitti2015_depth_true = double(kitti2015_depth)/256.0;

%% KITTI Depth
kitti_depth_image = imread('/media/nicolas/Nícolas/datasets/kitti/raw_data/data/2011_09_26_drive_0001_sync/image_02/data/0000000005.png');
kitti_depth_depth = imread('/media/nicolas/Nícolas/datasets/kitti/depth/depth_prediction/data/train/2011_09_26_drive_0001_sync/proj_depth/groundtruth/image_02/0000000005.png');
kitti_depth_image = imread(strcat(dataset_root,'kitti/raw_data/2011_09_26/2011_09_26_drive_0001_sync/image_02/data/0000000005.png'));
kitti_depth_depth = imread(strcat(dataset_root,'kitti/depth/depth_prediction/data/train/2011_09_26_drive_0001_sync/proj_depth/groundtruth/image_02/0000000005.png'));
kitti_depth_depth_true = double(kitti_depth_depth)/256.0;

%% KITTI Discrete
kitti_discrete_image = imread('/media/nicolas/Nícolas/datasets/kitti/raw_data/data/2011_09_26_drive_0002_sync/proc2/imgs/city_2011_09_26_drive_0002_sync_0000000000.png')
kitti_discrete_depth = imread('/media/nicolas/Nícolas/datasets/kitti/raw_data/data/2011_09_26_drive_0002_sync/proc2/disp1/city_2011_09_26_drive_0002_sync_0000000000.png');
kitti_discrete_image = imread(strcat(dataset_root,'kitti/raw_data/2011_09_26/2011_09_26_drive_0002_sync/proc_kitti_nick/imgs/2011_09_26_drive_0002_sync_0000000000.png'));
kitti_discrete_depth = imread(strcat(dataset_root,'kitti/raw_data/2011_09_26/2011_09_26_drive_0002_sync/proc_kitti_nick/disp1/2011_09_26_drive_0002_sync_0000000000.png'));
kitti_discrete_depth_true = double(kitti_discrete_depth)/3.0;

%% KITTI Continuous (Residential)
kitti_continuous_image = imread('/media/nicolas/Nícolas/datasets/kitti/continuous/residential/imgs/residential_2011_09_26_drive_0019_sync_0000000000.png');
kitti_continuous_depth = imread('/media/nicolas/Nícolas/datasets/kitti/continuous/residential/dispc/residential_2011_09_26_drive_0019_sync_0000000000.png');
kitti_continuous_image = imread(strcat(dataset_root,'kitti/raw_data/2011_09_26/2011_09_26_drive_0002_sync/proc_kitti_nick/imgs/2011_09_26_drive_0002_sync_0000000000.png'));
kitti_continuous_depth = imread(strcat(dataset_root,'kitti/raw_data/2011_09_26/2011_09_26_drive_0002_sync/proc_kitti_nick/disp2/2011_09_26_drive_0002_sync_0000000000.png'));
kitti_continuous_depth_true = double(kitti_continuous_depth)/3.0;

%% NYU Depth v2
nyu_image = imread('/media/nicolas/Nícolas/datasets/nyu-depth-v2/data/images/training/basement/00489_colors.png');
nyu_depth = imread('/media/nicolas/Nícolas/datasets/nyu-depth-v2/data/images/training/basement/00489_depth.png');
nyu_image = imread(strcat(dataset_root,'nyu-depth-v2/data/images/training/basement/00489_colors.png'));
nyu_depth = imread(strcat(dataset_root,'nyu-depth-v2/data/images/training/basement/00489_depth.png'));
nyu_depth_true = double(nyu_depth)/1000.0; % According to the convert.py file

%% ApolloScape
apollo_image = imread('/media/nicolas/Nícolas/datasets/apolloscape/data/ColorImage/Record001/Camera 5/170927_063811892_Camera_5.jpg');
apollo_depth = imread('/media/nicolas/Nícolas/datasets/apolloscape/data/Depth/Record001/Camera 5/170927_063811892_Camera_5.png');
apollo_image = imread(strcat(dataset_root,'apolloscape/data/ColorImage/Record001/Camera 5/170927_063811892_Camera_5.jpg'));
apollo_depth = imread(strcat(dataset_root,'apolloscape/data/Depth/Record001/Camera 5/170927_063811892_Camera_5.png'));

apollo_depth(apollo_depth == 65535) = 0;
apollo_depth_true = double(apollo_depth)/200.0;
Expand Down
Loading

0 comments on commit beb17c8

Please sign in to comment.