【问题标题】:normalized cross correlation for characters字符的归一化互相关
【发布时间】:2017-07-24 19:17:32
【问题描述】:

这是模板匹配相关部分

function letter=read_letter(img_r,num_letras)

% Computes the correlation between template and input image
% and its output is a string containing the letter.
% Size of 'imagn' must be 42 x 24 pixels
% Example:
% imagn=imread('D.bmp');
% letter=read_letter(imagn)
global templates
comp=[ ];
%while 1
for n=1:length(templates)
sem=corr2(templates{1,n},img_r); 
comp=[comp sem];  
end
vd=find(comp==max(comp));
if vd==1
letter='A';
elseif vd==2
letter='B';
........
else
letter='z';
end

模板匹配可以有多种类型。我的模板匹配是基于互相关的吗? 我想知道如何使用归一化互相关来识别字符

请帮忙

谢谢

【问题讨论】:

    标签: templates character matching


    【解决方案1】:

    corr2 已经计算了归一化相关性。 比较归一化互相关的definition和matlab的implementation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-14
      • 1970-01-01
      • 2014-08-02
      • 1970-01-01
      相关资源
      最近更新 更多