Katharine94
Katharine94
采纳率100%
2016-05-17 09:26 阅读 2.7k

MATLAB中NCC模板匹配问题,看不懂代码,请教大家了

3

看不懂这几句程序,请求大家帮忙,谢谢啦,我前面做的是NCC模板匹配问题,初学图像处理,零基础,还请大家帮帮我
recovered_temple = uint8(zeros(size(F_filter2)));
recovered_temple(ybegin:yend,xbegin:xend,:) = T_gray;
figure, imshow(recovered_temple);

%Step 7: Transparently Overlay temple Image on first Image
[m,n,p] = size(F_filter2);
mask = ones(m,n);
i = find(recovered_temple(:,:,1)==0);
mask(i) = .2; % try experimenting with different levels of transparency
%尝试用不同透明度实验
% overlay images with transparency
figure, imshow(F_filter2(:,:,1)); % show only red plane of first
hold on
h = imshow(recovered_temple); % overlay recovered_temple
set(h,'AlphaData',mask)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

相关推荐