我期待使用某些快速方法来匹配两个图像

时间:2019-07-14 15:40:11

标签: matlab image-processing

我期待以某种快速的方法来匹配两个图像。我有两个数据集,想要查找相同的图像并将其单独保存或保存其名称或索引

我试图将图像转换为向量并减去它们,然后计算向量中非零的总数。但是这种技术有时无法正常工作

    name_orb = strcat(ORBSLAM, char(Name_orb(i)));
    img_orb = imread(name_orb);
    gray_orb = rgb2gray(img_orb);
    gray_orb = gray_orb(:);
    %% reading orb images (key frames)
    name_key = strcat(Key, char(Name_key(k)));
    img_key = imread(name_key);
    img_key = img_key(:);

    %% difference between vectors
    vec_diff = gray_orb - img_key;
    %vec_diffe = img_key - gray_orb;
    %% finding non zero entries in difference 
    nnz_diff(i-1) = nnz(~vec_diff);

0 个答案:

没有答案