• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
小小慧
博客园    首页    新随笔    联系   管理    订阅  订阅
深度修复
% Demo's the in-painting function fill_depth_cross_bf.m
% 
% DATASET_PATH = '~/data1/kinect/spatial_relations_data/labeled_data.mat';
% 
% load(DATASET_PATH, 'images', 'rawDepths');
clc
clear;
depthM=imread('aa.pgm');
rgbM=imread('bb.ppm');
 imshow(rgbM);
 figure
 imshow(depthM)
%%
imageInd = 1;

 imgRgb =rgbM; %images(:,:,:,imageInd);
imgDepthAbs =depthM; %rawDepths(:,:,imageInd);

% Crop the images to include the areas where we have depth information.
imgRgb = crop_image(imgRgb);
imgDepthAbs = crop_image(imgDepthAbs);

 imgDepthFilled = fill_depth_cross_bf(imgRgb, double(imgDepthAbs));
%imgDepthFilled = fill_depth_colorization(imgRgb, double(imgDepthAbs));

tt=double(imgDepthAbs)-imgDepthFilled;
figure(1);
subplot(1,3,1); imagesc(imgRgb);
subplot(1,3,2); imagesc(imgDepthAbs);
subplot(1,3,3); imagesc(imgDepthFilled);
% imshow(uint16(double(imgDepthAbs)-imgDepthFilled),[])

 

posted on 2016-09-08 10:15  小小慧  阅读(573)  评论(4)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3