CN107622488A - A kind of Confocal Images block similarity measurement method and system - Google Patents

A kind of Confocal Images block similarity measurement method and system Download PDF

Info

Publication number
CN107622488A
CN107622488A CN201710892587.5A CN201710892587A CN107622488A CN 107622488 A CN107622488 A CN 107622488A CN 201710892587 A CN201710892587 A CN 201710892587A CN 107622488 A CN107622488 A CN 107622488A
Authority
CN
China
Prior art keywords
rectangular image
image block
mrow
similar
block
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
CN201710892587.5A
Other languages
Chinese (zh)
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.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong University
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 Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CN201710892587.5A priority Critical patent/CN107622488A/en
Publication of CN107622488A publication Critical patent/CN107622488A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microscoopes, Condenser (AREA)

Abstract

The invention provides a kind of Confocal Images block similarity measurement method and system, including:Rectangular image block is chosen centered on the first pixel;Choose similar rectangular image block respectively centered on some pixels beyond the first pixel, calculate the distance between two rectangular image blocks, will some similar rectangular image blocks by distance from closely to remote sequence, and individual similar rectangular image blocks of K before choosing;Similarity function of the rectangular image block to similar rectangular image block is calculated, chooses the similar rectangular image block that similarity function in K similar rectangular image blocks is more than predetermined threshold.The present invention effectively strengthens the robustness of image block similarity measurement, is easy to follow-up analysis, can effective boosting algorithm stability.

Description

A kind of Confocal Images block similarity measurement method and system
Technical field
The present invention relates to technical field of image processing, in particular it relates to a kind of Confocal Images block similarity measurement method And system.
Background technology
With the high speed development of mobile Internet, people can quickly and easily obtain image resource, how extra large from these Some similar images are found in the image resource of amount and seem extremely important.1991, Swain proposed color histogram graphic calculation Method, and carry out image retrieval with it.The advantages of algorithm is to calculate simply, and too many pre- place need not be done to image Reason, the size of image is not also strict with, but due to image color histogram represent be that each color occurs Probability, it does not indicate the particular location of a certain color in the picture, therefore when calculating the similarity of two images block, just It can cause a deviation;And the algorithm two images block relatively simple to color can not make good judgement.
The content of the invention
For in the prior art the defects of, it is an object of the invention to provide a kind of Confocal Images block similarity measurement method And system.
According to a kind of Confocal Images block similarity measurement method provided by the invention, including:
Rectangular image block selecting step:Rectangular image block is chosen centered on the first pixel;
Similar rectangular image block selecting step:Choose similar rectangle respectively centered on some pixels beyond the first pixel Image block, the distance between two rectangular image blocks are calculated, by some similar rectangular image blocks by distance from closely to remote sequence, and select K similar rectangular image blocks before taking;
Similarity function calculation procedure:Similarity function of the rectangular image block to similar rectangular image block is calculated, chooses K Similarity function is more than the similar rectangular image block of predetermined threshold in similar rectangular image block.
Preferably, the rectangular image block selecting step includes:Centered on pixel i, r is that radius chooses rectangular image block pi, rectangular image block piIt is interior to include the individual pixels of (2r+1) × (2r+1) altogether.
Preferably, the similar rectangular image block selecting step includes:Centered on some pixel j beyond pixel i, r Similar rectangular image block p is chosen for radiusj, similar rectangular image block pjIt is interior to include the individual pixels of (2r+1) × (2r+1) altogether, calculate two The distance between rectangular image block d (i, j),
By some similar rectangular image blocks by distance from closely to remote sequence, and K similar rectangular image blocks before choosing,
d(pi,p1) < d (pi,p2) < d (pi,p3) < ... < d (pi,pK)。
Preferably, the similarity function calculation procedure includes:
Calculate rectangular image block piTo similar rectangular image block pjSimilarity function I (i, j),
Given threshold ε, choose the similar square for being more than ε in K similar rectangular image blocks to rectangular image block similarity function Shape image block.
According to a kind of Confocal Images block similarity measurement system provided by the invention, including:
Rectangular image block chooses module:Rectangular image block is chosen centered on the first pixel;
Similar rectangular image block chooses module:Choose similar rectangle respectively centered on some pixels beyond the first pixel Image block, the distance between two rectangular image blocks are calculated, by some similar rectangular image blocks by distance from closely to remote sequence, and select K similar rectangular image blocks before taking;
Similarity function computing module:Similarity function of the rectangular image block to similar rectangular image block is calculated, chooses K Similarity function is more than the similar rectangular image block of predetermined threshold in similar rectangular image block.
Preferably, the rectangular image block is chosen module and included:Centered on pixel i, r is that radius chooses rectangular image block pi, rectangular image block piIt is interior to include the individual pixels of (2r+1) × (2r+1) altogether.
Preferably, the similar rectangular image block is chosen module and included:Centered on some pixel j beyond pixel i, r Similar rectangular image block p is chosen for radiusj, similar rectangular image block pjIt is interior to include the individual pixels of (2r+1) × (2r+1) altogether, calculate two The distance between rectangular image block d (i, j),
By some similar rectangular image blocks by distance from closely to remote sequence, and K similar rectangular image blocks before choosing,
d(pi,p1) < d (pi,p2) < d (pi,p3) < ... < d (pi,pK)。
Preferably, the similarity function computing module includes:
Calculate rectangular image block piTo similar rectangular image block pjSimilarity function I (i, j),
Given threshold ε, choose the similar square for being more than ε in K similar rectangular image blocks to rectangular image block similarity function Shape image block.
Compared with prior art, the present invention has following beneficial effect:
The present invention effectively strengthens the robustness of image block similarity measurement, is easy to follow-up analysis, can effectively be lifted The stability of algorithm.
Brief description of the drawings
The detailed description made by reading with reference to the following drawings to non-limiting example, further feature of the invention, Objects and advantages will become more apparent upon:
Fig. 1 is the workflow diagram of the present invention.
Embodiment
With reference to specific embodiment, the present invention is described in detail.Following examples will be helpful to the technology of this area Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill to this area For personnel, without departing from the inventive concept of the premise, some changes and improvements can also be made.These belong to the present invention Protection domain.
As shown in figure 1, a kind of Confocal Images block similarity measurement method provided by the invention, including:
Rectangular image block selecting step:Rectangular image block is chosen centered on the first pixel;
Similar rectangular image block selecting step:Choose similar rectangle respectively centered on some pixels beyond the first pixel Image block, the distance between two rectangular image blocks are calculated, by some similar rectangular image blocks by distance from closely to remote sequence, and select K similar rectangular image blocks before taking;
Similarity function calculation procedure:Similarity function of the rectangular image block to similar rectangular image block is calculated, chooses K Similarity function is more than the similar rectangular image block of predetermined threshold in similar rectangular image block.
Rectangular image block selecting step includes:Centered on pixel i, r is that radius chooses rectangular image block pi, rectangular image Block piIt is interior to include the individual pixels of (2r+1) × (2r+1) altogether.
Similar rectangular image block selecting step includes:Centered on some pixel j beyond pixel i, r is that radius chooses phase Like rectangular image block pj, similar rectangular image block pjIt is interior include the individual pixels of (2r+1) × (2r+1) altogether, two rectangular image blocks of calculating it Between distance d (i, j),
By some similar rectangular image blocks by distance from closely to remote sequence, and K similar rectangular image blocks before choosing,
d(pi,p1) < d (pi,p2) < d (pi,p3) < ... < d (pi,pK)。
Similarity function calculation procedure includes:
Calculate rectangular image block piTo similar rectangular image block pjSimilarity function I (i, j),
Given threshold ε, choose the similar square for being more than ε in K similar rectangular image blocks to rectangular image block similarity function Shape image block.
According to above-mentioned Confocal Images block similarity measurement method, a kind of Confocal Images block that the present invention also provides is similar Measuring system is spent, including:
Rectangular image block chooses module:Rectangular image block is chosen centered on the first pixel;
Similar rectangular image block chooses module:Choose similar rectangle respectively centered on some pixels beyond the first pixel Image block, the distance between two rectangular image blocks are calculated, by some similar rectangular image blocks by distance from closely to remote sequence, and select K similar rectangular image blocks before taking;
Similarity function computing module:Similarity function of the rectangular image block to similar rectangular image block is calculated, chooses K Similarity function is more than the similar rectangular image block of predetermined threshold in similar rectangular image block.
Rectangular image block, which chooses module, to be included:Centered on pixel i, r is that radius chooses rectangular image block pi, rectangular image Block piIt is interior to include the individual pixels of (2r+1) × (2r+1) altogether.
Similar rectangular image block, which chooses module, to be included:Centered on some pixel j beyond pixel i, r is that radius chooses phase Like rectangular image block pj, similar rectangular image block pjIt is interior include the individual pixels of (2r+1) × (2r+1) altogether, two rectangular image blocks of calculating it Between distance d (i, j),
By some similar rectangular image blocks by distance from closely to remote sequence, and K similar rectangular image blocks before choosing,
d(pi,p1) < d (pi,p2) < d (pi,p3) < ... < d (pi,pK)。
Similarity function computing module includes:
Calculate rectangular image block piTo similar rectangular image block pjSimilarity function I (i, j),
Given threshold ε, choose the similar square for being more than ε in K similar rectangular image blocks to rectangular image block similarity function Shape image block.
One skilled in the art will appreciate that except realizing system provided by the invention in a manner of pure computer readable program code And its beyond each device, module, unit, completely can be by the way that method and step progress programming in logic be provided come the present invention System and its each device, module, unit with gate, switch, application specific integrated circuit, programmable logic controller (PLC) and embedding Enter the form of the controller that declines etc. to realize identical function.So system provided by the invention and its every device, module, list Member is considered a kind of hardware component, and is used to realize that device, module, the unit of various functions also may be used to what is included in it To be considered as the structure in hardware component;It both can be real that will can also be considered as device, module, the unit of realizing various functions The software module of existing method can be the structure in hardware component again.
The specific embodiment of the present invention is described above.It is to be appreciated that the invention is not limited in above-mentioned Particular implementation, those skilled in the art can make a variety of changes or change within the scope of the claims, this not shadow Ring the substantive content of the present invention.In the case where not conflicting, the feature in embodiments herein and embodiment can any phase Mutually combination.

Claims (8)

  1. A kind of 1. Confocal Images block similarity measurement method, it is characterised in that including:
    Rectangular image block selecting step:Rectangular image block is chosen centered on the first pixel;
    Similar rectangular image block selecting step:Choose similar rectangular image respectively centered on some pixels beyond the first pixel Block, the distance between two rectangular image blocks are calculated, by some similar rectangular image blocks by distance from closely to remote sequence, and before selection K similar rectangular image blocks;
    Similarity function calculation procedure:Similarity function of the rectangular image block to similar rectangular image block is calculated, it is individual similar to choose K Similarity function is more than the similar rectangular image block of predetermined threshold in rectangular image block.
  2. 2. Confocal Images block similarity measurement method according to claim 1, it is characterised in that the rectangular image block Selecting step includes:Centered on pixel i, r is that radius chooses rectangular image block pi, rectangular image block piIt is interior to include (2r+1) altogether The individual pixels of × (2r+1).
  3. 3. Confocal Images block similarity measurement method according to claim 2, it is characterised in that the similar histogram As block selecting step includes:Centered on some pixel j beyond pixel i, r is that radius chooses similar rectangular image block pj, phase Like rectangular image block pjIt is interior to include the individual pixels of (2r+1) × (2r+1) altogether, the distance between two rectangular image blocks d (i, j) is calculated,
    <mrow> <mi>d</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mrow> <mo>|</mo> <mo>|</mo> <msub> <mi>p</mi> <mi>i</mi> </msub> <mo>-</mo> <msub> <mi>p</mi> <mi>j</mi> </msub> <mo>|</mo> <msubsup> <mo>|</mo> <mn>2</mn> <mn>2</mn> </msubsup> </mrow> <mrow> <mo>(</mo> <mn>2</mn> <mi>r</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>&amp;times;</mo> <mo>(</mo> <mn>2</mn> <mi>r</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mfrac> </mrow>
    By some similar rectangular image blocks by distance from closely to remote sequence, and K similar rectangular image blocks before choosing,
    d(pi,p1) < d (pi,p2) < d (pi,p3) < ... < d (pi,pK)。
  4. 4. Confocal Images block similarity measurement method according to claim 3, it is characterised in that the similarity function Calculation procedure includes:
    Calculate rectangular image block piTo similar rectangular image block pjSimilarity function I (i, j),
    <mrow> <mi>I</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mrow> <msub> <mi>p</mi> <mi>i</mi> </msub> <mo>&amp;CenterDot;</mo> <msub> <mi>p</mi> <mi>j</mi> </msub> </mrow> <mrow> <mo>|</mo> <mo>|</mo> <msub> <mi>p</mi> <mi>i</mi> </msub> <mo>|</mo> <msup> <mo>|</mo> <mn>2</mn> </msup> <mo>&amp;times;</mo> <mo>|</mo> <mo>|</mo> <msub> <mi>p</mi> <mi>j</mi> </msub> <mo>|</mo> <msup> <mo>|</mo> <mn>2</mn> </msup> </mrow> </mfrac> </mrow>
    Given threshold ε, choose the similar histogram for being more than ε in K similar rectangular image blocks to rectangular image block similarity function As block.
  5. A kind of 5. Confocal Images block similarity measurement system, it is characterised in that including:
    Rectangular image block chooses module:Rectangular image block is chosen centered on the first pixel;
    Similar rectangular image block chooses module:Choose similar rectangular image respectively centered on some pixels beyond the first pixel Block, the distance between two rectangular image blocks are calculated, by some similar rectangular image blocks by distance from closely to remote sequence, and before selection K similar rectangular image blocks;
    Similarity function computing module:Similarity function of the rectangular image block to similar rectangular image block is calculated, it is individual similar to choose K Similarity function is more than the similar rectangular image block of predetermined threshold in rectangular image block.
  6. 6. Confocal Images block similarity measurement system according to claim 5, it is characterised in that the rectangular image block Choosing module includes:Centered on pixel i, r is that radius chooses rectangular image block pi, rectangular image block piIt is interior to include (2r+1) altogether The individual pixels of × (2r+1).
  7. 7. Confocal Images block similarity measurement method according to claim 6, it is characterised in that the similar histogram Choosing module as block includes:Centered on some pixel j beyond pixel i, r is that radius chooses similar rectangular image block pj, phase Like rectangular image block pjIt is interior to include the individual pixels of (2r+1) × (2r+1) altogether, the distance between two rectangular image blocks d (i, j) is calculated,
    <mrow> <mi>d</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mrow> <mo>|</mo> <mo>|</mo> <msub> <mi>p</mi> <mi>i</mi> </msub> <mo>-</mo> <msub> <mi>p</mi> <mi>j</mi> </msub> <mo>|</mo> <msubsup> <mo>|</mo> <mn>2</mn> <mn>2</mn> </msubsup> </mrow> <mrow> <mo>(</mo> <mn>2</mn> <mi>r</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> <mo>&amp;times;</mo> <mo>(</mo> <mn>2</mn> <mi>r</mi> <mo>+</mo> <mn>1</mn> <mo>)</mo> </mrow> </mfrac> </mrow>
    By some similar rectangular image blocks by distance from closely to remote sequence, and K similar rectangular image blocks before choosing,
    d(pi,p1) < d (pi,p2) < d (pi,p3) < ... < d (pi,pK)。
  8. 8. Confocal Images block similarity measurement method according to claim 7, it is characterised in that the similarity function Computing module includes:
    Calculate rectangular image block piTo similar rectangular image block pjSimilarity function I (i, j),
    <mrow> <mi>I</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mrow> <msub> <mi>p</mi> <mi>i</mi> </msub> <mo>&amp;CenterDot;</mo> <msub> <mi>p</mi> <mi>j</mi> </msub> </mrow> <mrow> <mo>|</mo> <mo>|</mo> <msub> <mi>p</mi> <mi>i</mi> </msub> <mo>|</mo> <msup> <mo>|</mo> <mn>2</mn> </msup> <mo>&amp;times;</mo> <mo>|</mo> <mo>|</mo> <msub> <mi>p</mi> <mi>j</mi> </msub> <mo>|</mo> <msup> <mo>|</mo> <mn>2</mn> </msup> </mrow> </mfrac> </mrow>
    Given threshold ε, choose the similar histogram for being more than ε in K similar rectangular image blocks to rectangular image block similarity function As block.
CN201710892587.5A 2017-09-27 2017-09-27 A kind of Confocal Images block similarity measurement method and system Pending CN107622488A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710892587.5A CN107622488A (en) 2017-09-27 2017-09-27 A kind of Confocal Images block similarity measurement method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710892587.5A CN107622488A (en) 2017-09-27 2017-09-27 A kind of Confocal Images block similarity measurement method and system

Publications (1)

Publication Number Publication Date
CN107622488A true CN107622488A (en) 2018-01-23

Family

ID=61090868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710892587.5A Pending CN107622488A (en) 2017-09-27 2017-09-27 A kind of Confocal Images block similarity measurement method and system

Country Status (1)

Country Link
CN (1) CN107622488A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108827920A (en) * 2018-03-21 2018-11-16 苏州国科医疗科技发展有限公司 A kind of low Poison bleaching co-focusing imaging method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838864A (en) * 2014-03-20 2014-06-04 北京工业大学 Visual saliency and visual phrase combined image retrieval method
CN103903228A (en) * 2014-03-07 2014-07-02 西安电子科技大学 Non-local image denoising method based on HWD conversion
CN104754183A (en) * 2015-04-10 2015-07-01 四川理工学院 Real-time monitoring video adaptive filtering method and real-time monitoring video adaptive filtering system
CN106204462A (en) * 2015-05-04 2016-12-07 南京邮电大学 Non-local mean denoising method based on image multiple features fusion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103903228A (en) * 2014-03-07 2014-07-02 西安电子科技大学 Non-local image denoising method based on HWD conversion
CN103838864A (en) * 2014-03-20 2014-06-04 北京工业大学 Visual saliency and visual phrase combined image retrieval method
CN104754183A (en) * 2015-04-10 2015-07-01 四川理工学院 Real-time monitoring video adaptive filtering method and real-time monitoring video adaptive filtering system
CN106204462A (en) * 2015-05-04 2016-12-07 南京邮电大学 Non-local mean denoising method based on image multiple features fusion

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
翟东海等: "基于矩阵相似度的最佳样本块匹配算法及其在图像修复中的应用", 《计算机科学》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108827920A (en) * 2018-03-21 2018-11-16 苏州国科医疗科技发展有限公司 A kind of low Poison bleaching co-focusing imaging method and system
CN108827920B (en) * 2018-03-21 2022-05-27 苏州国科医工科技发展(集团)有限公司 Low-fluorescence bleaching confocal imaging method and system

Similar Documents

Publication Publication Date Title
CN108446698B (en) Method, device, medium and electronic equipment for detecting text in image
CN107590522A (en) A kind of method and device of identification code generation and identification
US10395094B2 (en) Method and apparatus for detecting glasses in a face image
JP2021093161A (en) Computer vision system for digitization of industrial equipment gauge and alarm
WO2019196542A1 (en) Image processing method and apparatus
CN113139543B (en) Training method of target object detection model, target object detection method and equipment
CN110675940A (en) Pathological image labeling method and device, computer equipment and storage medium
CN113592886B (en) Drawing examining method and device for building drawing, electronic equipment and medium
CN110619656B (en) Face detection tracking method and device based on binocular camera and electronic equipment
CN106875359B (en) A kind of sample block image repair method based on layering boot policy
CN106919883B (en) QR code positioning method and device
US9996961B2 (en) Method and apparatus for generating a composite image based on an ambient occlusion
CN110458790A (en) A kind of image detecting method, device and computer storage medium
CN112686243A (en) Method and device for intelligently identifying picture characters, computer equipment and storage medium
CN111539238A (en) Two-dimensional code image restoration method and device, computer equipment and storage medium
CN115147403A (en) Method and device for detecting liquid pollutants, electronic equipment and medium
CN107578375A (en) Image processing method and device
CN107622488A (en) A kind of Confocal Images block similarity measurement method and system
CN116486126B (en) Template determination method, device, equipment and storage medium
US20240212239A1 (en) Logo Labeling Method and Device, Update Method and System of Logo Detection Model, and Storage Medium
CN112541436B (en) Concentration analysis method and device, electronic equipment and computer storage medium
CN113012132B (en) Image similarity determination method and device, computing equipment and storage medium
Kwon Single image dehazing based on hidden Markov random field and expectation–maximisation
CN112149463A (en) Image processing method and device
CN113269713B (en) Intelligent recognition method and determination device for tunnel face underground water outlet form

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180123