CN107886475A - 一种单通道的图片相似判定方法 - Google Patents

一种单通道的图片相似判定方法 Download PDF

Info

Publication number
CN107886475A
CN107886475A CN201711306020.1A CN201711306020A CN107886475A CN 107886475 A CN107886475 A CN 107886475A CN 201711306020 A CN201711306020 A CN 201711306020A CN 107886475 A CN107886475 A CN 107886475A
Authority
CN
China
Prior art keywords
picture
lbp
dct
hog
contrast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711306020.1A
Other languages
English (en)
Inventor
王祝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yixiang (dalian) Science And Technology Co Ltd
Original Assignee
Yixiang (dalian) Science And Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yixiang (dalian) Science And Technology Co Ltd filed Critical Yixiang (dalian) Science And Technology Co Ltd
Priority to CN201711306020.1A priority Critical patent/CN107886475A/zh
Publication of CN107886475A publication Critical patent/CN107886475A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4084Scaling of whole images or parts thereof, e.g. expanding or contracting in the transform domain, e.g. fast Fourier transform [FFT] domain scaling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/32Indexing scheme for image data processing or generation, in general involving image mosaicing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种单通道的图片相似判定方法,将源图片与对比图片左右拼接成一个合成图片;将合成图片缩减至8*8像素大小,并降低至64级灰度;将合成图片进行DCT、LBP或HOG变换,得到基于灰度的DCT、LBP或HOG值;计算DCT、LBP或HOG值的均值,每位DCT、LBP或HOG值与均值做对比,大于或等于则记为1,小于则记为0;将0,1矩阵分为左右两个矩阵,然后散列,2个32位散列值;将两个32为散列值做对比,小于或等于3,则图片相似。本发明将源图片与对比图片拼接成一个图片,之后做各种变换及对比处理,仅需要一个计算核即可,节省了算法结构、时间,提高效率。

Description

一种单通道的图片相似判定方法
技术领域
本发明涉及图像处理领域,特别涉及一种单通道的图片相似判定方法。
背景技术
目前,应用DCT、LBP及HOG方法或其他方法判定两张图片的相似,均采用双通道的方法;也就是说,先对输入图片进行运算处理,之后再对对比图片进行相同的运算处理,最后比较两个结果之间的差异;这样需要两个运算核单独进行运算。
发明内容
为了克服上述现有技术的不足,本发明提供了一种单通道的图片相似判定方法。
本发明提供的一种单通道的图片相似判定方法,包括以下步骤:
第一步,将源图片与对比图片左右拼接成一个合成图片;
第二步,将合成图片缩减至8*8像素大小,并降低至64级灰度;
第三步,将合成图片进行DCT、LBP或HOG变换,得到基于灰度的DCT、LBP或HOG值;
第四步,计算DCT、LBP或HOG值的均值,每位DCT、LBP或HOG值与均值做对比,大于或等于则记为1,小于则记为0;
第五步,将0,1矩阵分为左右两个矩阵,然后散列,2个32位散列值;将两个32为散列值做对比,小于或等于3,则图片相似。
有益效果:本发明将源图片与对比图片拼接成一个图片,之后做各种变换及对比处理,仅需要一个计算核即可,节省了算法结构、时间,提高效率。
具体实施方式
实施例:
第一步,将源图片与对比图片左右拼接成一个合成图片(不仅仅限于左右拼接,上下拼接等其他拼接形式均可,而对应的第五步,0,1矩阵分割的时候,则与拼接方法一致);
第二步,将合成图片缩减至8*8像素大小,并降低至64级灰度;
第三步,将合成图片进行DCT、LBP或HOG变换,得到基于灰度的DCT、LBP或HOG值;
第四步,计算DCT、LBP或HOG值的均值,每位DCT、LBP或HOG值与均值做对比,大于或等于则记为1,小于则记为0;
第五步,将0,1矩阵分为左右两个矩阵,然后散列,2个32位散列值;将两个32为散列值做对比,小于或等于3,则图片相似。

Claims (1)

1.一种单通道的图片相似判定方法,其特征在于,包括以下步骤:
第一步,将源图片与对比图片左右拼接成一个合成图片;
第二步,将合成图片缩减至8*8像素大小,并降低至64级灰度;
第三步,将合成图片进行DCT、LBP或HOG变换,得到基于灰度的DCT、LBP或HOG值;
第四步,计算DCT、LBP或HOG值的均值,每位DCT、LBP或HOG值与均值做对比,大于或等于则记为1,小于则记为0;
第五步,将0,1矩阵分为左右两个矩阵,然后散列,2个32位散列值;将两个32为散列值做对比,小于或等于3,则图片相似。
CN201711306020.1A 2017-12-11 2017-12-11 一种单通道的图片相似判定方法 Pending CN107886475A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711306020.1A CN107886475A (zh) 2017-12-11 2017-12-11 一种单通道的图片相似判定方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711306020.1A CN107886475A (zh) 2017-12-11 2017-12-11 一种单通道的图片相似判定方法

Publications (1)

Publication Number Publication Date
CN107886475A true CN107886475A (zh) 2018-04-06

Family

ID=61773844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711306020.1A Pending CN107886475A (zh) 2017-12-11 2017-12-11 一种单通道的图片相似判定方法

Country Status (1)

Country Link
CN (1) CN107886475A (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581419A (zh) * 2020-04-29 2020-08-25 北京金山云网络技术有限公司 一种图像处理方法、装置、电子设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504120A (zh) * 2014-12-29 2015-04-08 北京奇艺世纪科技有限公司 一种相似图片检测方法及装置
US20160012569A1 (en) * 2013-02-28 2016-01-14 Hitachi Medical Corporation Image processing device, magnetic resonance imaging apparatus and image processing method
CN105809625A (zh) * 2016-03-07 2016-07-27 哈尔滨中研普瑞电子工程技术中心有限公司 基于局部纹理模式的碎片重构方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160012569A1 (en) * 2013-02-28 2016-01-14 Hitachi Medical Corporation Image processing device, magnetic resonance imaging apparatus and image processing method
CN104504120A (zh) * 2014-12-29 2015-04-08 北京奇艺世纪科技有限公司 一种相似图片检测方法及装置
CN105809625A (zh) * 2016-03-07 2016-07-27 哈尔滨中研普瑞电子工程技术中心有限公司 基于局部纹理模式的碎片重构方法

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HJIMCE的专栏: "深度学习(⼗六)基于2-channel network的图片相似度判别", 《HTTPS://BLOG.CSDN.NET/HJIMCE/ARTICLE/DETAILS/50098483》 *
HK_JOHN的博客: "图像特征提取三⼤法宝:HOG特征,LBP特征,Haar特征", 《HTTPS://BLOG.CSDN.NET/HK_JOHN/ARTICLE/DETAILS/78422011》 *
LWTB的博客: "感知哈希原理及实现", 《HTTPS://BLOG.CSDN.NET/QQ_26811393/ARTICLE/DETAILS/51174321》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581419A (zh) * 2020-04-29 2020-08-25 北京金山云网络技术有限公司 一种图像处理方法、装置、电子设备及存储介质

Similar Documents

Publication Publication Date Title
WO2017185412A1 (zh) 一种支持较少位数定点数的神经网络运算的装置和方法
JP2009038523A5 (zh)
RU2017128208A (ru) Обработка изображения с изменением степени яркости при постоянстве цвета
NZ586691A (en) Method for estimating time required for a data processing job based on job parameters and known times for similar jobs
CN108133463B (zh) 一种直方图均衡化图像的降噪方法及系统
JP2018508862A5 (zh)
GB2431537B (en) Method of processing an image
CN109600605B (zh) 4k超高清视频的检测方法、电子设备及计算机程序产品
JP2013042539A5 (ja) プログラム、情報処理装置及び制御方法
GB2521260A8 (en) Method of and apparatus for processing graphics
JP2010148072A5 (zh)
CN102800054B (zh) 基于稀疏性度量的图像盲去模糊方法
CN108346133A (zh) 一种面向视频卫星超分辨率重建的深度学习网络训练方法
WO2014133769A3 (en) Method and system for image processing
CN107886475A (zh) 一种单通道的图片相似判定方法
CN113962917A (zh) 一种基于掩膜的数据增强方法
CN105447830A (zh) 动态视频图像清晰度强化方法及装置
US20210004934A1 (en) Super-resolution method using local binary pattern classification and linear mapping
CN108052972A (zh) 一种双拼的单通道的图片相似判定方法
TW201612850A (en) Image processing system and saturation compensation method
JP2015088918A5 (ja) 画像処理装置及び画像処理方法、プログラム
CN104754181B (zh) 一种视频噪声估计方法及装置
Ustukov et al. Modification of Retinex algorithm and its stream implementation on FPGA
CN106971386A (zh) 判断图像完整度及页面加载度的方法、装置和客户端设备
JP2011030216A5 (ja) 画像処理装置及び画像処理方法

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180406