# US 2004/0081335 A1 · Image processing device and method, and imager

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

- Number: US 2004/0081335 A1
- Document ID: US20040081335A1
- Status: Published application
- Kind: A1
- Application number: 10/362,141
- Filed: 2003-10-03
- Published: 2004-04-29
- Earliest claimed: 2001-06-20
- Assignees: Sony Corporation
- Inventors: Tetsujiro Kondo; Junichi Ishibashi; Takashi Sawao; Takahiro Nagano; Naoki Fujiwara; Toru Miyake; Seiji Wada
- Web page: https://patentgrep.com/patent/US20040081335A1

## CPC

- H04N 5/272: Means for inserting a foreground image in a background image, i.e. inlay, outlay
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/70: Denoising; Smoothing
- G06T 5/73: Deblurring; Sharpening
- G06T 7/194: involving foreground-background segmentation
- G06T 7/254: involving subtraction of images
- G06T 2207/20201: Motion blur correction
- H04N 5/145: {Movement estimation (for video coding H04N19/51)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An object of the present invention is to make it possible to detect an area in which mixture occurs. An object extracting unit 251 extracts a foreground object from an input image to generate an area-specified object which is formed of a foreground image object and a value indicating that the object belongs to a background area. A motion compensator 252 compensates for the motion of the area-specified object based on the supplied motion vector and positional information thereof. A subtracting unit 254 subtracts the pixel value of a pixel belonging to a foreground area of the area-specified object in frame #n−1 supplied from frame memory 253 from the pixel value of a pixel belonging to a foreground area of the area-specified object in frame #n supplied from the object extracting unit 251, in which the pixels are at the corresponding position, so as to obtain a frame difference between the pixels belonging to the foreground area. A threshold-value processor 255 detects a mixed area based on the difference. The present invention is applicable to a signal processing apparatus for processing an image.

## Claims

### Claim 1

An image processing apparatus for detecting a mixed area from image data which is formed of a predetermined number of pieces of pixel data obtained by an image-capturing device including a predetermined number of pixels, the pixels having a time integrating function, the mixed area being obtained as the pixel data in which a plurality of objects are mixed in the real world, said image processing apparatus comprising:
motion compensation means for compensating for the motion of frames of the image data; and
area detection means for detecting the mixed area based on the difference between the pixel data at the corresponding position in the motion-compensated frames.

### Claim 2 (depends on 1)

An image processing apparatus according to claim 1, wherein said area detection means detects the mixed area to which at least the pixel data belongs when the difference is greater than or equal to a threshold.

### Claim 3 (depends on 2)

An image processing apparatus according to claim 2, wherein said area detection means further detects, based on temporal change of the detected mixed area, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time.

### Claim 4 (depends on 2)

An image processing apparatus according to claim 2, wherein said area detection means further detects, based on a motion vector corresponding to the pixel data in each of the frames, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time.

### Claim 5 (depends on 4)

An image processing apparatus according to claim 4, further comprising motion vector detection means for detecting the motion vector.

### Claim 6 (depends on 1)

An image processing apparatus according to claim 1, further comprising mixture-ratio calculation means for calculating a mixture ratio indicating the state in which the objects are mixed in the pixel data.

### Claim 7 (depends on 6)

An image processing apparatus according to claim 6, further comprising separation means for separating at least a foreground object component of the objects corresponding to a foreground from the pixel data of the mixed area based on the mixture ratio.

### Claim 8 (depends on 7)

An image processing apparatus according to claim 7, further comprising motion-blur adjusting means for adjusting the amount of motion blur in the separated foreground object component.

### Claim 9 (depends on 7)

An image processing apparatus according to claim 7, further comprising synthesizing means for synthesizing another desired object with the separated foreground object component based on the mixture ratio.

### Claim 10 (depends on 1)

An image processing apparatus according to claim 1, wherein said motion compensation means performs motion compensation by shifting a peripheral frame around a designated frame so that a background object of the plurality of objects in the designated frame is disposed at the same pixel position as the background object in the peripheral frame; and
said area detection means detects at least the mixed area based on the difference between the motion-compensated peripheral frame and the designated frame.

### Claim 11 (depends on 10)

An image processing apparatus according to claim 10, wherein said area detection means includes stationary/moving determination means for performing a stationary or moving determination based on the difference between the pixel data at the corresponding pixel position in the motion-compensated peripheral frame and the designated frame; and
said area detection means detects, based on the determination of said stationary/moving determination means, in which of a foreground area formed of only a foreground object component forming the foreground object in the plurality of objects, a background area formed of only a background object component forming the background object, or the mixed area the pixel position is.

### Claim 12 (depends on 11)

An image processing apparatus according to claim 11, wherein said area detection means specifies an uncovered background area and a covered background area in the mixed area based on the determination of said stationary/moving determination means, the uncovered background area being formed at the trailing end in the direction in which the foreground object is moving, the covered background area being formed at the leading end in the direction in which the foreground object is moving.

### Claim 13

An image processing method for detecting a mixed area from image data which is formed of a predetermined number of pieces of pixel data obtained by an image-capturing device including a predetermined number of pixels, the pixels having a time integrating function, the mixed area being obtained as the pixel data in which a plurality of objects are mixed in the real world, said image processing method comprising:
a motion compensating step of compensating for the motion of frames of the image data; and
an area detecting step of detecting the mixed area based on the difference between the pixel data at the corresponding position in the motion-compensated frames.

### Claim 14 (depends on 13)

An image processing method according to claim 13, wherein, in said area detecting step, the mixed area to which at least the pixel data belongs is detected when the difference is greater than or equal to a threshold.

### Claim 15 (depends on 14)

An image processing method according to claim 14, wherein, in said area detecting step, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time are further detected based on temporal change of the detected mixed area.

### Claim 16 (depends on 14)

An image processing method according to claim 14, wherein, in said area detecting step, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time are further detected based on a motion vector corresponding to the pixel data in each of the frames.

### Claim 17 (depends on 16)

An image processing method according to claim 16, further comprising a motion vector detecting step of detecting the motion vector.

### Claim 18 (depends on 13)

An image processing method according to claim 13, further comprising a mixture-ratio calculating step of calculating a mixture ratio indicating the state in which the objects are mixed in the pixel data.

### Claim 19 (depends on 18)

An image processing method according to claim 18, further comprising a separating step of separating at least a foreground object component of the objects corresponding to a foreground from the pixel data of the mixed area based on the mixture ratio.

### Claim 20 (depends on 19)

An image processing method according to claim 19, further comprising a motion-blur adjusting step of adjusting the amount of motion blur in the separated foreground object component.

### Claim 21 (depends on 19)

An image processing method according to claim 19, further comprising a synthesizing step of synthesizing another desired object with the separated foreground object component based on the mixture ratio.

### Claim 22 (depends on 13)

An image processing method according to claim 13, wherein, in said motion compensating step, motion compensation is performed by shifting a peripheral frame around a designated frame so that a background object of the plurality of objects in the designated frame is disposed at the same pixel position as the background object in the peripheral frame; and
in said area detecting step, at least the mixed area is detected based on the difference between the motion-compensated peripheral frame and the designated frame.

### Claim 23 (depends on 22)

An image processing method according to claim 22, wherein said area detecting step includes a stationary/moving determining step of performing a stationary or moving determination based on the difference between the pixel data at the corresponding pixel position in the motion-compensated peripheral frame and the designated frame; and
in said area detecting step, it is detected based on the determination of said stationary/moving determination means in which of a foreground area formed of only a foreground object component forming the foreground object in the plurality of objects, a background area formed of only a background object component forming the background object, or the mixed area the pixel position is.

### Claim 24 (depends on 23)

An image processing method according to claim 23, wherein, in said area detecting step, an uncovered background area and a covered background area in the mixed area are specified based on the determination of said stationary/moving determination means, the uncovered background area being formed at the trailing end in the direction in which the foreground object is moving, the covered background area being formed at the leading end in the direction in which the foreground object is moving.

### Claim 25

A recording medium having a computer-readable program for image processing recorded therein, the program being adapted to detect a mixed area from image data which is formed of a predetermined number of pieces of pixel data obtained by an image-capturing device including a predetermined number of pixels, the pixels having a time integrating function, the mixed area being obtained as the pixel data in which a plurality of objects are mixed in the real world, the program comprising:
a motion compensating step of compensating for the motion of frames of the image data; and
an area detecting step of detecting the mixed area based on the difference between the pixel data at the corresponding position in the motion-compensated frames.

### Claim 26 (depends on 25)

A recording medium according to claim 25, wherein, in said area detecting step, the mixed area to which at least the pixel data belongs is detected when the difference is greater than or equal to a threshold.

### Claim 27 (depends on 26)

A recording medium according to claim 26, wherein, in said area detecting step, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time are further detected based on temporal change of the detected mixed area.

### Claim 28 (depends on 26)

A recording medium according to claim 26, wherein, in said area detecting step, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time are further detected based on a motion vector corresponding to the pixel data in each of the frames.

### Claim 29 (depends on 28)

A recording medium according to claim 28, wherein the program further comprises a motion vector detecting step of detecting the motion vector.

### Claim 30 (depends on 25)

A recording medium according to claim 25, wherein the program further comprises a mixture-ratio calculating step of calculating a mixture ratio indicating the state in which the objects are mixed in the pixel data.

### Claim 31 (depends on 30)

A recording medium according to claim 30, wherein the program further comprises a separating step of separating at least a foreground object component of the objects corresponding to a foreground from the pixel data of the mixed area based on the mixture ratio.

### Claim 32 (depends on 31)

A recording medium according to claim 31, wherein the program further comprises a motion-blur adjusting step of adjusting the amount of motion blur in the separated foreground object component.

### Claim 33 (depends on 31)

A recording medium according to claim 31, wherein the program further comprises a synthesizing step of synthesizing another desired object with the separated foreground object component based on the mixture ratio.

### Claim 34 (depends on 25)

A recording medium according to claim 25, wherein, in said motion compensating step, motion compensation is performed by shifting a peripheral frame around a designated frame so that a background object in the designated frame is disposed at the same pixel position as the background object in the peripheral frame; and
in said area detecting step, at least the mixed area is detected based on the difference between the motion-compensated peripheral frame and the designated frame.

### Claim 35 (depends on 34)

A recording medium according to claim 34, wherein said area detecting step includes a stationary/moving determining step of performing a stationary or moving determination based on the difference between the pixel data at the corresponding pixel position in the motion-compensated peripheral frame and the designated frame; and
in said area detecting step, it is detected based on the determination of said stationary/moving determination means in which of a foreground area formed of only a foreground object component forming the foreground object in the plurality of objects, a background area formed of only a background object component forming the background object, or the mixed area the pixel position is.

### Claim 36 (depends on 35)

A recording medium according to claim 35, wherein, in said area detecting step, an uncovered background area and a covered background area in the mixed area are specified based on the determination of said stationary/moving determination means, the uncovered background area being formed at the trailing end in the direction in which the foreground object is moving, the covered background area being formed at the leading end in the direction in which the foreground object is moving.

### Claim 37

A program which causes a computer to execute the following steps, the computer being adapted to detect a mixed area from image data which is formed of a predetermined number of pieces of pixel data obtained by an image-capturing device including a predetermined number of pixels, the pixels having a time integrating function, the mixed area being obtained as the pixel data in which a plurality of objects are mixed in the real world:
a motion compensating step of compensating for the motion of frames of the image data; and
an area detecting step of detecting the mixed area based on the difference between the pixel data at the corresponding position in the motion-compensated frames.

### Claim 38 (depends on 37)

A program according to claim 37, wherein, in said area detecting step, the mixed area to which at least the pixel data belongs is detected when the difference is greater than or equal to a threshold.

### Claim 39 (depends on 38)

A program according to claim 38, wherein, in said area detecting step, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time are further detected based on temporal change of the detected mixed area.

### Claim 40 (depends on 38)

A program according to claim 38, wherein, in said area detecting step, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time are further detected based on a motion vector corresponding to the pixel data in each of the frames.

### Claim 41 (depends on 40)

A program according to claim 40, further comprising a motion vector detecting step of detecting the motion vector.

### Claim 42 (depends on 37)

A program according to claim 37, further comprising a mixture-ratio calculating step of calculating a mixture ratio indicating the state in which the objects are mixed in the pixel data.

### Claim 43 (depends on 42)

A program according to claim 42, further comprising a separating step of separating at least a foreground object component of the objects corresponding to a foreground from the pixel data of the mixed area based on the mixture ratio.

### Claim 44 (depends on 43)

A program according to claim 43, further comprising a motion-blur adjusting step of adjusting the amount of motion blur in the separated foreground object component.

### Claim 45 (depends on 43)

A program according to claim 43, further comprising a synthesizing step of synthesizing another desired object with the separated foreground object component based on the mixture ratio.

### Claim 46 (depends on 37)

A program according to claim 37, wherein, in said motion compensating step, motion compensation is performed by shifting a peripheral frame around a designated frame so that a background object of the plurality of objects in the designated frame is disposed at the same pixel position as the background object in the peripheral frame; and
in said area detecting step, at least the mixed area is detected based on the difference between the motion-compensated peripheral frame and the designated frame.

### Claim 47 (depends on 46)

A program according to claim 46, wherein said area detecting step includes a stationary/moving determining step of performing a stationary or moving determination based on the difference between the pixel data at the corresponding pixel position in the motion-compensated peripheral frame and the designated frame; and
in said area detecting step, it is detected based on the determination of said stationary/moving determination means in which of a foreground area formed of only a foreground object component forming the foreground object in the plurality of objects, a background area formed of only a background object component forming the background object, or the mixed area the pixel position is.

### Claim 48 (depends on 47)

A program according to claim 47, wherein, in said area detecting step, an uncovered background area and a covered background area in the mixed area are specified based on the determination of said stationary/moving determination means, the uncovered background area being formed at the trailing end in the direction in which the foreground object is moving, the covered background area being formed at the leading end in the direction in which the foreground object is moving.

### Claim 49

An image-capturing apparatus comprising:
image-capturing means for outputting a subject image captured by an image-capturing device including a predetermined number of pixels as image data consisting of a predetermined number of pieces of pixel data, the pixels having a time integrating function;
motion compensation means for compensating for the motion of frames of the image data; and
area detection means for detecting from the image data a mixed area as the pixel data in which a plurality of objects are mixed in the real world based on the difference between the pixel data at the corresponding position in the motion-compensated frames.

### Claim 50 (depends on 49)

An image-capturing apparatus according to claim 49, wherein said area detection means detects the mixed area to which at least the pixel data belongs when the difference is greater than or equal to a threshold.

### Claim 51 (depends on 50)

An image-capturing apparatus according to claim 50, wherein said area detection means further detects, based on temporal change of the detected mixed area, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time.

### Claim 52 (depends on 50)

An image-capturing apparatus according to claim 50, wherein said area detection means further detects, based on a motion vector corresponding to the pixel data in each of the frames, a covered background area in which a foreground object component of the objects corresponding to a foreground increases over time and an uncovered background area in which a background object component of the objects corresponding to a background increases over time.

### Claim 53 (depends on 52)

An image-capturing apparatus according to claim 52, further comprising motion vector detection means for detecting the motion vector.

### Claim 54 (depends on 49)

An image-capturing apparatus according to claim 49, further comprising mixture-ratio calculation means for calculating a mixture ratio indicating the state in which the objects are mixed in the pixel data.

### Claim 55 (depends on 54)

An image-capturing apparatus according to claim 54, further comprising separation means for separating at least a foreground object component of the objects corresponding to a foreground from the pixel data of the mixed area based on the mixture ratio.

### Claim 56 (depends on 55)

An image-capturing apparatus according to claim 55, further comprising motion-blur adjusting means for adjusting the amount of motion blur in the separated foreground object component.

### Claim 57 (depends on 55)

An image-capturing apparatus according to claim 55, further comprising synthesizing means for synthesizing another desired object with the separated foreground object component based on the mixture ratio.

### Claim 58 (depends on 49)

An image-capturing apparatus according to claim 49, wherein said motion compensation means performs motion compensation by shifting a peripheral frame around a designated frame so that a background object of the plurality of objects in the designated frame is disposed at the same pixel position as the background object in the peripheral frame; and
said area detection means detects at least the mixed area based on the difference between the motion-compensated peripheral frame and the designated frame.

### Claim 59 (depends on 58)

An image-capturing apparatus according to claim 58, wherein said area detection means includes stationary/moving determination means for performing a stationary or moving determination based on the difference between the pixel data at the corresponding pixel position in the motion-compensated peripheral frame and the designated frame; and
said area detection means detects, based on the determination of said stationary/moving determination means, in which of a foreground area formed of only a foreground object component forming the foreground object in the plurality of objects, a background area formed of only a background object component forming the background object, or the mixed area the pixel position is.

### Claim 60 (depends on 59)

An image-capturing apparatus according to claim 59, wherein said area detection means specifies an uncovered background area and a covered background area in the mixed area based on the determination of said stationary/moving determination means, the uncovered background area being formed at the trailing end in the direction in which the foreground object is moving, the covered background area being formed at the leading end in the direction in which the foreground object is moving.
