您现在的位置:首页 >> 技术文章 >> FPGA技术 >> 内容

MATLAB代做|FPGA代做|python代做-深度图提取

时间:2021-9-16 5:06:57 点击:

  核心提示:MATLAB代做|FPGA代做|python代做-深度图提取...
1.问题描述:

 深度图提取


2.部分程序:
%
% Geometric Blind Deconvolution script
%
% Copyright 2006 Paolo Favaro (p.favaro@hw.ac.uk)
% School of Engineering and Physical Sciences
% Heriot-Watt University, Edinburgh, UK
% Last revision: May 2006
%
% This program can be used only for research purposes.
% This program is distributed WITHOUT ANY WARRANTY; 
% without even the implied warranty of MERCHANTABILITY 
% or FITNESS FOR A PARTICULAR PURPOSE.

clear all
close all

% set to 1 to see plots, 0 otherwise
plotfigures = 1;

Yes = 1;
No = 0;
fprintf('Shape from Defocus (Least Squares)\n');
notValid = Yes;
while notValid
    method = input(['Which method do you want to test?'...
        '\nChoose generate, learn, overlap: '],'s'); 
    notValid = ~strcmp(method,'generate')&...
        ~strcmp(method,'learn')&...
        ~strcmp(method,'overlap');
end
%%%%%%%%%%%%%%%%%%%%%
% compute operators %
%%%%%%%%%%%%%%%%%%%%%
% ni is the square patch size 
% the larger ni the slower the algorithm
notValid = Yes;
while notValid
    ni = input(['Choose the patch size '...
        '\n3(fast&noisy),5,7,9(slow&smooth): '],'s');
    notValid = ~(ni=='3')&...
        ~(ni=='5')&...
        ~(ni=='7')&...
        ~(ni=='9');
end
ni = str2num(ni);
% fix rank of operators 
ranks = ni*ni; % operator ranks
if strcmp(method,'generate')
    % compute operators when PSF is known
    Hp = generate_operators(ni,ranks);
elseif strcmp(method,'learn')
    % compute operators when PSF is unknown 
    % learning approach; non overlapping patches
    Hp = learn_operators(ni,ranks);
else
    % compute operators when PSF is unknown
    % learning approach; overlapping patches
    Hp = learn_operators_overlap(ni,ranks);
end
%%%%%%%%%%%%%%%
% load images %
%%%%%%%%%%%%%%%
load DataSet

%%%%%%%%%%%%%%%%%%
% Estimate Depth %
%%%%%%%%%%%%%%%%%%
Depth = estimate_depth(I1,I2,Hp,plotfigures);

% optional smoothing
FilteredDepth = mediansmoothing(Depth,plotfigures);

return


————————————————

联系:highspeedlogic

QQ :1224848052

微信:HuangL1121

邮箱:1224848052@qq.com

网站:http://www.mat7lab.com/

网站:http://www.hslogic.com/

微信扫一扫:

作者:深度图提取 来源:网络深度图提取
  • 您是如何找到本站的?
  • 百度搜索
  • Google搜索
  • 查阅资料过程中
  • 论坛发现
  • 百度贴吧发现
  • 朋友介绍
本站最新成功开发工程项目案例
相关文章
  • 没有相关文章
相关评论
发表我的评论
  • 大名:
  • 内容:
  • matlab代做|matlab专业代做|matlab淘宝代做|python人工智能代做|FPGA项目合作|C代做|C++代做(www.hslogic.com) © 2021 版权所有 All Rights Reserved.
  • Email:highspeed_logic@163.com 站长QQ: 1224848052

    专业代做/代写/承接、MATLAB、SIMULINK、FPGA项目、博士/硕士/本科毕业设计、课题设计、论文,毕业论文,Coursework、Eassy、Assignment