# US 2022/0284233 A1 · Pixel correspondence via patch-based neighborhood consensus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284233 A1
- Document ID: US20220284233A1
- Status: Published application
- Kind: A1
- Application number: 17/191,516
- Filed: 2021-03-03
- Published: 2022-09-08
- Earliest claimed: 2021-03-03
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Joseph Michael DEGOL; Jae Yong LEE; Sudipta Narayan SINHA; Victor Manuel FRAGOSO ROJAS
- Web page: https://patentgrep.com/patent/US20220284233A1

## CPC

- G06V 10/758: {Involving statistics of pixels or of feature values, e.g. histogram matching}
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06V 10/464: {using a plurality of salient features, e.g. bag-of-words [BoW] representations}
- G06V 10/751: {Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/778: Active pattern-learning, e.g. online learning of image or video features
- G06V 10/82: using neural networks
- G06V 20/70: Labelling scene content, e.g. deriving syntactic or semantic representations
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

One example provides a computing system comprising a storage machine storing instructions executable by a logic machine to extract features from a source and target images to form source and target feature maps, form a correlation map comprising a plurality of similarity scores, form an initial correspondence map comprising initial mappings between pixels of the source feature map and corresponding pixels of the target feature map, refine the initial correspondence map by, for each of one or more pixels of the source feature map, for each of a plurality of candidate correspondences, inputting a four-dimensional patch into a trained scoring function, the trained scoring function being configured to output a correctness score, and selecting a refined correspondence based at least upon the correctness scores, and output a refined correspondence map comprising a refined correspondence for each of the one or more pixels of the source feature map.

## Claims

### Claim 1

A computing system comprising:
a logic machine; and
a storage machine storing instructions executable by the logic machine to:
receive a source image and a target image,
extract features from the source image to form a source feature map comprising source feature map pixels,
extract features from the target image to form a target feature map comprising target feature map pixels,
form a correlation map comprising a plurality of similarity scores for a corresponding plurality of pairs of pixels, each pair of pixels comprising a pixel of the source feature map and a pixel of the target feature map,
based at least on the correlation map, form an initial correspondence map comprising initial mappings between pixels of the source feature map and corresponding pixels of the target feature map,
refine the initial correspondence map by, for each of one or more pixels of the source feature map,
determining a plurality of candidate correspondences comprising the initial mapping and one or more other candidate mappings of the pixel of the source feature map to one or more other corresponding pixels of the target feature map,
for each candidate correspondence, forming a patch comprising the pixel of the source feature map, one or more neighboring pixels of the source feature map, a corresponding pixel of the target feature map, and one or more neighboring pixels of the target feature map,
inputting each patch into a trained scoring function, the trained scoring function being configured to output a correctness score, and
selecting a refined correspondence based at least upon the correctness scores for the plurality of candidate correspondences; and
output a refined correspondence map comprising a refined correspondence for each of the one or more pixels of the source feature map.

### Claim 2 (depends on 1)

The computing system of claim 1, wherein the instructions are executable to extract features to form one or more of the source feature map and the target feature map using a convolutional neural network.

### Claim 3 (depends on 1)

The computing system of claim 1, wherein the instructions are executable to form the correlation map by computing each similarity score as an inner product between a feature vector corresponding to a pixel of the source feature map and a feature vector corresponding to a pixel of the target feature map.

### Claim 4 (depends on 1)

The computing system of claim 1, wherein the instructions to form the initial correspondence map comprise instructions to, for each pixel of the source feature map, map the pixel of the source feature map to a pixel of the target feature map based upon a greatest similarity score for the pixel of the source feature map.

### Claim 5 (depends on 1)

The computing system of claim 1, wherein the instructions are executable to form the patch by cropping the patch from the correlation map.

### Claim 6 (depends on 5)

The computing system of claim 5, wherein each patch is obtained according to:
A
i
⁢
j
⁢
k
⁢
l
=
C
i
-
r
2
:
i
+
r
2
,
j
-
r
2
:
j
+
r
2
,
k
-
r
2
:
k
+
r
2
,
l
-
r
2
:
l
+
r
2
wherein Aijkl is a patch for pixel (i, j) of the source feature map and pixel (k, l) of the target feature map, C is the correlation map, and r is the number of pixels in each dimension of the patch.

### Claim 7 (depends on 1)

The computing system of claim 1, wherein the instructions are executable to further refine the refined correspondence map by, for each of one or more pixels of the source feature map,
determining a plurality of updated candidate correspondences comprising a mapping from the refined correspondence map and one or more other candidate mappings of the pixel of the source feature map to one or more other corresponding pixels of the target feature map,
for each updated candidate correspondence, forming a patch,
inputting each patch into the trained scoring function, and
selecting an updated correspondence based at least upon the correctness scores for the plurality of candidate correspondences; and
output a further refined correspondence map comprising an updated correspondence for each of the one or more pixels of the source feature map.

### Claim 8 (depends on 1)

The computing system of claim 1, wherein the trained scoring function comprises a neural network comprising one or more convolutions and one or more ReLU layers.

### Claim 9

A method of creating a refined correspondence map between a source image and a target image, the method comprising:
extracting features from the source image to form a source feature map;
extracting features from the target image to form a target feature map;
forming a correlation map comprising a plurality of similarity score for a corresponding plurality of pairs of pixels, each pair of pixels comprising a pixel of the source feature map and a pixel of the target feature map;
based at least on the correlation map, forming an initial correspondence map comprising an initial mapping of pixels of the source feature map to pixels of the target feature map;
refining the initial correspondence map by, for each of one or more pixels of the source feature map,
determining a plurality of candidate correspondences comprising the initial mapping and one or more other candidate mappings of the pixel of the source feature map to one or more other corresponding pixels of the target feature map,
for each candidate correspondence, forming a patch comprising the pixel of the source feature map, one or more neighboring pixels of the source feature map, a corresponding pixel of the target feature map, and one or more neighboring pixels of the target feature map,
inputting each patch into a trained scoring function, the trained scoring function being configured to output a correctness score, and
selecting a refined correspondence based at least upon the correctness scores for the plurality of candidate correspondences; and
outputting the refined correspondence map comprising a refined correspondence for each of the one or more pixels of the source feature map.

### Claim 10 (depends on 9)

The method of claim 9, wherein forming the correlation map comprises computing each similarity score as an inner product between a feature vector corresponding to a pixel of the source feature map and a feature vector corresponding to a pixel of the target feature map.

### Claim 11 (depends on 9)

The method of claim 9, wherein forming the initial correspondence map comprises, for each pixel of the source feature map, mapping the pixel of the source feature map to a pixel of the target feature map based upon a greatest similarity score for the pixel of the source feature map.

### Claim 12 (depends on 9)

The method of claim 9, wherein forming the patch comprises cropping the patch from the correlation map according to:
A
i
⁢
j
⁢
k
⁢
l
=
C
i
-
r
2
:
i
+
r
2
,
j
-
r
2
:
j
+
r
2
,
k
-
r
2
:
k
+
r
2
,
l
-
r
2
:
l
+
r
2
wherein Aijkl is a patch for pixel (i, j) of the source feature map and pixel (k, l) of the target feature map, C is the correlation map, and r is the number of pixels in each dimension of the patch.

### Claim 13 (depends on 9)

The method of claim 9, further comprising:
refining the refined correspondence map by, for each of one or more pixels of the source feature map,
determining a plurality of updated candidate correspondences comprising a mapping from the refined correspondence map and one or more other candidate mappings of the pixel of the source feature map to one or more other corresponding pixels of the target feature map,
for each updated candidate correspondence, forming a patch,
inputting each patch into the trained scoring function, and
selecting an updated correspondence based at least upon the correctness scores for the plurality of candidate correspondences; and
outputting a further refined correspondence map comprising an updated correspondence for each of the one or more pixels of the source feature map.

### Claim 14

A computing system comprising:
a logic machine; and
a storage machine storing instructions executable by the logic machine to train a scoring function and a feature extractor for use in a non-differentiable model by:
receiving an image pair comprising a source image and a target image, the image pair further comprising a plurality of keypoint annotations, each keypoint annotation comprising a ground truth correspondence that maps a feature map pixel of the source image to a feature map pixel of the target image,
extracting, via the feature extractor, features from the source image to form a source feature map comprising source feature map pixels,
extracting, via the feature extractor, features from the target image to form a target feature map comprising target feature map pixels;
forming a correlation map comprising a plurality of similarity scores for a corresponding plurality of pairs of pixels, each pair of pixels comprising a pixel of the source feature map and a pixel of the target feature map,
for each keypoint annotation of the plurality of keypoint annotations:
for each candidate pixel of a plurality of candidate pixels of the target feature map, obtain a matching score by inputting a patch into the scoring function, the patch comprising a mapping of a source feature map pixel associated with the keypoint annotation to the candidate pixel,
based on the matching score for the plurality of candidate pixels, form a matching score map,
based on the matching score map, determine a predicted probability map by using a differentiable operation,
based on the ground truth correspondence associated with the keypoint annotation, determine a ground truth probability map,
determine an annotation error by comparing the predicted probability map to the ground truth probability map,
train the scoring function based at least upon an optimization of the annotation error for each source keypoint annotation to form a trained scoring function, and
use the trained scoring function in the non-differentiable model.

### Claim 15 (depends on 14)

The computing system of claim 14, wherein the differentiable operation comprises a soft-max operation.

### Claim 16 (depends on 14)

The computing system of claim 14, wherein the instructions are executable to determine the annotation error by computing a loss sum as a cross entropy loss for each source keypoint annotation:
ℒ
=
∑
i
H
⁡
(
P
i
,
P
ˆ
i
)
wherein Pi comprises the ground truth probability map for source keypoint annotation i, {circumflex over (P)}i comprises the predicted probability map for keypoint annotation i, and H(⋅) comprises a cross entropy loss function, and train the scoring function based at least upon a minimization of .

### Claim 17 (depends on 16)

The computing system of claim 16, wherein the instructions executable to train the scoring function comprise instructions executable to minimize over the parameters of the scoring function and the feature extractor using backpropagation.

### Claim 18 (depends on 14)

The computing system of claim 14, wherein the trained scoring function comprises a neural network comprising one or more convolutions and one or more ReLU layers.

### Claim 19 (depends on 14)

The computing system of claim 14, wherein the ground truth probability map comprises a Gaussian distribution centered at a ground truth target feature map pixel corresponding to the keypoint annotation.

### Claim 20 (depends on 14)

The computing system of claim 14, wherein the instructions are further executable to input a correlation patch into the trained scoring function to obtain a predicted correlation score.
