# US 2011/0234765 A1 · Image processing apparatus, image processing method, image processing program, and compound eye digital camera

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

- Number: US 2011/0234765 A1
- Document ID: US20110234765A1
- Status: Published application
- Kind: A1
- Application number: 13/040,944
- Filed: 2011-03-04
- Published: 2011-09-29
- Earliest claimed: 2010-03-24
- Assignees: FUJIFILM Corporation
- Inventors: Koichi TANAKA
- Web page: https://patentgrep.com/patent/US20110234765A1

## CPC

- G06T 5/77: Retouching; Inpainting; Scratch removal
- H04N 13/122: Improving the three-dimensional [3D] impression of stereoscopic images by modifying image signal contents, e.g. by filtering or adding monoscopic depth cues (H04N13/128 takes precedence)
- H04N 13/128: Adjusting depth or disparity
- H04N 13/239: using two two-dimensional [2D] image sensors having a relative position equal to or related to the interocular distance (H04N13/243 takes precedence)
- H04N 13/257: Colour aspects
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A parallax map is generated by corresponding left and right images with each other through stereo matching based on the left image. An attention pixel is set on the parallax map, and a window of a predetermined size centering on a pixel (left image attention pixel) on the left image corresponding to the attention pixel is set in the left image. Pixels having an RGB value similar to the RGB value of the left image attention pixel from among the pixels in the window are extracted, and the parallax of a pixel on the parallax map corresponding to each extracted pixel is entered into a parallax histogram to generate a parallax histogram. When the frequency of the attention pixel is smaller than a predetermined value, the parallax of the attention pixel is corrected with a parallax having the maximum frequency value of the parallax histogram.

## Claims

### Claim 1

An image processing apparatus comprising:
an acquisition unit which acquires a plurality of images captured from two or more different viewpoints;
a parallax map generation unit for generating a parallax map in which a parallax represented by a difference between the pixel positions of corresponding pixels of a first image from among a plurality of images acquired by the acquisition unit and a second image captured from a viewpoint different from the first image corresponds with the pixel position of the first image;
a histogram generation unit which, from among the pixels of the first image corresponding to an attention pixel of the parallax map generated by the parallax map generation unit and peripheral pixels in the periphery of the attention pixel, extracts pixels having a difference in color information from color information of a pixel corresponding to the attention pixel of the parallax map, the difference being within a predetermined range and generates a parallax histogram on the basis of the parallax of each pixel of the parallax map corresponding to each extracted pixel; and
a correction unit which corrects the parallax of the attention pixel as a correction target on the basis of the parallax histogram generated by the histogram generation unit.

### Claim 2 (depends on 1)

The image processing apparatus according to claim 1,
wherein the histogram generation unit extracts a connection region which includes a pixel of the first image corresponding to an attention pixel of the parallax map generated by the parallax map generation unit and in which adjacent pixels having a difference in color information from color information of a pixel corresponding to the attention pixel of the parallax map within a predetermined range are connected, and generates a parallax histogram on the basis of the parallax of each pixel in the region of the parallax map corresponding to the extracted connection region.

### Claim 3 (depends on 2)

The image processing apparatus according to claim 2,
wherein, when the number of pixels in the connection region is equal to or greater than a predetermined number, the histogram generation unit generates the parallax histogram.

### Claim 4 (depends on 2)

The image processing apparatus according to claim 2,
wherein the correction unit corrects the parallax of each pixel in the region of the parallax map corresponding to the connection region.

### Claim 5 (depends on 1)

The image processing apparatus according to claim 1,
wherein, when the frequency of the parallax of the attention pixel is smaller than a predefined frequency threshold value, the correction unit sets the attention pixel as a correction target on the basis of the parallax histogram.

### Claim 6 (depends on 1)

The image processing apparatus according to claim 1,
wherein the correction unit corrects the parallax of each correction-target pixel to a parallax having the maximum frequency value of the parallax histogram.

### Claim 7 (depends on 1)

The image processing apparatus according to claim 1, further comprising:
a determination unit which selects a parallax having a frequency equal to or greater than a predefined selection threshold value as a temporary correction parallax on the basis of the parallax histogram and determines whether or not to correct the parallax of a correction-target pixel with the temporary correction parallax on the basis of color information of a pixel of the second image corresponding to the attention pixel and the attention pixel obtained on the basis of the selected temporary correction parallax,
wherein the correction unit corrects the parallax of the correction-target pixel on the basis of the parallax histogram and the determination result of the determination unit.

### Claim 8 (depends on 1)

The image processing apparatus according to claim 1,
wherein the correction unit extracts, from the parallax map, a parallax connection region which includes the attention pixel and in which adjacent pixels having a difference in parallax from the parallax of the attention pixel within a predetermined range, and when the number of pixels in the extracted parallax connection region is smaller than a predetermined number, corrects the parallax of each pixel in the parallax connection region on the basis of the parallax histogram.

### Claim 9 (depends on 2)

The image processing apparatus according to claim 2,
wherein the histogram generation unit extracts a connection region which includes a pixel of the first image corresponding to an attention pixel of the parallax map generated by the parallax map generation unit and in which adjacent pixels having a difference in color information from color information of a pixel corresponding to the attention pixel of the parallax map within a predetermined range are connected, and when a contour is in the region of the parallax map corresponding to the extracted connection region, generates a parallax histogram on the basis of the parallax of each pixel in the region of the parallax map corresponding to the extracted connection region.

### Claim 10 (depends on 1)

The image processing apparatus according to claim 1,
wherein the color information of the pixel includes the brightness value of the pixel.

### Claim 11

An image processing method comprising the steps of:
acquiring a plurality of images captured from two or more different viewpoints;
generating a parallax map in which a parallax represented by a difference between the pixel positions of corresponding pixels of a first image from among a plurality of acquired images and a second image captured from a viewpoint different from the first image corresponds with the pixel position of the first image;
from among the pixels of the first image corresponding to an attention pixel of the generated parallax map and peripheral pixels in the periphery of the attention pixel, extracting pixels having a difference in color information from color information of a pixel corresponding to the attention pixel of the parallax map within a predetermined range;
generating the parallax histogram on the basis of the parallax of each pixel of the parallax map corresponding to each extracted pixel; and
correcting the parallax of the attention pixel as a correction target on the basis of the generated parallax histogram.

### Claim 12 (depends on 11)

The image processing method according to claim 11,
wherein, in the step of generating the histogram, a connection region is extracted which includes a pixel of the first image corresponding to the attention pixel of the generated parallax map and in which adjacent pixels having a difference in color information from color information of a pixel corresponding to the attention pixel of the parallax map within a predetermined range are connected.

### Claim 13

An image processing program which causes a computer to function as:
an acquisition unit which acquires a plurality of images captured from two or more different viewpoints;
a parallax map generation unit for generating a parallax map in which a parallax represented by a difference between the pixel positions of corresponding pixels of a first image from among a plurality of images acquired by the acquisition unit and a second image captured from a viewpoint different from the first image corresponds with the pixel position of the first image;
a histogram generation unit which, from among the pixels of the first image corresponding to an attention pixel of the parallax map generated by the parallax map generation unit and peripheral pixels in the periphery of the attention pixel, extracts pixels having a difference in color information from color information of a pixel corresponding to the attention pixel of the parallax map within a predetermined range and generates a parallax histogram on the basis of the parallax of each pixel of the parallax map corresponding to each extracted pixel; and
a correction unit which corrects the parallax of the attention pixel as a correction target on the basis of the parallax histogram generated by the histogram generation unit.

### Claim 14 (depends on 13)

The image processing program according to claim 13,
wherein the histogram generation unit extracts a connection region which includes a pixel of the first image corresponding to an attention pixel of the parallax map generated by the parallax map generation unit and in which adjacent pixels having a difference in color information from color information of a pixel corresponding to the attention pixel of the parallax map within a predetermined range are connected, and generates a parallax histogram on the basis of the parallax of each pixel in the region of the parallax map corresponding to the extracted connection region.

### Claim 15 (depends on 1)

A multi-eye digital camera comprising:
the image processing apparatus according to claim 1; and
a display unit which displays an image in stereoscopic view on the basis of a parallax map generated and corrected by the image processing apparatus.
