# US 2025/0095180 A1 · Uniform filter to compensate for global inaccuracies using photometric stereo

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

- Number: US 2025/0095180 A1
- Document ID: US20250095180A1
- Status: Published application
- Kind: A1
- Application number: 18/369,006
- Filed: 2023-09-15
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: UnitX, Inc.
- Applicants: UnitX,Inc.
- Inventors: Tommy Liu; Killian Weber; Roman Balak; Hill Ma
- Web page: https://patentgrep.com/patent/US20250095180A1

## CPC

- G06T 7/586: from multiple light sources, e.g. photometric stereo
- G06T 5/20: using local operators
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/70: Denoising; Smoothing
- G06T 7/0004: {Industrial image inspection}
- G06T 2207/10152: Varying illumination
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20224: Image subtraction
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

In an example embodiment, a uniform filtering technique is applied using photometric stereo to reduce or eliminate global defects in a scanned component. An image is taken of a component using a photometric stereo technique. A uniform filter then, for every point in the component, takes an average of heights of the points near it. This essentially “blurs” the image. The blurring may be repeated multiple times. The blurred image may then be subtracted from the original image, essentially flattening out the image in a manner that reduces or eliminated global inaccuracies. The post-filtered image can then be used for defect detection, with that defect detection being more accurate because of the reduction of the global inaccuracies.

## Claims

### Claim 1

A system comprising:
a camera;
a lighting apparatus including a plurality of independently controllable light sources;
a controller; and
a computer system comprising at least one hardware processor and a non-transitory computer-readable medium storing instructions that, when executed by the at least one hardware processor, cause the at least one hardware processor to perform operations comprising:
using the camera to capture multiple images of a component, each image being lit by a different light source of the plurality of independently controllable light sources;
applying photometric stereo to the multiple images to estimate a surface height of each point along a surface of the component, the surface height being relative to a horizontal line in each of the multiple images, the applying producing a first version of a two-dimensional height map indicating the surface height of each point along the surface of the component;
blurring the first version of the two-dimensional height map using a blurring technique, producing a first blurred version of the two-dimensional height map;
subtracting the first blurred version from the first version of the two-dimensional height map, resulting in a two-dimensional depth map of the surface;
repeating the blurring and subtracting at least once using the depth map, producing a final version of the two-dimensional depth map;
measuring change in depth of a feature of the surface of the component in the final version of the two-dimensional depth map; and
using the change in depth of the feature to determine whether the feature is a defect in the component.

### Claim 2 (depends on 1)

The system of claim 1, wherein the blurring technique is a box blur.

### Claim 3 (depends on 1)

The system of claim 1, wherein the blurring technique is a Gaussian blur.

### Claim 4 (depends on 1)

The system of claim 1, wherein the measuring change in depth and/or the using the change in depth of the feature includes feeding the final version of the two-dimensional height map into a convolutional neural network trained to make a prediction of a classification of surface features.

### Claim 5 (depends on 4)

The system of claim 4, wherein the convolutional neural network is trained by:
accessing a plurality of images from a first image data source, the plurality of images each having n number of color channels; and
training the convolutional neural network using the plurality of images and a plurality of labels, each label corresponding to a classification.

### Claim 6 (depends on 1)

The system of claim 1, wherein the surface is curved.

### Claim 7 (depends on 1)

The system of claim 1, wherein the surface is sloped at an angle greater than or equal to 45 degrees relative to the horizontal line.

### Claim 8

A method comprising:
using a camera to capture multiple images of a component, each image being lit by a different light source of a plurality of independently controllable light sources;
applying photometric stereo to the multiple images to estimate surface height of each point along a surface of the component, relative to a horizontal line in each of the multiple images, the applying producing a first version of a two-dimensional height map indicating the surface height of each point along the surface of the component;
blurring the first version of the two-dimensional height map using a blurring technique, producing a first blurred version of the two-dimensional height map;
subtracting the first blurred version from the first version of the two-dimensional height map, resulting in a two-dimensional depth map of the surface;
repeating the blurring and subtracting at least once using the depth map, producing a final version of the two-dimensional depth map;
measuring change in depth of a feature of the surface of the component in the final version of the two-dimensional depth map; and
using the change in depth of the feature to determine whether the feature is a defect in the component.

### Claim 9 (depends on 8)

The method of claim 8, wherein the blurring technique is a box blur.

### Claim 10 (depends on 8)

The method of claim 8, wherein the blurring technique is a Gaussian blur.

### Claim 11 (depends on 8)

The method of claim 8, wherein the measuring change in depth and/or the using the change in depth of the feature includes feeding the final version of the two-dimensional height map into a convolutional neural network trained to make a prediction of a classification of surface features.

### Claim 12 (depends on 11)

The method of claim 11, wherein the convolutional neural network is trained by:
accessing a plurality of images from a first image data source, the plurality of images each having n number of color channels; and
training the convolutional neural network using the plurality of images and a plurality of labels, each label corresponding to a classification.

### Claim 13 (depends on 8)

The method of claim 8, wherein the surface is curved.

### Claim 14 (depends on 8)

The method of claim 8, wherein the surface is sloped at an angle greater than or equal to 45 degrees relative to the horizontal line.

### Claim 15

A non-transitory machine-readable storage medium having embodied thereon instructions executable by one or more machines to perform operations comprising:
using a camera to capture multiple images of a component, each image being lit by a different light source of a plurality of independently controllable light sources;
applying photometric stereo to the multiple images to estimate surface height of each point along a surface of the component, relative to a horizontal line in each of the multiple images, the applying producing a first version of a two-dimensional height map indicating the surface height of each point along the surface of the component;
blurring the first version of the two-dimensional height map using a blurring technique, producing a first blurred version of the two-dimensional height map;
subtracting the first blurred version from the first version of the two-dimensional height map, resulting in a two-dimensional depth map of the surface;
repeating the blurring and subtracting at least once using the depth map, producing a final version of the two-dimensional depth map;
measuring change in depth of a feature of the surface of the component in the final version of the two-dimensional depth map; and
using the change in depth of the feature to determine whether the feature is a defect in the component.

### Claim 16 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the blurring technique is a box blur.

### Claim 17 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the blurring technique is a Gaussian blur.

### Claim 18 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the measuring change in depth and/or the using the change in depth of the feature includes feeding the final version of the two-dimensional height map into a convolutional neural network trained to make a prediction of a classification of surface features.

### Claim 19 (depends on 18)

The non-transitory machine-readable storage medium of claim 18, wherein the convolutional neural network is trained by:
accessing a plurality of images from a first image data source, the plurality of images each having n number of color channels; and
training the convolutional neural network using the plurality of images and a plurality of labels, each label corresponding to a classification.

### Claim 20 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the surface is curved.
