WO2003001452A1 - Dispositif et procede de traitement d'images, et imageur - Google Patents

Dispositif et procede de traitement d'images, et imageur Download PDF

Info

Publication number
WO2003001452A1
WO2003001452A1 PCT/JP2002/006088 JP0206088W WO03001452A1 WO 2003001452 A1 WO2003001452 A1 WO 2003001452A1 JP 0206088 W JP0206088 W JP 0206088W WO 03001452 A1 WO03001452 A1 WO 03001452A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
pixel
foreground
frame
background
Prior art date
Application number
PCT/JP2002/006088
Other languages
English (en)
French (fr)
Inventor
Tetsujiro Kondo
Junichi Ishibashi
Takashi Sawao
Takahiro Nagano
Naoki Fujiwara
Toru Miyake
Seiji Wada
Original Assignee
Sony Corporation
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 Sony Corporation filed Critical Sony Corporation
Priority to KR1020037002425A priority Critical patent/KR100864338B1/ko
Priority to EP02738760A priority patent/EP1408451B1/en
Priority to US10/362,141 priority patent/US7612909B2/en
Priority to CA2419670A priority patent/CA2419670C/en
Publication of WO2003001452A1 publication Critical patent/WO2003001452A1/ja

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/272Means for inserting a foreground image in a background image, i.e. inlay, outlay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • G06T7/254Analysis of motion involving subtraction of images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20201Motion blur correction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/144Movement detection
    • H04N5/145Movement estimation

Definitions

  • Image processing apparatus and method and imaging apparatus
  • the present invention relates to an image processing apparatus and method, and an imaging apparatus, and more particularly, to an image processing apparatus and method in which a difference between a signal detected by a sensor and the real world is taken into consideration, and an imaging apparatus.
  • motion blur occurs when the moving speed of the object is relatively high.
  • the present invention has been made in view of such a situation, and an object of the present invention is to be able to detect an area where mixing occurs.
  • An image processing apparatus detects a mixed region based on a motion compensation means for motion-compensating each frame of image data and a difference between pixel data at positions corresponding to each other in each of the motion-compensated frames. Region detecting means.
  • the area detection means can detect at least a mixed area to which the pixel data belongs.
  • the area detecting means is based on the detected temporal change of the mixed area, and includes a force bird background area in which the foreground object component increases with time and a background object with time change. It is possible to further detect an uncovered background region where the component increases.
  • the area detection means is based on a motion vector corresponding to the pixel data of each frame, and includes a covered background area in which the component of the object serving as the foreground increases with time, and a component of the object serving as the background with time.
  • the image processing apparatus capable of further detecting the increased covered background area can further include a motion vector detection unit that detects a motion vector.
  • the image processing apparatus may further include a mixing ratio calculating unit that calculates a mixing ratio indicating a mixing state in the pixel data of the smart object.
  • the image processing apparatus may further include a separating unit that separates at least a foreground object component from the pixel data of the mixed area based on the mixing ratio.
  • the image processing apparatus may further include a motion blur adjusting unit that adjusts the amount of motion blur of the component of the separated foreground object.
  • the image processing apparatus may further include a synthesizing means for synthesizing another desired object and a component of the separated foreground object based on the mixture ratio.
  • the motion compensation unit shifts the peripheral frame so that the pixel position of the background object of the plurality of objects of the target frame of interest and the background object of the peripheral frame around the target frame is the same. By doing so, the motion can be compensated, and the area detection means can detect at least the mixed area based on the difference between the motion-compensated peripheral frame and the frame of interest.
  • the area detecting means further includes a static / moving determining means for performing a static / moving determination based on a difference between pixel data at pixel positions corresponding to the motion-compensated peripheral frame and the frame of interest.
  • a foreground object that constitutes a foreground object of a plurality of objects with respect to a pixel position based on the determination result of the still / moving determination means.
  • Foreground regions consisting only of components, background regions consisting only of background object components constituting background objects, or mixed regions can be detected.
  • the area detecting means specifies an uncovered background area formed on the rear end side in the moving direction of the foreground object in the mixed area based on the determination result of the still / moving determining means, and The covered background area to be formed can be specified.
  • a motion compensation step for motion-compensating each frame of image data, and a region for detecting a mixed region based on a difference between pixel data at positions corresponding to each other in each of the motion-compensated frames.
  • a detecting step In the area detecting step, when the difference is equal to or larger than the threshold, at least a mixed area to which the pixel data belongs can be detected.
  • An anchor pad background area can be further detected.
  • the area detection step is based on the motion vector corresponding to the pixel data of each frame. Based on the motion vector, the covered background area in which the foreground object component increases with time and the background object with time changes. The uncovered background region where the component increases can be further detected.
  • the image processing method may further include a motion vector detection step of detecting a motion vector.
  • the image processing method may further include a mixing ratio calculating step of calculating a mixing ratio indicating a mixing state in the pixel data of the object.
  • the image processing method may further include a separation step of separating at least a foreground object component from the pixel data of the mixed area based on the mixture ratio.
  • the image processing method calculates the amount of motion blur of the component of the separated foreground object.
  • a motion blur adjusting step for adjusting may be further provided.
  • Image processing method based on the mixing ratio, and c motion compensation step can be provided a composite step of combining the components of the desired other objects and separated foreground become object, attention has focused
  • the motion detection is performed by shifting the peripheral frame so that the pixel position of the background object of the plurality of objects of the frame is the same as the pixel position of the background object of the peripheral frame around the target frame. At least the mixed area can be detected based on the difference between the motion-compensated peripheral frame and the frame of interest.
  • the region detecting step further includes a static / moving determination step of performing a static / moving determination based on a difference between pixel data at corresponding pixel positions of the peripheral frame and the frame of interest whose motion has been compensated.
  • a foreground region consisting of only foreground object components constituting a foreground object of a plurality of objects and a background object constituting a background object with respect to a pixel position based on the determination result of the still / moving determination step. It is possible to detect a background region consisting only of components or a mixed region.
  • the area detecting step specifies an uncovered background area formed on the rear end side in the moving direction of the foreground object in the mixed area based on the determination result of the still / moving determining step, and specifies the front end in the moving direction of the foreground object. Forces formed on the sides can be used to identify bird background areas.
  • the program of the recording medium according to the present invention detects a mixed area based on a motion compensation step for motion-compensating each frame of image data, and a difference between pixel data at a position corresponding to each other in each motion-compensated frame. And a region detecting step.
  • the area detecting step when the difference is equal to or larger than the threshold, at least a mixed area to which the pixel data belongs can be detected.
  • the area detection step is based on the detected temporal change of the mixed area, and includes a covered background area in which the foreground object component increases with time. And an uncovered background area in which the background component increases with time.
  • the area detection step is based on the motion vector corresponding to the pixel data of each frame, and based on the motion vector, the covered background area in which the foreground object component increases with time and the background object with time changes The uncovered background region to which the component is added can be further detected.
  • the program may further include a motion vector detection step for detecting a motion vector.
  • the program may further include a mixing ratio calculating step of calculating a mixing ratio indicating a mixing state in the pixel data of the object.
  • the program may further include a separation step of separating at least a foreground object component from the pixel data of the mixed area based on the mixture ratio.
  • the program may further include a motion blur adjustment step of adjusting the amount of motion blur of the component of the separated foreground object.
  • the program may further include a synthesizing step of synthesizing another desired object and components of the separated foreground object based on the mixture ratio.
  • the motion compensation step is performed so that the pixel positions of the background object of the plurality of objects of the target frame of interest and the background object of the peripheral frame around the target frame are the same.
  • the area detection step detects at least the mixed area based on the difference between the motion-compensated peripheral frame and the frame of interest.
  • the region detecting step further includes a static / moving determination step of performing a static / moving determination based on a difference between pixel data at corresponding pixel positions of the peripheral frame and the frame of interest whose motion has been compensated. Based on the determination result of the still / movement determination step. Foreground area consisting only of foreground object components constituting a foreground object of a plurality of objects and background image constituting a background object with respect to a pixel position. It is possible to detect a background area consisting only of the object component or a mixed area.
  • the region detection step specifies an uncovered packed ground region formed on the rear end side in the movement direction of the foreground object in the mixed region based on the determination result of the still / movement determination step, and specifies the movement of the foreground object.
  • the force background area formed on the tip side in the direction can be specified.
  • the program according to the present invention provides a computer with a motion compensation step for motion-compensating each frame of image data, and an area for detecting a mixed area based on a difference between pixel data at a position corresponding to each other in each of the motion-compensated frames. And a detecting step.
  • the area detecting step when the difference is equal to or larger than the threshold, at least a mixed area to which the pixel data belongs can be detected.
  • the region detection step is based on the temporal change of the detected mixed region, and includes a force bird background region in which the foreground object component increases with time and a background object component with time change. And the uncovered background area that is added.
  • the area detection step is based on the motion vector corresponding to the pixel data of each frame, and based on the motion vector, the covered background area in which the foreground object component increases with time and the background object with time changes The covered background region to which the component is added can be further detected.
  • the program may further include a motion vector detection step for detecting a motion vector.
  • the program may further include a mixing ratio calculating step of calculating a mixing ratio indicating a mixing state in the pixel data of the object.
  • the program may further include a separation step of separating at least a foreground object component from the pixel data of the mixed area based on the mixture ratio.
  • the program may further include a motion blur adjustment step of adjusting the amount of motion blur of the component of the separated foreground object.
  • the program may further include a synthesizing step of synthesizing the desired other object and the component of the separated foreground object based on the mixture ratio.
  • the motion compensation step the peripheral frame is shifted such that the pixel position of the background object of the plurality of objects of the target frame of interest and the background object of the peripheral frame around the target frame are the same.
  • the region detection step at least the mixed region can be detected based on a difference between the motion-compensated peripheral frame and the frame of interest.
  • the region detecting step further includes a static / moving determination step of performing a static / moving determination based on a difference between pixel data at a corresponding pixel position between the motion-compensated peripheral frame and the frame of interest. Based on the determination result of the still / moving determination step, a pixel position is composed of only a foreground object component that forms only a foreground object component of a plurality of objects and a background object component that configures a background object. The background area or the mixed area can be detected.
  • the area detecting step specifies an anchored background area formed on the trailing end side of the foreground object in the moving direction in the mixed area based on the determination result of the still / moving determining step, and determines the leading edge of the foreground object in the moving direction. Forces formed on the sides can be used to identify bird background areas.
  • An imaging apparatus includes: an imaging unit that outputs a subject image captured by an imaging device having a predetermined number of pixels having a time integration effect as image data including a predetermined number of pixel data; and each frame of the image data. And a plurality of objects in the real world are mixed from the image data to obtain pixel data based on a difference between pixel data at positions corresponding to each other in the motion-compensated frames. Region detecting means for detecting the mixed region. When the difference is equal to or larger than the threshold, the area detection unit includes at least the pixel data. A mixed region can be detected.
  • the area detecting means includes a covered background area in which the foreground object component increases with time, based on the detected change in the mixed area with time.
  • the background object component changes with time.
  • the increasing uncovered background area can be further detected.
  • the area detection means is based on the motion vector corresponding to the pixel data of each frame.
  • the covered background area where the foreground object component increases with time changes, and the background object component with time changes can further include a motion vector detection unit that detects a motion vector.
  • the imaging apparatus may further include a mixture ratio calculating unit that calculates a mixture ratio indicating a mixed state in the pixel data of the smart object.
  • the imaging apparatus may further include a separating unit that separates at least a foreground object component from the pixel data of the mixed area based on the mixing ratio.
  • the imaging apparatus may further include a motion blur adjusting unit that adjusts the amount of motion blur of the component of the separated foreground object.
  • the imaging apparatus may further include a combining unit that combines the desired other object and the component of the separated foreground object based on the mixture ratio.
  • the motion compensator shifts the peripheral frame so that the pixel position of the background object of the plurality of objects of the target frame of interest and the background object of the peripheral frame around the target frame are the same.
  • the motion can be compensated, and the area detecting means can detect at least the mixed area based on the difference between the motion-compensated peripheral frame and the frame of interest.
  • the area detecting means further includes a static / moving determining means for performing a static / moving determination based on a difference between pixel data at pixel positions corresponding to the motion-compensated peripheral frame and the frame of interest. Based on the judgment result of the static motion judgment means, Thus, a foreground region consisting only of the foreground object component constituting the foreground object, a background region consisting solely of the background object component constituting the background object, or a mixed region can be detected.
  • the area detecting means specifies an uncovered background area formed on the rear end side in the moving direction of the foreground object in the mixed area based on the judgment result of the still / moving judging means, The covered background area to be formed can be specified.
  • Each frame of the image data is motion-compensated, and a mixed area is detected based on a difference between pixel data at positions corresponding to each other in the motion-compensated frames.
  • FIG. 1 is a diagram showing one embodiment of a signal processing device according to the present invention.
  • FIG. 2 is a block diagram illustrating a signal processing device.
  • FIG. 3 is a diagram illustrating imaging by a sensor.
  • FIG. 4 is a diagram illustrating the arrangement of pixels.
  • FIG. 5 is a diagram illustrating the operation of the detection element.
  • FIG. 6A is a diagram illustrating an image obtained by capturing an object corresponding to a moving foreground and an object corresponding to a stationary background.
  • FIG. 6B is a diagram illustrating a model corresponding to an image obtained by capturing an object corresponding to a moving foreground and an object corresponding to a stationary background.
  • FIG. 7 is a diagram illustrating a background area, a foreground area, a mixed area, a covered background area, and an uncovered background area.
  • FIG. 8 shows adjacent pixels in a row in an image of an object corresponding to a stationary foreground and an object corresponding to a stationary background.
  • FIG. 5 is a model diagram in which pixel values of a pixel are developed in the time direction.
  • FIG. 9 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shutter time is divided.
  • FIG. 10 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shirt time is divided.
  • FIG. 11 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shirt time is divided.
  • FIG. 12 is a diagram illustrating an example in which pixels in a foreground area, a background area, and a mixed area are extracted.
  • Fig. 13 is a diagram showing the correspondence between pixels and a model in which pixel values are expanded in the time direction.
  • Fig. 14 is a model in which pixel values are expanded in the time direction and a period corresponding to the shirt time is divided.
  • FIG. 15 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shutter time is divided.
  • FIG. 16 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shutter time is divided.
  • FIG. 17 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shutter time is divided.
  • FIG. 18 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shirt time is divided.
  • FIG. 19 is a flowchart for explaining the process of adjusting the amount of motion blur.
  • FIG. 20 is a block diagram showing a configuration of the area specifying unit 103.
  • FIG. 'FIG. 21 is a block diagram showing a more detailed configuration of the area specifying unit 103.
  • FIG. 22 is a diagram for explaining the processing of the motion acquisition unit 222.
  • FIG. 23 is a diagram illustrating an image when an object corresponding to the foreground is moving.
  • Figure 24 expands the pixel values in the time direction and divides the period corresponding to the shirt time.
  • FIG. 25 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shirt time is divided.
  • FIG. 26 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shirt time is divided.
  • FIG. 27 is a diagram illustrating conditions for region determination.
  • FIG. 28A is a diagram illustrating an example of a result of specifying an area by the area specifying unit 103.
  • FIG. 28B is a diagram illustrating an example of a result of specifying an area by the area specifying unit 103.
  • FIG. 28C is a diagram illustrating an example of a result of specifying an area by the area specifying unit 103.
  • FIG. 28D is a diagram illustrating an example of a result of specifying an area by the area specifying unit 103.
  • FIG. 29 is a diagram illustrating an example of a result of specifying an area by the area specifying unit 103.
  • FIG. 30 is a flowchart illustrating the area specifying process.
  • FIG. 31 is a flowchart illustrating the area specifying process.
  • FIG. 32 is a block diagram showing another configuration of the area specifying unit 103. As shown in FIG. 32
  • FIG. 33 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shirt time is divided.
  • FIG. 34 is a diagram illustrating an example of the area specifying object.
  • FIG. 35 is a diagram illustrating an example of a motion-compensated area specifying object.
  • FIG. 36 is a view for explaining an example of the processing of the threshold value processing unit 255.
  • FIG. 37 is a block diagram illustrating the configuration of the time change detection unit 256.
  • FIG. 38 is a diagram for explaining the determination process of the time change detection unit 256.
  • FIG. 39 is a diagram for explaining the determination process of the time change detection unit 256.
  • FIG. 40 is a diagram illustrating conditions for determining a mixed region.
  • FIG. 41 is a flowchart for explaining the area specifying process of the area specifying unit 103.
  • FIG. 42 is a flowchart illustrating details of a process of detecting a covered background area or an uncovered background area.
  • FIG. 43 is a block diagram showing still another configuration of the area specifying unit 103. As shown in FIG. FIG. 44 is a diagram for explaining the determination process of the identification unit 281.
  • FIG. 45 is a flowchart illustrating details of the process of detecting the covered background area or the anchored background area.
  • FIG. 46 is a block diagram illustrating an example of a configuration of the mixture ratio calculation unit 104. As illustrated in FIG.
  • FIG. 47 is a diagram illustrating an example of an ideal mixture ratio.
  • FIG. 48 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shutter time is divided.
  • FIG. 49 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shutter time is divided.
  • FIG. 50 is a diagram for explaining approximation using the correlation of foreground components.
  • FIG. 51 is a diagram illustrating the relationship between C, N, and P.
  • FIG. 52 is a block diagram illustrating a configuration of the estimated mixture ratio processing unit 401.
  • FIG. 53 is a diagram illustrating an example of the estimated mixture ratio.
  • FIG. 54 is a block diagram showing another configuration of the mixture ratio calculating section 104. As shown in FIG. 54
  • FIG. 55 is a flowchart for explaining the process of calculating the mixture ratio.
  • FIG. 56 is a flowchart for explaining the process of calculating the estimated mixture ratio.
  • FIG. 57 is a diagram illustrating a straight line approximating the mixture ratio ⁇ .
  • FIG. 58 is a view for explaining a plane approximating the mixture ratio ⁇ .
  • FIG. 59 is a view for explaining the correspondence of pixels in a plurality of frames when calculating the mixture ratio ⁇ .
  • FIG. 60 is a block diagram illustrating another configuration of the mixture ratio estimation processing section 401.
  • FIG. 61 is a diagram illustrating an example of the estimated mixture ratio.
  • FIG. 62 is a flowchart for explaining the process of estimating the mixture ratio using the model corresponding to the covered background area.
  • FIG. 63 is a block diagram showing an example of the configuration of the foreground / background separation unit 105.
  • FIG. 64D is a diagram illustrating an input image, a foreground component image, and a background component image.
  • FIG. 64B is a diagram illustrating a model of the input image, the foreground component image, and the background component image.
  • FIG. 65 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shutter time is divided.
  • FIG. 66 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shutter time is divided.
  • FIG. 67 is a model diagram in which pixel values are developed in the time direction and a period corresponding to the shirt time is divided.
  • FIG. 68 is a block diagram illustrating an example of the configuration of the separation unit 600. As illustrated in FIG.
  • FIG. 69A is a diagram illustrating an example of a separated foreground component image.
  • FIG. 69B is a diagram illustrating an example of the separated background component image.
  • FIG. 70 is a flowchart illustrating the process of separating the foreground and the background.
  • FIG. 71 is a block diagram illustrating an example of the configuration of the motion-blur adjusting unit 106.
  • FIG. 72 is a diagram for explaining a processing unit.
  • FIG. 73 is a model diagram in which the pixel values of the foreground component image are developed in the time direction, and the period corresponding to the shutter time is divided.
  • FIG. 74 is a model diagram in which the pixel values of the foreground component image are developed in the time direction and the period corresponding to the shirt time is divided.
  • FIG. 75 is a model diagram in which the pixel values of the foreground component image are developed in the time direction and the period corresponding to the shutter time is divided.
  • FIG. 76 is a model diagram in which the pixel values of the foreground component image are developed in the time direction, and the period corresponding to the shirt time is divided.
  • FIG. 77 is a diagram illustrating another configuration of the motion-blur adjusting unit 106.
  • FIG. 78 is a flowchart illustrating the process of adjusting the amount of motion blur included in the foreground component image by the motion-blur adjusting unit 106.
  • FIG. 79 is a block diagram showing another example of the configuration of the motion poke adjustment unit 106.
  • FIG. 80 is a diagram illustrating an example of a model that specifies correspondence between pixel values and foreground components. You.
  • FIG. 81 is a diagram for explaining calculation of a foreground component.
  • FIG. 82 is a diagram for explaining calculation of a foreground component.
  • FIG. 83 is a flowchart for explaining the process of removing foreground motion blur.
  • FIG. 84 is a block diagram illustrating another configuration of the functions of the signal processing device.
  • FIG. 85 is a diagram illustrating a configuration of the combining unit 1001.
  • FIG. 86 is a block diagram illustrating still another configuration of the functions of the signal processing device.
  • FIG. 87 is a block diagram illustrating a configuration of the mixture ratio calculation unit 111.
  • FIG. 88 is a block diagram showing the configuration of the foreground / background separation unit 1102.
  • FIG. 89 is a block diagram illustrating still another configuration of the functions of the signal processing device.
  • FIG. 90 is a diagram showing a configuration of the synthesizing unit 1221. BEST MODE FOR CARRYING OUT THE INVENTION
  • FIG. 1 is a diagram showing one embodiment of a signal processing device according to the present invention.
  • the CPU (Central Processing Unit) 21 executes various processes according to a program stored in a ROM (Read Only Memory) 22 or a storage unit 28.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • the CPU 21 is also connected with an input / output interface 25 via a bus 24.
  • the input / output interface 25 is connected to an input unit 26 composed of a keyboard, a mouse, a microphone phone, and the like, and an output unit 27 composed of a display, a speaker, and the like.
  • the CPU 21 executes various processes in response to a command input from the input unit 26. Then, the CPU 21 outputs an image, a sound, and the like obtained as a result of the processing to the output unit 27.
  • the storage unit 28 connected to the input / output interface 25 is composed of, for example, a hard disk and stores programs executed by the CPU 21 and various data.
  • the communication unit 29 communicates with external devices via the Internet or other networks. In this case, the communication unit 29 functions as an acquisition unit that captures the output of the sensor. Alternatively, the program may be acquired via the communication unit 29 and stored in the storage unit 28.
  • the drive 30 drives the magnetic disk 51, the optical disk 52, the magneto-optical disk 53, or the semiconductor memory 54 when they are installed, and drives the programs and data recorded there. Get The acquired programs and data are transferred to and stored in the storage unit 28 as necessary.
  • FIG. 2 is a block diagram illustrating a signal processing device.
  • each function of the signal processing device is realized by hardware or software. That is, each block diagram in this specification may be considered as a hardware block diagram or a software function block diagram.
  • an image to be imaged which corresponds to an object in the real world, is called an image object.
  • the input image supplied to the signal processing device is supplied to an object extracting unit 101, a region specifying unit 103, a mixture ratio calculating unit 104, and a foreground / background separating unit 105.
  • the object extraction unit 101 roughly extracts an image object corresponding to the foreground object included in the input image, and supplies the extracted image object to the motion detection unit 102.
  • the object extracting unit 101 roughly extracts the image object corresponding to the foreground object, for example, by detecting the contour of the image object corresponding to the foreground object included in the input image.
  • the object extraction unit 101 roughly extracts an image object corresponding to a background object included in the input image, and converts the extracted image object into a motion detection unit.
  • the object extracting unit 101 roughly extracts, for example, an image object corresponding to the background object from a difference between the input image and the extracted image object corresponding to the extracted foreground object.
  • the object extracting unit 101 includes a background memo provided inside.
  • the image object corresponding to the foreground object and the image object corresponding to the background object may be roughly extracted from the difference between the background image stored in the memory and the input image.
  • the motion detection unit 102 calculates the motion vector of the image object corresponding to the coarsely extracted foreground object, for example, by a method such as a block matching method, a gradient method, a phase correlation method, or a pel recursive method. Then, the calculated motion vector and the position information of the motion vector (information for specifying the position of the pixel corresponding to the motion vector) are supplied to the region specifying unit 103 and the motion blur adjusting unit 106.
  • a method such as a block matching method, a gradient method, a phase correlation method, or a pel recursive method.
  • the motion vector output by the motion detection unit 102 includes information corresponding to the motion amount V.
  • the motion detection unit 102 may output a motion vector for each image object to the motion blur adjustment unit 106 together with pixel position information for specifying a pixel in the image object.
  • the motion amount V is a value that represents a change in the position of an image corresponding to a moving object in units of pixel intervals. For example, when the image of the object corresponding to the foreground is moving so that it is displayed at a position separated by 4 pixels in the next frame with respect to a certain frame, the motion amount V of the image of the object corresponding to the foreground is , And 4.
  • the object extraction unit 101 and the motion detection unit 102 are required when adjusting the amount of motion blur corresponding to a moving object.
  • the area specifying unit 103 specifies each of the pixels of the input image as one of a foreground area, a background area, and a mixed area, and for each pixel, any one of a foreground area, a background area, and a mixed area.
  • the mixture ratio calculation unit 104 Calculates a mixture ratio (hereinafter, referred to as a mixture ratio a) corresponding to the pixels included in the mixture region 63 based on the input image and the region information supplied from the region identification unit 103.
  • the mixture ratio is a value indicating a ratio of an image component corresponding to a background object (hereinafter, also referred to as a background component) in a pixel value, as shown in Expression (3) described below.
  • the foreground / background separation unit 105 generates an image corresponding to the foreground object based on the area information supplied from the area identification unit 103 and the mixture ratio a supplied from the mixture ratio calculation unit 104.
  • the input image is separated into a foreground component image consisting only of components (hereinafter also referred to as foreground components) and a background component image consisting only of background components, and the foreground component image is moved by the motion blur adjustment unit 106 and the selection unit 1 Feed to 07. It is also conceivable to use the separated foreground component image as the final output. It is possible to specify only the foreground and background without considering the conventional mixed area, and obtain more accurate foreground and background compared to the method that was separated.
  • the motion-blur adjusting unit 106 determines a processing unit indicating one or more pixels included in the foreground component image based on the motion amount V and the area information known from the motion vector.
  • the processing unit is data that specifies a group of pixels to be processed for adjusting the amount of motion blur.
  • the motion blur adjustment unit 106 includes a motion blur adjustment amount input to the signal processing device, a foreground component image supplied from the foreground / background separation unit 105, and a motion vector supplied from the motion detection unit 102. It is included in the foreground component image, such as removing the motion blur included in the foreground component image, reducing the amount of motion blur, or increasing the amount of motion blur based on the position information and the processing unit. The amount of motion blur is adjusted, and the foreground component image in which the amount of motion blur is adjusted is output to the selector 107.
  • the motion vector and its position information may not be used.
  • the motion blur refers to distortion included in an image corresponding to a moving object, which is caused by the movement of an object in the real world to be imaged and the characteristics of the sensor imaging.
  • the selection unit 107 supplies the foreground component image supplied from the foreground / background separation unit 105 and the motion blur adjustment unit 106 based on, for example, a selection signal corresponding to the user's selection.
  • One of the selected foreground component images with the adjusted amount of motion blur is selected, and the selected foreground component image is output.
  • FIG. 3 is a diagram illustrating imaging by a sensor.
  • the sensor is constituted by, for example, a CCD video camera equipped with a CCD (Charge-Coupled Device) area sensor which is a solid-state image sensor.
  • the object 111 corresponding to the foreground in the real world moves horizontally between the object 112 corresponding to the background in the real world and the sensor, for example, from left to right in the figure.
  • CCD Charge-Coupled Device
  • the sensor captures the object 111 corresponding to the foreground together with the object 111 corresponding to the background.
  • the sensor outputs the captured image in units of one frame. For example, a sensor outputs an image consisting of 30 frames per second.
  • the exposure time of the sensor can be 1/30 second.
  • the exposure time is the period from when the sensor starts converting the input light into electric charge until the sensor finishes converting the input light into electric charge.
  • the exposure time is also referred to as shirt time.
  • FIG. 4 is a diagram illustrating the arrangement of pixels.
  • a to I indicate individual pixels.
  • the pixels are arranged on a plane corresponding to the image.
  • One detection element corresponding to one pixel is arranged on the sensor.
  • one detection element When the sensor captures an image, one detection element outputs a pixel value corresponding to one pixel forming the image.
  • the position of the detection element in the X direction corresponds to the position in the horizontal direction on the image
  • the position of the detection element in the Y direction corresponds to the position in the vertical direction on the image.
  • a detection element such as a CCD converts input light into electric charges and accumulates the converted electric charges for a period corresponding to the shutter time.
  • the amount of charge is almost proportional to the intensity of the input light and the time the light is input.
  • the detection element adds the electric charge converted from the input light to the electric charge already stored during a period corresponding to the shutter time. That is, the detection element integrates the input light for a period corresponding to the shutter time, and accumulates an amount of charge corresponding to the integrated light. I do. It can be said that the detection element has an integration effect with respect to time.
  • the electric charge accumulated in the detection element is converted into a voltage value by a circuit (not shown), and the voltage value is further converted into a pixel value such as digital data and output. Therefore, the individual pixel values output from the sensor are the values projected onto a one-dimensional space, which is the result of integrating the spatially extended part of the object corresponding to the foreground or background over the shirt time. Having.
  • the signal processing device extracts significant information buried in the output signal, for example, the mixing ratio by the accumulation operation of the sensor.
  • the signal processing device adjusts the amount of distortion caused by mixing the foreground image objects themselves, for example, the amount of motion poke. Further, the signal processing device adjusts the amount of distortion caused by mixing of the foreground image object and the background image object.
  • FIGS. 6A and 6B are diagrams illustrating images obtained by capturing an object corresponding to a moving foreground and an object corresponding to a stationary background. An image obtained by capturing an object corresponding to the accompanying foreground and an object corresponding to a stationary background is shown. In the example shown in FIG. 6A, the object corresponding to the foreground is moving horizontally from left to right with respect to the screen.
  • FIG. 6B is a model diagram in which pixel values corresponding to one line of the image shown in FIG. 6A are expanded in the time direction.
  • the horizontal direction in FIG. 6B corresponds to the spatial direction X in FIG. 6A.
  • the pixels in the background area are pixels of the background component, that is, only the image component corresponding to the background object. It is configured.
  • the pixels in the foreground area are composed of only the components of the foreground, that is, the components of the image corresponding to the foreground object.
  • the pixel value of a pixel in the mixed area is composed of a background component and a foreground component. Since the pixel value is composed of the background component and the foreground component, the mixed region can be said to be a distorted region.
  • the mixed area is further classified into a covered back dark area and an uncovered background area.
  • the covered background area is a mixed area at a position corresponding to the front end of the foreground object in the traveling direction with respect to the foreground area, and is an area where the background component is covered by the foreground with the passage of time. .
  • the uncovered background area is a mixed area at a position corresponding to the rear end of the foreground object in the traveling direction with respect to the foreground area. The area that appears.
  • FIG. 7 is a diagram for explaining the background area, foreground area, mixed area, covered packed background area, and uncovered packed ground area as described above.
  • the background area is a stationary part
  • the foreground area is a moving part
  • the force pad background area of the mixed area is a part that changes from the background to the foreground.
  • the uncovered background area of the mixed area is the part that changes from the foreground to the background.
  • Fig. 8 is a model diagram in which the pixel values of the pixels that are adjacent to one row in the image of the object corresponding to the stationary foreground and the object corresponding to the stationary background are expanded in the time direction. It is. For example, it is possible to select pixels that are arranged on one line of the screen as pixels that are adjacently arranged in one column.
  • the pixel values of F01 to F04 shown in FIG. 8 are the pixel values of the pixels corresponding to the stationary foreground object.
  • the pixel values B01 to B04 shown in FIG. 8 are the pixel values of the pixels corresponding to the stationary background object.
  • the horizontal direction in FIG. 8 corresponds to the spatial direction X described in FIG. 6A. More specifically, in the example shown in FIG. 8, the distance from the left side of the rectangle indicated by “F01” in FIG. 8 to the right side of the rectangle indicated by “B04” is eight times the pixel pitch. That is, it corresponds to the interval between eight consecutive pixels.
  • the light input to the sensor does not change during the period corresponding to the shutter time.
  • the period corresponding to the shirt time is divided into two or more periods of the same length.
  • the model diagram shown in FIG. 8 can be represented as a model shown in FIG.
  • the number of virtual divisions is set according to the amount of movement V of the object corresponding to the foreground within the shutter time. For example, for a motion amount of 4, the virtual number of divisions is set to 4, and the period corresponding to the shutter time is divided into four.
  • the top row in the figure corresponds to the first, divided period since the shirt opened.
  • the second row from the top in the figure corresponds to the second, divided period when the shirt is open.
  • the third row from the top in the figure corresponds to the third, divided period since the shirt opened.
  • the fourth row from the top in the figure corresponds to the fourth, divided period since the shirt opened.
  • the shirt time divided according to the movement amount V is also referred to as shirt time / V.
  • the foreground component FO l / v is equal to the value obtained by dividing the pixel value F01 by the number of virtual divisions.
  • the foreground component FO l / v is equal to the value obtained by dividing the pixel value F01 by the number of virtual divisions.
  • F02 / v is equal to the value obtained by dividing the pixel value F02 by the virtual division number
  • the foreground component F0 3 / v is equal to the value obtained by dividing the pixel value F03 by the virtual division number
  • the foreground component F04 / v is Pixel value It is equal to F04 divided by the number of virtual divisions.
  • the background component BO l / v is equal to the value obtained by dividing the pixel value B01 by the number of virtual divisions.
  • the background component B02 / v is equal to a value obtained by dividing the pixel value B02 by the virtual division number
  • B03 / V is a pixel value B03 obtained by dividing the pixel value B03 by the virtual division number.
  • B04 / V is equal to the pixel value B04 divided by the number of virtual divisions.
  • the light corresponding to the object in the foreground input to the sensor does not change during the period corresponding to the shirt time, so the first time that the shirt opens and the time
  • the foreground component FOl / v has the same value as the foreground component FOl / v, which corresponds to the fourth shirt time / V after the shutter opens.
  • F02 / v to F04 / v also have the same relationship as FO l / v.
  • the light corresponding to the object in the background input to the sensor does not change during the period corresponding to the shutter time, so that when the shutter opens, the first shutter time / V Corresponding background component BOl / v, and the background component BO l / v, which corresponds to the second time when the shirt opens, and the background corresponding to the third time, when the shirt opens, the third time
  • the component BOl / v of the background and the background component BO l / v corresponding to the shirt time / V at the fourth opening of the shirt have the same value.
  • B02 / V to B04 / V also have the same relationship.
  • FIG. 10 is a model diagram in which pixel values of pixels on one line including the covered background area are developed in the time direction when the object corresponding to the foreground moves toward the right side in the figure. .
  • the amount of motion V in the foreground is 4 is there. Since one frame is a short time, it can be assumed that the object corresponding to the foreground is rigid and moves at a constant speed.
  • the image of the object corresponding to the foreground moves so as to be displayed four pixels to the right in the next frame with respect to a certain frame.
  • the leftmost pixel to the fourth pixel from the left belong to the foreground area.
  • the fifth through seventh pixels from the left belong to the mixed area that is the covered background area.
  • the rightmost pixel belongs to the background area.
  • the components included in the pixel values of the pixels belonging to the covered background area include the period corresponding to the shutter time. At some point, the background component changes to the foreground component.
  • a pixel value M indicated by a thick line frame in FIG. 10 is represented by Expression (1).
  • the fifth pixel from the left contains the background component corresponding to one shirt time / V and the foreground component corresponding to three shirt times / V, so the fifth pixel from the left is mixed
  • the ratio is 1/4.
  • the sixth pixel from the left contains the background component corresponding to the two shirt times / v and the foreground component corresponding to the two shirt times / V
  • the mixture ratio of the sixth pixel from the left is , 1/2.
  • the seventh pixel from the left contains the background component corresponding to the three shutter times / V and the foreground component corresponding to one shutter time / V, so the mixture ratio of the seventh pixel from the left is , 3/4.
  • the object corresponding to the foreground is a rigid body and the foreground image moves at a constant speed so that it is displayed four pixels to the right in the next frame, for example, the fourth from the left in Fig. 10
  • the foreground component F07 / v of the pixel, the first time the shirt opens, and the foreground component of the shirt time / V corresponds to the fifth pixel from the left in Figure 10, the second time / the second time, where the shirt opens.
  • the foreground component F07 / v is the foreground component of the sixth pixel from the left in Fig. 10, corresponding to the third shirt time / v when the shirt is open, and the seventh pixel from the left in Fig. 10
  • the shirt is opened, it is equal to the foreground component corresponding to the fourth shirt time / v.
  • the corresponding object is a rigid body and the foreground image moves at a constant speed so that it is displayed four pixels to the right in the next frame.
  • the foreground component F06 / v of the first pixel in the first pixel, when the shirt is open, corresponds to the second pixel in the fourth pixel from the left in Figure 10 Equal to the foreground component.
  • the foreground component F06 / v is the fifth pixel from the left in FIG. 10, the foreground component corresponding to the third shirt time / V when the shirt is open, and the left in FIG.
  • the foreground components corresponding to the fourth shutter time / V from the shutter opening of the sixth pixel to the sixth pixel, respectively, are equal to each other.
  • the object corresponding to the foreground is a rigid body and the foreground image moves at a constant speed so that it is displayed four pixels to the right in the next frame, for example, the second from the left in Fig. 10
  • the foreground component F05 / v of the first pixel at the time when the shirt is open corresponds to the second pixel at the time when the shirt is open at the third pixel from the left in Figure 10 Equal to the foreground component.
  • the foreground component F05 / v is the foreground component of the fourth pixel from the left in FIG. 10 corresponding to the third shirt time / V when the shirt is opened, and the left in FIG.
  • the fifth pixel is equal to the foreground component corresponding to the fourth shirt time / V when the shirt is opened.
  • the object corresponding to the foreground is a rigid body and the foreground image moves at a constant speed so that it is displayed four pixels to the right in the next frame, for example, the leftmost pixel in Fig. 10
  • the component F04 / v of the first pixel in the foreground which corresponds to the second pixel from the left in Fig. 10, and the second pixel from the left in FIG. Equal to the component.
  • foreground component F04 / v Is the foreground component of the third pixel from the left in Fig. 10, corresponding to the third shutter time / v when the shutter is open, and the shutter of the fourth pixel from the left in Fig. 10 is open.
  • the foreground component corresponding to the fourth shutter time / V, respectively.
  • the foreground area corresponding to the moving object includes motion blur as described above, it can be said that the area is a distortion area.
  • FIG. 11 is a model diagram in which pixel values of pixels on one line, including the uncovered background area, are developed in the time direction when the foreground moves toward the right side in the figure.
  • the motion amount V of the foreground is 4. Since one frame is short, it can be assumed that the object corresponding to the foreground is rigid and moves at a constant speed.
  • the image of the object corresponding to the foreground moves to the right by four pixels in the next frame with respect to a certain frame (in FIG. 11, the leftmost pixel to the fourth pixel from the left are In Fig. 11, the fifth through seventh pixels from the left belong to the mixed area that is the uncovered background In Fig. 11, the rightmost pixel belongs to the foreground area.
  • the object corresponding to the foreground which covered the object corresponding to the background, has been moved so as to be removed from the front of the object corresponding to the background over time, it is included in the pixel values of the pixels belonging to the uncovered background area. At some point during the period corresponding to the shirt time, the foreground component is replaced by the background component.
  • a pixel value M ′ with a thick frame in FIG. 11 is represented by Expression (2).
  • the fifth pixel from the left contains the background component corresponding to three shirt times / V and the foreground component corresponding to one shirt time / V, so the fifth pixel from the left is mixed
  • the comparison is 3/4.
  • the sixth pixel from the left contains the background component corresponding to the two shirt times / V and the foreground component corresponding to the two shirt times / v, so the mixture ratio of the sixth pixel from the left is , 1/2. 7 from left
  • the seventh pixel contains the background component corresponding to one shutter time / V and the foreground component corresponding to three shutter times / V, so the mixture ratio a of the seventh pixel from the left is 1 / 4.
  • B is the pixel value of the background
  • Fi / v is the component of the foreground.
  • the object corresponding to the foreground is a rigid body and moves at a constant speed, and the amount of movement V is 4, for example, the first pixel in the fifth pixel from the left in Fig. 11
  • the foreground component FOl / v of the shirt time / V is equal to the foreground component of the sixth pixel from the left in FIG. 11, corresponding to the second shirt time / V when the shirt opens.
  • FO l / v is the foreground component of the seventh pixel from the left in Fig. 11 corresponding to the third shutter time / V when the shutter is open
  • the eighth pixel from the left in Fig. 11 The pixel of the foreground component corresponding to the fourth shirt time / V when the shirt is open is equal to the respective pixels.
  • the object corresponding to the foreground is a rigid body and moves at a constant speed, and the number of virtual divisions is 4, for example, the first pixel in the sixth pixel from the left in Fig. 11
  • the foreground component F02 / v of the shirt time / V is equal to the foreground component of the seventh pixel from the left in FIG. 11, corresponding to the second shirt time / V when the shirt opens.
  • the foreground component F02 / v is equal to the foreground component of the eighth pixel from the left in FIG.
  • the object corresponding to the foreground is a rigid body and moves at a constant speed
  • the amount of movement V is 4, for example, when the 7th pixel from the left in Fig. 11
  • the foreground component F03 / v of the shirt time / V is equal to the foreground component of the eighth pixel from the left in FIG. 11 corresponding to the second shutter time / v from when the shutter has opened.
  • the number of virtual divisions has been described as four, but the number of virtual divisions corresponds to the amount of motion V.
  • the motion amount V generally corresponds to the moving speed of the object corresponding to the foreground.
  • the motion amount V is set to 4.
  • the number of virtual divisions is four.
  • the motion amount V is set to 6, and the virtual division number Is assumed to be 6.
  • Figures 12 and 13 show the mixed area consisting of the foreground area, background area, covered background area or anchored background area, and the foreground components corresponding to the divided shirt time as described above. And the relationship with background components.
  • Figure 12 shows an example of extracting pixels in the foreground, background, and mixed regions from an image containing the foreground corresponding to an object moving in front of a stationary background.
  • the object corresponding to the foreground which is indicated by an example A in FIG. 12, is moving horizontally with respect to the screen.
  • the frame # n + l is the frame next to the frame # ⁇ , and the frame # n + 2 is the frame next to the frame # n + l.
  • the pixel value of the foreground area is composed of four different foreground components corresponding to the time / V period as the object corresponding to the foreground moves.
  • the leftmost pixel of the pixels in the foreground area shown in FIG. 13 is
  • pixels in the foreground area include motion blur.
  • the pixel value in the background area does not include motion blur.
  • the pixel value of a pixel belonging to a mixed area consisting of a force bird background area or an uncovered background area is composed of a foreground component and a background component.
  • the pixel values of pixels that are adjacent to each other and are arranged in one row in a plurality of frames and are located at the same position on the frame are determined in the time direction.
  • the model developed in For example, when the image corresponding to the object is moving horizontally with respect to the screen, pixels that are arranged on one line of the screen can be selected as pixels that are adjacently arranged in one row.
  • Fig. 14 shows the pixel values of the pixels that are adjacent to each other and are arranged in one row in the three frames of the image obtained by capturing the object corresponding to the stationary background. It is the model figure developed in the time direction. Frame #n is the next frame after frame # n-1, and frame # n + l is the next frame after frame #n. Other frames are similarly referred to.
  • the pixel values B01 to B12 shown in FIG. 14 are the pixel values of the pixels corresponding to the stationary background object. Since the object corresponding to the background is stationary, the pixel values of the corresponding pixels do not change from frame #nl to frame 11 + 1. For example, the pixel in frame # ⁇ and the pixel in frame # ⁇ + 1 corresponding to the position of the pixel having the pixel value of B05 in frame # ⁇ -l each have a pixel value of # 05.
  • Figure 15 shows three adjacent pixels of three frames of an image of an object corresponding to the foreground moving to the right in the figure together with the object corresponding to the stationary background.
  • FIG. 4 is a model diagram in which pixel values of pixels at the same position on a frame are developed in the time direction.
  • the model shown in FIG. 15 includes a covered background region.
  • the object corresponding to the foreground is a rigid body and moves at a constant speed. Since the foreground image moves so as to be displayed four pixels to the right in the next frame, the foreground motion amount V is 4 and the number of virtual divisions is 4.
  • the foreground component of the leftmost pixel of the frame in Fig. 15 when the shutter is open and the first shutter time / V is F12 / v
  • the second pixel from the left in Fig. 15 is The foreground component of the second shirt time / V when the shirt is opened is also F12 / v.
  • the third pixel from the left in Fig. 15 is the foreground component of the third pixel at the time when the shirt is open
  • the fourth pixel from the left in Figure 15 is the fourth pixel from the left when the shirt is open.
  • the foreground component of the shirt time / V is F12 / v.
  • the foreground component of the leftmost pixel in frame # n-1 in Fig. 15 at the second shutter time / V after the shutter is opened is Fl l / v, which is the second from the left in Fig. 15
  • the foreground component of V is also Fll / v.
  • Figure 15 The third pixel from the left in Fig. 5
  • the fourth shutter time from the shutter opened / The foreground component of V is Fl l / v.
  • the foreground component of the leftmost pixel of frame # n-1 in Fig. 15 at the third shutter time / V from when the shutter is opened is FlO / v
  • the foreground component of the fourth shutter time / V when the shutter is open is also FlO / v
  • the leftmost pixel of the leftmost pixel in frame fe-1 in Fig. 15 is the fourth shutter when the shutter is open.
  • the foreground component of the plotter time / V is F09 / V.
  • the background component of the second pixel from the left of frame 1 in Fig. 15 (left) and the first shutter (time / V) is BO l / v Become.
  • the background components of the third pixel from the left of frame-1 in Fig. 15 at the first and second shutter / V when shutter is opened are B02 / v.
  • the background components of the first to third shirt / time from the shutter opening of the fourth pixel from the left of frame # n-l in FIG. 15 from the left are B03 / v.
  • the leftmost pixel belongs to the foreground area, and the second to fourth pixels from the left belong to the mixed area that is the covered background area.
  • the fifth to 12th pixels from the left of frame #nl in FIG. 15 belong to the background area, and their pixel values are B04 to B11, respectively.
  • the first to fifth pixels from the left of frame #n in FIG. 15 belong to the foreground area.
  • the foreground component of the shirt time / V in the foreground area of frame #n is one of F05 / v to F12 / v.
  • the foreground component of the fifth pixel from the left which is the first shutter time / V when the shutter is open, is F12 / v
  • the sixth pixel from the left in Fig. 15 is the second pixel when the shutter is open.
  • the foreground component of the shirt time / V is also F12 / v.
  • the foreground component of the 7th pixel from the left in Fig. 15 and the third shutter is open, and the foreground component of the third shutter time / V, and the 4th pixel of the eighth pixel from the left in Fig. 15 is open and 4
  • the foreground component of the second shirt time / V is F12 / v.
  • the foreground component of the fifth pixel from the left of frame #n in Fig. 15 in which the shirt is open and the second shutter is opened is Fl l / v
  • the sixth pixel from the left in Fig. 15 is The foreground component of the pixel, which is the third shirt time / V when the shirt is opened, is also Fl l / v.
  • the foreground component of the seventh pixel from the left in Fig. 15 at the fourth shutter time / v when the shutter is open is Fl l / v.
  • the foreground component of the fifth pixel from the left of frame #n in Fig. 15 at the third shutter release time / V after shutter opening is FlO / v
  • the sixth pixel from the left in Fig. 15 The foreground component of the fourth shirt time / V, which is the same as when the shirt opens, is also FlO / v.
  • the foreground component of the fifth pixel from the left of frame to in FIG. 15 at the fourth shutter time / V after the shutter is opened is F09 / v.
  • the background component of the sixth pixel from the left of frame #n in Fig. 15 from the left, and the background component of the first shirt time / V from the left is B05 / v .
  • the background component of the 7th pixel from the left of frame #n in Fig. 15 from the first and second shirt time / v when the shirt is opened is B06 / v.
  • the background component of the eighth pixel from the left of the frame #n in FIG. 15 from the left, from the first to the third from the opening of the shirt, and the background of the shirt time / V is B07 /.
  • the ninth to 12th pixels from the left of frame # ⁇ in FIG. 15 belong to the background area, and the pixel values are # 08 to B11, respectively.
  • the first to ninth pixels from the left of frame # ⁇ + 1 in Fig. 15 belong to the foreground area.
  • the foreground component of the shirt time / V in the foreground area of frame # ⁇ + 1 is one of FOl / v to F12 /.
  • the foreground component of the first shutter time / V at the ninth pixel from the left of l is F12 / v
  • the shirt at the 10th pixel from the left in Figure 15 is open.
  • the foreground component of the second shirt time / V is also F12 / v.
  • the foreground component of the fourth shutter time / V is F12 / v.
  • the foreground component of the fourth shirt time / v is F09 / v. Since the object corresponding to the background is stationary, the background component of the 10th pixel from the left of frame ⁇
  • FIG. 16 is a model diagram of an image in which foreground components are extracted from the pixel values shown in FIG.
  • FIG. 17 shows three adjacent pixels of three frames of an image of the foreground corresponding to the object moving to the right in the figure together with the stationary background.
  • FIG. 6 is a model diagram in which pixel values of pixels at the same position are developed in the time direction.
  • an uncovered background area is included.
  • the object corresponding to the foreground is a rigid body and moves at a constant speed. Since the object corresponding to the foreground is moving so as to be displayed on the right side by 4 pixels in the next frame, the motion amount V is 4. For example, in the leftmost pixel of frame #nl in Fig.
  • the first foreground component of the shirt time / V when the shirt is open is F13 / v, which is the second from the left in Fig. 17
  • the foreground component of the pixel at the second shutter opening time / V after the opening of the shutter is also F13 / v.
  • the foreground component of the second shirt time / V is F13 / v.
  • the foreground component of the second pixel from the left of frame #nl in Fig. 17 at the first shutter release time / V after shutter opening is F14 / v
  • the third pixel from the left in Fig. 17 However, the foreground component of the second shirt time / V when the shirt opens is also F14 / v.
  • the first time when the shirt is open The foreground component of / v is F15 / v.
  • the background component of the leftmost pixel of frame # n-1 in Fig. 17 and the 2nd to 4th of the shirts open and the shirt time / V is , And B25 / v.
  • the background component of the third pixel and the fourth pixel of the frame from the left in the frame in Fig. 17 from which the shirt is opened, and the background of the shirt time / V is B26 / v.
  • the background component of the third pixel from the left of frame # n-1 in FIG. 17 at the fourth shutter time / V after the shutter is opened is B27 / v.
  • the leftmost pixel to the third pixel belong to the mixed area which is the covered background area.
  • the fourth to 12th pixels from the left of frame # n-l in FIG. 17 belong to the foreground area.
  • the foreground component of the frame is one of F1I3 / V to F24 / v.
  • the leftmost pixel to the fourth pixel from the left of frame #n in FIG. 17 belong to the background area, and the pixel values are B25 to B28, respectively.
  • the object corresponding to the foreground is rigid and moves at a constant speed, and the image of the foreground moves so that it is displayed four pixels to the right in the next frame, so frame # ⁇ in Figure 17
  • the foreground component of the first shutter time / V from when the shutter is opened is F13 / v.
  • the foreground component of the second shirt time / V is also F13 / v.
  • the foreground component of the shirt time / V is F13 / v.
  • the foreground component of the sixth shutter pixel from the left in frame # ⁇ in Fig. 17 at the first shutter time / V after shutter opening is F14 / v
  • the seventh pixel from the left in Fig. 17 the foreground component of the shutter has opened is the second shutter time / [nu also, F14 / v from the left in c Figure 1 7 serving as the eighth pixel, foreground shutter has opened the first shutter time / V Is F15 / v.
  • the background component of the fifth pixel from the left which is the second to fourth shirt time / V from when the shirt is opened, is B29V.
  • the background components of the sixth pixel from the left of frame #n in Fig. 17 corresponding to the third and fourth portions of the shutter time / V from when the shutter has opened are B30 / v.
  • the background component of the seventh pixel from the left of frame #n in Fig. 17 at the fourth shutter-opening time / V after shutter opening is B31 / v.
  • the eighth to 12th pixels from the left of frame #n in FIG. 17 belong to the foreground area.
  • the value corresponding to the period of the shirt time / V in the foreground area of the frame is one of F13 / v to F20 / v.
  • the leftmost pixel to the eighth pixel from the left of frame # ⁇ + 1 in FIG. 17 belong to the background area, and their pixel values are # 25 to # 32, respectively.
  • the foreground component of the first shutter time / V of the ninth pixel when the shutter is open is F13 / v, and the 10th pixel from the left in FIG.
  • the foreground component of the shirt time / V is also F13 / v.
  • the foreground component of the fourth shirt time / V is F13 / v.
  • the foreground component of the 10th pixel from the left of frame # n + l in Fig. 17 at the first shutter release time / V when the shutter is open is F14 / v
  • the 11th pixel from the left in Fig. 17 The foreground component of the pixel at the second shutter time / V when the shutter is opened is also F14 / v.
  • the foreground component of the first pixel from the left in the first pixel at the time when the shirt is opened is F15 / v.
  • the background component of / v is B33 / v.
  • the background component of the 10th pixel from the left of frame fe + 1 in Fig. 17 at the 3rd and 4th shutter time / V from when the shutter has opened is B34 / v.
  • the background component of the 11th pixel from the left of frame # n + l in Fig. 17 corresponding to the fourth portion of the shutter time / V from when the shutter has opened is B35 / v.
  • the 12th pixel from the left of frame # n + l in Fig. 17 belongs to the foreground area.
  • the foreground component of the shirt time / V in the foreground area of frame # n + l is any of F13 / v to F16 / v.
  • FIG. 18 is a model diagram of an image in which foreground components are extracted from the pixel values shown in FIG.
  • the area specifying unit 103 uses the pixel values of a plurality of frames to set a flag indicating that the area belongs to the foreground area, background area, covered background area, or uncovered back-drop area.
  • the information is supplied to the mixture ratio calculation unit 104 and the motion blur adjustment unit 106 as region information in association with each other.
  • the mixture ratio calculation unit 104 calculates the mixture ratio Of for each pixel of the pixels included in the mixed region based on the pixel values of a plurality of frames and the region information, and separates the calculated mixture ratio into the foreground / background separation. Supply to part 105.
  • the foreground / background separation unit 105 extracts a foreground component image consisting of only foreground components based on the pixel values, the area information, and the mixture ratio of the plurality of frames, and supplies the extracted foreground component image to the motion blur adjustment unit 106. .
  • the motion blur adjustment unit 106 is supplied from the foreground component image supplied from the foreground / background separation unit 105, the motion vector supplied from the motion detection unit 102, and the region identification unit 103. Based on the obtained region information, the amount of motion blur included in the foreground component image is adjusted, and a foreground component image in which the amount of motion blur is adjusted is output.
  • step S11 the area specifying unit 103 converts the input image On the basis of this, an area specifying process for generating area information indicating whether the pixel belongs to a foreground area, a background area, a covered background area, or an uncovered background area for each pixel of the input image is executed. The details of the area specifying process will be described later.
  • the region specifying unit 103 supplies the generated region information to the mixture ratio calculating unit 104.
  • the area specifying unit 103 determines, for each pixel of the input image, a foreground area, a background area, or a mixed area (covered background area or uncovered background area) based on the input image.
  • Region information indicating whether the region belongs to or may be generated.
  • the foreground / background separation unit 105 and the motion blur adjustment unit 106 determine whether the mixed area is the covered background area or the uncovered background area based on the direction of the motion vector. It is determined whether there is. For example, when the foreground area, the mixed area, and the background area are arranged in this order in accordance with the direction of the motion vector, the mixed area is determined as a covered background area, and the mixed area is determined as the direction of the motion vector. , The background area, the mixed area, and the foreground area, the mixed area is determined to be an covered background area.
  • step S12 the mixture ratio calculation unit 104 calculates a mixture ratio ⁇ for each pixel included in the mixed region based on the input image and the region information. The details of the mixture ratio calculation process will be described later.
  • the mixture ratio calculation unit 104 supplies the calculated mixture ratio to the foreground / background separation unit 105.
  • step S13 the foreground / background separation unit 105 extracts a foreground component from the input image based on the area information and the mixture ratio, and supplies the foreground component image to the motion blur adjustment unit 106. .
  • step S14 the motion-blur adjusting unit 106 determines, based on the motion vector and the area information, continuous pixels arranged in the motion direction, the uncovered background area, the foreground area, and the covered background area.
  • a processing unit indicating the position of an image belonging to one of the regions on the image is generated, and the amount of motion blur included in the foreground component corresponding to the processing unit is adjusted. For details on the process of adjusting the amount of motion blur, see It will be described later.
  • step SI5 the signal processing device determines whether or not the processing has been completed for the entire screen. If it is determined that the processing has not been completed for the entire screen, the process proceeds to step S14, where the processing is performed in units of processing. The process of adjusting the amount of motion blur for the corresponding foreground component is repeated.
  • step S15 If it is determined in step S15 that the processing has been completed for the entire screen, the processing ends.
  • the signal processing device can separate the foreground and the background and adjust the amount of motion blur included in the foreground. That is, the signal processing device can adjust the amount of motion blur included in the sample data that is the pixel value of the foreground pixel.
  • FIG. 20 is a block diagram showing a configuration of the area specifying unit 103. As shown in FIG. The area specifying unit 103 shown in FIG. 20 does not use a motion vector.
  • the background motion compensator 201 detects the background motion of the input image, and translates the input image in parallel with the detected background motion.
  • the background motion compensation unit 201 supplies the input image that has been translated in parallel to the region identification processing unit 202 in response to the movement of the background.
  • the images supplied to the area specifying processing unit 202 have the same background position on the screen.
  • the region identification processing unit 202 based on the image in which the position of the background on the screen is supplied from the background motion compensating unit 201, determines the uncovered background region, It generates area information indicating that it belongs to any of the stationary area, the moving area, and the covered background area, and outputs the generated area information.
  • FIG. 21 is a block diagram showing a more detailed configuration of the area specifying unit 103. As shown in FIG.
  • the background motion compensating unit 201 includes a frame memory 221, motion obtaining units 222-1 to 222-2-4, and an image shifting unit 223-1 to 223-4.
  • the area identification processing unit 202 includes a frame memory 222, a static / motion determination unit 2225-1, and It consists of 2 2 5-4, area judgment section 2 2 6-1 to 2 2 6-3, judgment flag storage frame memory 2 27, synthesis section 2 28, and judgment flag storage frame memory 2 2 9 You.
  • the frame memory 222 stores an input image in frame units.
  • the frame memory 2 2 1 is a frame that is the frame immediately before the frame # n-2, which is the frame immediately before the frame, and the frame that is the frame before the frame # ⁇ .
  • #n_l, frame #n, frame # n + l which is the frame after frame #n, and frame # n + 2 which is the frame after frame #n are stored.
  • the motion obtaining unit 2 2 2-1 obtains a block of interest including a predetermined number of pixels from frame # n + 2 stored in the frame memory 2 2 1.
  • the motion acquisition unit 2 2 2-1 searches the image of the frame #n stored in the frame memory 22 1 for a part of the image whose pattern matches the pattern of interest, based on the acquired interest block.
  • the motion acquisition unit 2 2—1 generates a motion vector based on the position of the block of interest in frame # n + 2 and the position of the image portion of frame to where the pattern matches the block of interest. .
  • the motion obtaining unit 2 2 2-2 obtains a block of interest including a predetermined number of pixels from frame # n + 1 stored in the frame memory 2 2 1.
  • the motion acquisition unit 2 2 2-2 searches the image of the frame #n stored in the frame memory 22 1 for a portion of the image whose pattern matches the pattern of interest, based on the obtained interest block.
  • the motion acquisition unit 2 2 2-2 generates a motion vector based on the position of the block of interest in frame # n + l and the position of the image portion of the frame where the pattern matches the block of interest.
  • the motion acquisition unit 2 2 2-3 acquires a target block composed of a predetermined number of pixels from frame # n ⁇ 1 stored in the frame memory 2 2 1.
  • the motion acquisition unit 2 2 2-3 searches the frame to image stored in the frame memory 22 1 for a portion of the image whose pattern matches the pattern of interest based on the acquired block of interest.
  • the motion acquisition unit 2 2—3 determines the position of the block of interest in frame #nl, and A motion vector is generated based on the position of the part of the image of frame #n where the pattern matches the pattern of the target block.
  • the motion obtaining unit 2 2 2-4 obtains a target block consisting of a predetermined number of pixels from frame # n ⁇ 2 stored in the frame memory 2 2 1.
  • the motion acquisition unit 2 2 2-4 searches the image of the frame #n stored in the frame memory 22 1 for a portion of the image whose pattern matches the pattern of interest based on the acquired block of interest.
  • the motion acquisition unit 2 2 2—4 generates a motion vector based on the position of the block of interest in frame # n-2 and the position of the image portion of the frame where the pattern matches the block of interest.
  • the motion acquisition unit 2 2 2 2 divides an image of one frame into a divided region consisting of m pixels ⁇ n pixels indicated by A in FIG. For each region, a target block consisting of M pixels and XN pixels, which is indicated by B in FIG. 22, is selected.
  • the motion acquisition unit 222 searches the corresponding frame image for an image portion whose pattern matches the target block for each target block of each divided region, and calculates a motion vector for each target block. Generate. Motion acquisition unit 2 2 2, based on the motion base-vector generated for each block of interest, c example generates a motion base vector corresponding to two frames, the motion acquisition unit 2 2 2, for each block of interest The average value of the generated motion vectors is calculated, and the calculated motion vectors are used as motion vectors corresponding to the two frames.
  • the motion acquisition unit 222 can output a motion vector corresponding to the motion of the background image object. .
  • the motion acquisition unit 222 performs full-screen block matching of the images of the two frames to obtain a motion vector corresponding to the motion of the background image object. You may make it generate
  • the motion acquisition unit 222 may extract a background image object from the input image, and generate a motion vector corresponding to the motion of the background image object based on the extracted image object.
  • the image shift unit 2 2 3—1 is a frame #n stored in the frame memory 2 2 1 based on the motion vector corresponding to the background image object supplied from the motion acquisition unit 2 2 2_1. +2 is translated, and the image of the translated frame # n + 2 is supplied to the frame memory 222 of the region identification processing unit 202.
  • the image shift section 2 2 3-2 is configured to store the frame # ⁇ stored in the frame memory 2 2 1 based on the motion vector corresponding to the background image object supplied from the motion acquisition section 2 2 2-2. +1 is translated, and the image of the translated frame # ⁇ + 1 is supplied to the frame memory 222 of the region identification processing unit 202.
  • the image shift unit 2 2 3—3 uses the frame # ⁇ - stored in the frame memory 2 2 1 based on the motion vector corresponding to the background image object supplied from the motion acquisition unit 2 2 2—3. 1 is translated, and the image of the translated frame # ⁇ -1 is supplied to the frame memory 222 of the region identification processor 202.
  • the image shift unit 2 2 3—4 is configured to store the frame # ⁇ stored in the frame memory 2 2 1 based on the motion vector corresponding to the background image object supplied from the motion acquisition unit 2 2 2—4. -2 is translated, and the image of the translated frame # ⁇ -2 is supplied to the frame memory 222 of the region identification processing unit 202.
  • the frame memory 221 supplies the image of the frame # ⁇ to the frame memory 224 of the region identification processing section 202.
  • the images supplied by the image shift unit 2 2 3—1 to 2 2 3—4 and the frame memory 2 2 1 to the frame memory 2 2 4 of the area identification processing unit 202 have the same background position on the screen. ing.
  • the frame memory 2 2 4 of the area identification processing section 202 stores the image supplied from the image shift section 2 2 3 1 to 2 2 3 4 or the frame memory 2 21 in frame units.
  • the static / motion judging unit 2 25-1 includes the pixel value of the pixel of frame # n + 2 at the same position as the position of the pixel to be specified in the region of frame #n on the image, and the region of frame #n
  • the pixel value of the pixel of frame # n + 1 at the same position as the position of the specific target pixel on the image is read from the frame memory 224, and the absolute value of the difference between the read pixel values is calculated.
  • the static / movement determining unit 2 25-1 determines whether the absolute value of the difference between the pixel value of frame # n + 2 and the pixel value of frame Hn + 1 is greater than a preset threshold Th.
  • a still / moving determination indicating a motion is supplied to the area determining unit 226-1.
  • the static / dynamic determination unit 2 25-1 Supplies the still / moving judgment indicating the stationary state to the area judging unit 226-1.
  • the static / movement determination unit 2 25-2-2 is the pixel value of the pixel of frame # n + l located at the same position as the pixel on the image that is the target of frame th area identification, and the target of the frame.
  • the pixel value of the pixel is read from the frame memory 222, and the absolute value of the difference between the pixel values is calculated.
  • the static / motion judging unit 2 25-2 judges whether the absolute value of the difference between the pixel value of frame # n + l and the pixel value of frame #n is larger than a preset threshold Th. If it is determined that the absolute value of the difference between the pixel values is greater than the threshold value Th, a still / moving determination indicating a motion is supplied to the area determination section 226-1 and the area determination section 225-2.
  • the static / moving determination unit 2 25-2 sets the stationary state Is supplied to the area determination section 2 26-1 and the area determination section 2 26-2.
  • the static / movement determining unit 2 25-3 sets the pixel value of the pixel that is the target of specifying the area of the frame #n and the pixel position of the target that specifies the area of the frame #n at the same position as the image
  • the pixel value of the pixel of a certain frame # n-1 is read from the frame memory 224, and the absolute value of the difference between the pixel values is calculated.
  • the static / movement determining unit 2 25-3 determines that the absolute value of the difference between the pixel value of frame and the pixel value of frame # n ⁇ 1 is greater than a preset threshold Th.
  • a static / moving determination indicating a motion is performed by the region determination unit 2 26-2 and the region determination unit 2 2. Supply 6–3.
  • the static / movement determination unit 2 25-3 The stationary / moving determination indicating stop is supplied to the area determining section 2 26-2 and the area determining section 2 26-3.
  • the quarrel determination unit 2 25-5-4 calculates the pixel value of the pixel of frame #nl located at the same position as the pixel on the image that is the target of the frame region identification, and the pixel of the frame region identification target.
  • the pixel value of the pixel of frame # n-2 at the same position as the position of the pixel on the image is read from the frame memory 224, and the absolute value of the difference between the pixel values is calculated.
  • the static / movement determining unit 2 25-4 determines whether the absolute value of the difference between the pixel value of frame #nl and the pixel value of frame # n-2 is greater than a preset threshold Th.
  • a still / moving determination indicating a motion is supplied to the area determination unit 226-3.
  • the static / movement determination unit 2 25 _ 4 Supplies the static / moving judgment indicating the stationary state to the area judging unit 222-6-3.
  • the area determination section 2 26-1 indicates that the static / movement determination supplied from the static / movement determination section 2 25-1 indicates stationary, and the static / dynamic determination supplied from the static / movement determination section 2 25-2.
  • the uncovered background area determination flag corresponding to the pixel determined to be in the area is: Set "1" to indicate that the device belongs to the covered backdrop area.
  • the area determination unit 2 26-1 is either a static or dynamic determination provided by the static or dynamic determination unit 2 25-1 or indicates a motion, or a static or dynamic supplied by the static or dynamic determination unit 2 25-2.
  • the determination indicates stationary, it is determined that the pixel for which the area is specified in frame #n does not belong to the uncovered background area, and the pixel corresponding to the pixel whose area is determined is determined.
  • the area determination section 2 26-1 supplies the anchor bird background area determination flag in which “1” or “0” is set to the determination flag storage frame memory 2 27.
  • the area determination section 2 26-2 indicates that the static / movement determination supplied from the static / movement determination section 2 25-2 indicates stationary, and the static / dynamic determination supplied from the static / movement determination section 2 25-3.
  • the still area determination flag corresponding to the pixel whose area is determined indicates that the pixel belongs to the still area.
  • the area determination section 2 26-2 indicates whether the static / movement determination supplied from the static / movement determination section 2 25-2 indicates movement or the static / dynamic determination supplied from the static / movement determination section 2 25-3. When the determination indicates a motion, it is determined that the pixel for which the region is specified in the frame does not belong to the still region, and the pixel does not belong to the still region in the still region determination flag corresponding to the pixel whose region is determined. Is set to "0".
  • the area determination section 2 26-2 supplies the stationary area determination flag in which “1” or “0” is set to the determination flag storage frame memory 2 27.
  • the area determination section 2 26 _ 2 indicates that the static / movement determination supplied from the static / movement determination section 2 25-2 indicates movement, and the static / dynamic determination supplied from the static / movement determination section 2 25 5-3. Indicates that the pixel in frame #n, which is the target of the area identification, belongs to the motion area, and the motion area determination flag corresponding to the pixel whose area is determined indicates that the pixel belongs to the motion area. Set "1".
  • the area determination unit 2 26-2 is either a static or static determination supplied from the static or dynamic determination unit 2 25-2 or indicates a static or static supplied from the static or dynamic determination unit 2 25-3. When the determination indicates stillness, it is determined that the pixel for which the region is specified in frame #n does not belong to the moving region, and the pixel belonging to the moving region is determined by the moving region determination flag corresponding to the pixel whose region is determined. Set to "0" to indicate not.
  • the area determination section 2 26-2 supplies the motion area determination flag in which “1” or “0” is set to the determination flag storage frame memory 2 27.
  • the area determination section 2 26 6-3 indicates that the static / movement determination supplied from the static / movement determination section 2 25-3 indicates movement, and the static / dynamic determination supplied from the static / movement determination section 2 25 5-4. Indicates that the pixel of the frame in which the area is to be specified belongs to the covered background area, and the covered background area determination flag corresponding to the pixel whose area is determined is included in the covered background area. Set to "1" to indicate that it belongs to.
  • the area determination section 2 26-3 indicates whether the static / movement determination supplied from the static / movement determination section 2 25-3 indicates a static state, or the static / dynamic determination supplied from the static / movement determination section 2 25-4. When the determination indicates a motion, it is determined that the pixel for which the area is specified in the frame #n does not belong to the covered background area, and the covered background area determination flag corresponding to the pixel whose area is determined is set. Set to "0" to indicate that it does not belong to the covered background area.
  • the area determination unit 222-6-3 supplies the force pad background area determination flag set to "1" or "0" to the determination flag storage frame memory 222.
  • the determination flag storage frame memory 227 includes an uncovered background area determination flag supplied from the area determination section 226-1, a still area determination flag supplied from the area determination section 226-1, and an area determination.
  • the motion area determination flag supplied from the section 2 261-2 and the force bird background area determination flag supplied from the area determination section 2 26-3 are stored.
  • the determination flag storage frame memory 227 supplies the stored uncovered background area determination flag, stationary area determination flag, motion area determination flag, and force bird background area determination flag to the synthesis unit 228.
  • the synthesizing unit 228 outputs the uncovered background area determination flag, the still area determination flag, the motion area determination flag, and the Area information indicating that each pixel belongs to one of the uncovered background area, the still area, the moving area, and the covered background area based on the judgment flag storage frame Supply to Mori 229.
  • the determination flag storage frame memory 229 stores the area information supplied from the synthesis unit 228 and outputs the stored area information.
  • Figure 24 shows a model diagram in which the pixel values of pixels arranged in a row adjacent to the motion direction of the image corresponding to the foreground object are developed in the time direction.
  • the model diagram in Fig. 24 shows the model in which the pixel values of the adjacent pixels on one line are expanded in the time direction. Is shown.
  • the line in frame #n is the same as the line in frame # n + l.
  • the foreground components corresponding to the objects included in the second to 13th pixels from the left are included in the 6th to 17th pixels from the left in frame # n + l It is.
  • the pixels belonging to the covered background area are the 11th to 13th pixels from the left, and the pixels belonging to the uncovered background area are the 2nd to 4th pixels from the left. is there.
  • the pixels belonging to the covered background area are the 15th to 17th pixels from the left, and the pixels belonging to the uncovered background area are the 6th pixel from the left.
  • the 8th to 8th pixels are the pixels belonging to the covered background area.
  • the motion amount V is 4.
  • the virtual division number is 4 corresponding to the motion amount V.
  • the pixels belonging to the covered background area are the 15th to 17th pixels from the left. Since the motion amount V is 4, in the previous frame # ⁇ -1, the 15th to 17th pixels from the left include only background components and belong to the background area. Further, in the immediately preceding frame # ⁇ -2, the 15th to 17th pixels from the left include only background components and belong to the background area.
  • the pixel value of the 15th pixel from the left of frame # ⁇ -1 is the pixel value of the 15th pixel from the left of frame # ⁇ -2. Does not change from.
  • the pixel value of the 16th pixel from the left of frame # ⁇ -1 does not change from the pixel value of the 16th pixel from the left of frame # ⁇ -2
  • the pixel value of the 16th pixel from the left of frame # ⁇ -1 The pixel value of the 17th pixel does not change from the pixel value of the 17th pixel from the left of frame # ⁇ _2.
  • the pixels of frame # ⁇ -1 and frame # ⁇ -2 which correspond to the pixels belonging to the covered background area in frame # ⁇ , consist only of the background components, and the pixel values do not change. The value is almost zero. Therefore, the still / moving judgment for the pixels of frame-1 and frame # n-2 corresponding to the pixels belonging to the mixed area in frame # ⁇ is judged to be still by the still / moving judging section 225-2.
  • the pixels belonging to the covered background area in frame #n include the foreground components, the pixel values are different from those of frame # ⁇ -1 consisting only of the background components. Therefore, the pixels belonging to the mixed area in frame # ⁇ and the corresponding The still / movement determination for the pixel of the frame # n -1 to be performed is determined to be a movement by the still / movement determination unit 22-5-3.
  • the area determination unit 222-6-3 is supplied with the result of the static motion determination indicating the motion from the static motion determination unit 222-5-3, and the static determination indicating the static is performed from the static motion determination unit 222-4.
  • the result of the motion determination is supplied, it is determined that the corresponding pixel belongs to the covered background area.
  • the pixels included in the uncovered background area are the second to fourth pixels from the left. Since the motion amount V is 4, the second to fourth pixels from the left in the next frame # n + l include only the background component and belong to the background area. In the next frame # n + 2, the second to fourth pixels from the left include only the background component and belong to the background area.
  • the pixel value of the second pixel from the left of the frame does not change from the pixel value of the second pixel from the left of frame # n + l.
  • the pixel value of the third pixel from the left of frame # n + 2 does not change from the pixel value of the third pixel from the left of frame # n + l, the left force of frame # n + 2,
  • the pixel value of the fourth pixel from the left does not change from the pixel value of the fourth pixel from the left of frame # n + l.
  • the pixels of frame # n + l and frame # n + 2 corresponding to the pixels belonging to the uncovered background area in the frame consist only of the background component, and since the pixel values do not change, the absolute value of the difference Is almost zero. Accordingly, the still / moving judgment for the pixels of frame # n + l and frame # n + 2 corresponding to the pixels belonging to the mixed area in frame #n is determined to be still by the still / moving judging section 2 25 _ 1. Is done.
  • the pixel values are different from those in the case where only the background components in frame # n + l are included. Therefore, pixels belonging to the mixed area in frame #n, and The static / movement determination for the pixel of the corresponding frame # n + l is determined to be a motion by the static / movement determination unit 225-2.
  • the area determination unit 226-1 is supplied with the result of the static / dynamic determination indicating the motion from the static / dynamic determination unit 2225_2, and the static / dynamic determination unit 225-1 provides the static / static determination result indicating the stillness.
  • the result of the motion determination is supplied, it is determined that the corresponding pixel belongs to the uncovered background area.
  • FIG. 27 is a diagram showing the determination conditions of the region identification unit 103 in the frame.
  • the pixel of frame #nl at the same position as the position of the pixel to be determined in frame #n on the image is determined to be stationary, and the position of the pixel to be determined in frame #n on the image
  • the region identification unit 103 determines that the pixel to be determined in frame # ⁇ is It is determined that it belongs to the covered background area.
  • the pixel of frame # ⁇ -1 and the pixel of frame # ⁇ at the same position on the image as the pixel to be determined for frame # ⁇ are determined to be stationary, and the pixel of frame # ⁇ is determined to be stationary.
  • the region specifying unit 103 sets the frame # ⁇ Are determined to belong to the still area.
  • the pixel of frame 3 ⁇ 4-1 and the pixel of frame #n at the same position as the position of the pixel to be determined for frame # ⁇ on the image and the pixel of frame #n are determined to be moving.
  • the area specifying unit 1 0 3 the frame #n It is determined that the pixel to be determined belongs to the motion area.
  • FIG. 28D is a diagram illustrating an example of a result of specifying an area by the area specifying unit 103.
  • FIG. 28A pixels determined to belong to the covered background area are displayed in white.
  • FIG. 28B pixels determined to belong to the uncovered background area are displayed in white.
  • FIG. 28C the pixels determined to belong to the motion area are displayed in white.
  • FIG. 28D the pixels determined to belong to the still area are displayed in white.
  • FIG. 29 is a diagram showing, as an image, area information indicating a mixed area among the area information output from the frame memory 229 for storing the determination flag.
  • the pixels determined to belong to the covered background area or the uncovered packed ground area that is, the pixels determined to belong to the mixed area
  • the region information indicating the mixed region output by indicates the mixed region and the portion having the texture surrounded by the non-textured portion in the foreground region.
  • step S201 the frame memory 221 acquires the images of the frames # n-2 to # n + 2 including the frame #n to be determined.
  • the frame memory 222 supplies frame n to the frame memory 222.
  • step S202 the motion acquisition unit 2 2 2—1 generates a frame # n + 2 based on the image of frame # n + 2 and the image of frame #n stored in the frame memory 2 2 1 Get the background motion vector between and frame #n.
  • the motion acquisition unit 222-1 provides the motion vector to the image shift unit 223-1.
  • step S203 the image shift unit 223-1-1 is stored in the frame memory 221, based on the motion vector supplied from the motion acquisition unit 222-1.
  • the image of frame # n + 2 is translated, and the translated image of frame # n + 2 is supplied to frame memory 224.
  • step S204 the motion acquisition section 2 2 2—2 performs frame ttn + 1 and frame ttn + 1 based on the image of the frame # n + l and the frame image stored in the frame memory 22 1. Get the background motion vector between frame #n.
  • the motion acquisition unit 2 2 2-2 supplies the motion vector to the image shift unit 2 2 3-2.
  • step S205 the image shift unit 2 2 3—2 outputs the frame # stored in the frame memory 2 2 1 based on the motion vector supplied from the motion acquisition unit 2 2 2—2.
  • the n + l image is translated, and the translated image of the frame # n + l is supplied to the frame memory 224.
  • step S206 the motion acquisition section 2 2 2—3 performs frame # 0-1 and frame # 0-1 based on the image of frame #nl and the image of frame #n stored in the frame memory 22 1. Get the background motion vector between #n.
  • the motion acquisition unit 222_3 supplies the motion vector to the image shift unit 222_3.
  • step S207 the image shift unit 2 2 3—3 converts the frame # stored in the frame memory 2 2 1 based on the motion vector supplied from the motion acquisition unit 2 2 2—3.
  • the nl image is translated, and the image of the translated frame is supplied to the frame memory 224.
  • step S 2 0 8 the motion acquisition unit 2 2 2 4, based on the image of the frame # n-2 images and the frame #n stored in the frame memory 2 2 1, frame # n-2 Get the motion vector of the background between and frame # ⁇ .
  • the motion acquisition unit 2 2 2-4 supplies the motion vector to the image shift unit 2 2 3-4.
  • step S209 the image shift unit 2 2 3—4 converts the frame # ⁇ stored in the frame memory 2 2 1 based on the motion vector supplied from the motion acquisition unit 2 2 2—4. -The image of 2 is translated, and the image of the translated frame # ⁇ -2 is supplied to the frame memory 224.
  • step S210 the static / movement determining unit 2 25-3 selects the pixel of frame # ⁇ _1 And the pixel at the same position in frame #n to determine whether or not it is stationary. If it is determined that the pixel is stationary, the process proceeds to step S211. The pixel and the pixel at the same position in frame # n + 1 determine whether or not it is stationary.
  • step S211 If it is determined in step S211 that the pixel of frame #n and the pixel at the same position of frame # n + l are still, the process proceeds to step S212, and the area determination unit 2 2 6—2 In the still area determination flag corresponding to the pixel whose area is determined, "1" indicating that the pixel belongs to the still area is set.
  • the area determination unit 2 26-2 supplies the still area determination flag to the determination flag storage frame memory 2 27, and the procedure proceeds to step S 2 13.
  • step S210 if it is determined that the motion is between the pixel of frame #nl and the pixel at the same position in frame #n, or in step S211 the pixel of frame and frame # n + l If the pixel at the same position is determined to be in motion, the pixel in frame # ⁇ does not belong to the static area, and the processing in step S2 12 is skipped, and the procedure is performed in step S2 1 Proceed to 3.
  • step S213 the static / movement determining unit 225-5-3 determines whether or not the pixel of the frame and the pixel at the same position of the frame #n are moving. Proceeding to 2 14, the still / movement determination unit 2 25-2 determines whether or not a motion has occurred between the pixel of frame #n and the pixel at the same position of frame # n + 1.
  • step S2 14 If it is determined in step S2 14 that the pixel of frame #n and the pixel at the same position of frame # ⁇ + 1 are determined to be moving, the process proceeds to step S215, and the area determination unit 2 2 6 1 2
  • the motion region determination flag corresponding to the pixel whose region is determined is set to “1” indicating that the pixel belongs to the motion region.
  • the region determination unit 2 26 _2 sets the motion region determination flag to the determination flag.
  • the data is supplied to the storage frame memory 2 27, and the procedure proceeds to Step S 2 16.
  • step S213 If it is determined in step S213 that the pixel of frame # ⁇ -1 and the pixel at the same position of frame # ⁇ are stationary, or in step S214, the pixel of frame # ⁇ and the frame # If the pixel at the same position of ⁇ +1 is determined to be still, Since the pixel of the frame #n does not belong to the motion area, the process of step S215 is skipped, and the procedure proceeds to step S216.
  • step S216 the still / movement determination unit 225-5-4 determines whether or not the pixel of frame # n -2 and the pixel at the same position of frame # n- l are stationary, and determines that the pixel is stationary. In this case, the flow proceeds to step S217, and the static / movement determining unit 225-2-3 determines whether or not there is a motion using the pixel of frame # n-1 and the pixel at the same position of frame #n.
  • step S217 If it is determined in step S217 that the pixel of frame # n-1 and the pixel at the same position of frame #n are moving, the process proceeds to step S218, and the area determination unit 2 26 13 Set “1” to the covered background area judgment flag corresponding to the pixel whose area is judged, indicating that the pixel belongs to the covered background area.
  • the area determination unit 2 26-3 supplies the covered background area determination flag to the determination flag storage frame memory 2 27, and the procedure proceeds to step S 2 19.
  • step S216 If it is determined in step S216 that the pixel of frame # n-2 and the pixel at the same position of frame #nl are moving, or in step S217, the pixel of frame #nl and the pixel of frame #nl If it is determined that the pixel at the same position in frame #n is still, since the pixel of the frame does not belong to the covered pack ground area, the processing of step S218 is skipped, and the procedure proceeds to step S2. Proceed to 19.
  • step S219 the still / movement determining unit 2 255-2 determines whether or not the pixel of frame #n and the pixel at the same position of frame # n + l are moving, and determines that the pixel is moving. In this case, the process proceeds to step S220, and the static / moving determination unit 2225-1 determines whether or not the pixel of frame # n + l and the pixel at the same position of frame # n + 2 are stationary. .
  • step S220 when it is determined that the pixel at frame +1 and the pixel at the same position in frame # n + 2 are still, the process proceeds to step S221, and the area determination unit 226-1
  • the uncovered background area determination flag corresponding to the pixel whose area is determined is set to "1" indicating that the pixel belongs to the uncovered background area.
  • the area determination unit 2 26-1 supplies the covered background area determination flag to the determination flag storage frame memory 2 27, and the procedure is performed in step S 2. Proceed to 2 2.
  • step S219 when it is determined that the pixel of the frame and the pixel at the same position of frame # n + l are still, or in step S220, the pixel of frame # n + l and the frame If it is determined that the pixel is in motion with the pixel at the same position of # n + 2, since the pixel of frame #n does not belong to the uncovered background area, the processing of step S221 is skipped, and the procedure is Proceed to step S222.
  • step S222 the region specifying unit 103 determines whether or not the region has been specified for all the pixels of the frame #n, and determines that the region has not been specified for all the pixels of the frame #n. If so, the procedure returns to step S210, and repeats the area specifying process for other pixels.
  • step S222 If it is determined in step S222 that the region has been specified for all the pixels of frame #n, the process proceeds to step S223, where the combining unit 228 stores the determination flag in the determination flag storage frame memory 227. Based on the stored uncovered background area determination flag and covered background area determination flag, area information indicating a mixed area is generated, and each pixel is further divided into an uncovered background area, a stationary area, and a motion. Area information indicating that the area belongs to either the area or the covered background area is generated, and the generated area information is set in the determination flag storage frame memory 229, and the process ends.
  • the region specifying unit 103 obtains, for each of the pixels included in the frame, region information indicating that the pixel belongs to the moving region, the still region, the uncovered background region, or the covered background region.
  • the area specifying unit 103 which can generate the area, executes the area determination processing after matching the position of the background image object, so that more accurate area information can be generated.
  • the area specifying unit 103 generates area information corresponding to the mixed area by applying a logical sum to the area information corresponding to the uncovered background area and the covered background area, and includes the area information in the frame. For each of the pixels that have been moved, a flag indicating that the pixel belongs to a motion area, still area, or mixed area To generate region information consisting of
  • the region specifying unit 103 can more accurately specify the moving region.
  • the area specifying unit 103 can output the area information indicating the moving area as the area information indicating the foreground area, and output the area information indicating the stationary area as the area information indicating the background area.
  • FIG. 32 is a block diagram showing another configuration of the area specifying unit 103.
  • the object extraction unit 25 1 extracts a foreground image object corresponding to the foreground object from the input image, and indicates that the pixel belongs to a background area other than the pixel corresponding to the foreground image object.
  • an area specifying object composed of a value indicating that the image belongs to the foreground image object and the background area is generated, and is supplied to the motion compensating section 255 and the subtracting section 254.
  • the object extraction unit 251 detects the contour of the image object corresponding to the foreground object included in the input image, and extracts the image object corresponding to the foreground object. Also, for example, the object extracting unit 251 extracts an image object corresponding to a foreground object from a difference between a background image stored in a background memory provided therein and an input image. It may be.
  • the object extracting unit 25 1 detects the motion of the input image, sets a value indicating that the pixel belongs to the background area to a still pixel, and sets the value of the still pixel to the foreground image object and the background area.
  • an area specifying object composed of a value indicating that the object belongs to an area may be generated.
  • the image object included in the area specifying object output from the object extraction unit 251, includes pixels belonging to the foreground area and pixels belonging to the mixed area.
  • Figure 33 shows an example of a model diagram in which the pixel values of pixels arranged in a row adjacent to the motion direction of the image object corresponding to the foreground object are developed in the time direction.
  • the moving direction of the image object corresponding to the foreground object is horizontal to the screen.
  • the model diagram in FIG. 33 shows a model in which pixel values of adjacent pixels on one line are expanded in the time direction.
  • the line in frame #n is the same as the line in frame # n-1.
  • the foreground components corresponding to the foreground objects included in the sixth through seventeenth pixels from the left are the second through thirteenth pixels from the left in frame #nl. included.
  • the pixels belonging to the covered background area are the 11th to 13th pixels from the left, and the pixels belonging to the uncovered background area are the 2nd to 4th pixels from the left. is there.
  • the pixels belonging to the covered background area are the 15th to 17th pixels from the left, and the pixels belonging to the uncovered background area are the 6th to 8th pixels from the left. is there.
  • the pixels belonging to the background area are the first pixel from the left, and the 14th to 21st pixels from the left.
  • the pixels belonging to the background area are the first to fifth pixels from the left and the 18th to 21st pixels from the left.
  • FIG. 34 shows an example of the area specifying object extracted by the object extracting unit 251, corresponding to the example shown in FIG.
  • the object extracting unit 25 When the pixel of interest in the input image is a moving pixel, that is, a pixel belonging to the foreground area or a pixel belonging to the mixed area including the foreground component, the object extracting unit 25 The pixel value of the pixel of interest in the input image is set as it is for the pixel corresponding to.
  • the object extraction unit 2551 sets a value indicating that the pixel belongs to the background area to the corresponding pixel of the area specifying object.
  • the value indicating that the pixel belongs to the foreground component or the background area is set.
  • the area specifying object including the specified pixels is supplied to the motion compensation unit 252 and the subtraction unit 254.
  • the motion compensating unit 252 performs motion compensation on the area specifying object supplied from the object extracting unit 251, based on the motion vector supplied from the motion detecting unit 102 and its position information.
  • FIG. 35 is a diagram illustrating an example of the area specifying object of the frame # n-l that has been motion-compensated by the motion compensation unit 25.
  • the positions of the pixels belonging to the foreground region of the region-specifying object of frame # n-1 that have been motion-compensated correspond to the positions of the pixels belonging to the foreground region of the region-specifying object of the frame.
  • the positions of the pixels belonging to the mixed area of the motion-compensated area-specific object of frame # n-1 correspond to the positions of the pixels belonging to the mixed area of the area-specific object of frame #n.
  • the motion compensation unit 252 supplies the motion-compensated area specifying object to the frame memory 253.
  • the frame memory 253 stores the motion-compensated area specifying object in frame units.
  • the frame memory 25 3 stores the frame that is the frame before frame #n.
  • the motion-compensated area specifying object is supplied to the subtraction unit 254.
  • the subtraction unit 254 is supplied from the frame memory 253 at the corresponding position from the pixel value of the pixel belonging to the foreground region of the region specific object of the frame # ⁇ supplied from the object extraction unit 251. Then, the pixel values of the pixels belonging to the foreground area of the area specifying object of frame # ⁇ _1 are subtracted to obtain the frame difference of the pixels belonging to the foreground area.
  • the subtraction unit 254 is supplied from the frame memory 253 at the corresponding position from the pixel value of the pixel belonging to the mixed region of the region-specific object of the frame # ⁇ supplied from the object extraction unit 251.
  • the pixel values of the pixels belonging to the mixed region of the region-specific object of the divided frame are subtracted to obtain the frame difference of the pixels belonging to the mixed region. Ask.
  • the subtraction unit 254 does not perform the subtraction when a value indicating that the pixel of the region specifying object of the frame #n belongs to the background region is set.
  • the subtraction unit 254 sets the frame difference of the pixel belonging to the foreground region or the frame difference of the pixel belonging to the mixed region to the corresponding pixel of the region identification object, and sets the frame difference of the pixel belonging to the foreground region and the mixed region.
  • An area specifying object in which a frame difference of a pixel to which the pixel belongs or a value indicating that the pixel belongs to a background area is supplied to the threshold value processing unit 255.
  • the threshold value processing unit 255 calculates the input threshold value Th and the frame difference between the pixels belonging to the foreground region set for the pixels of the region specifying object supplied from the subtraction unit 255, or The frame difference of the pixels belonging to the mixed area is compared. If the frame difference of the area specifying object is determined to be larger than the threshold Th, the threshold direct processing unit 255 sets a value indicating that the pixel belongs to the mixed area to the corresponding pixel of the area specifying object. I do.
  • the threshold value processing unit 255 sets a value indicating that the pixel belongs to the foreground area to the corresponding pixel of the area specifying object. I do.
  • the threshold processing unit 255 sets a value indicating that the pixel belongs to the background area, a value indicating that the pixel belongs to the mixed area, or a value indicating that the pixel belongs to the foreground area.
  • the area specifying object is output to the outside as area information including information indicating the mixed area, or is output to the time change detection unit 256.
  • FIG. 36 is a view for explaining an example of the processing of the threshold value processing unit 255.
  • the position of pixel P04 which consists of the foreground components FO l / v, F02 / v, F03 / v, and F04 / v, belonging to the foreground area of frame #nl,
  • the position coincides with the position of the pixel C04, which consists of the foreground components FO l / v, F02 / v, F03 / v, and F04 / v, which belongs to the foreground area of the frame.
  • the position of pixel P05 composed of F05 / v is the pixel composed of foreground components F02 / v, F03 / v, F04 / v, and F05 / v belonging to the foreground area of frame #n due to motion compensation. It matches the position of C05.
  • the positions of pixels P06, P07, P08, and P09 belonging to the foreground area of frame # n-1 have the same value belonging to the foreground area of frame #n due to motion compensation. Coincides with the position of pixel C06, pixel C07, pixel C08, or pixel C09 having.
  • the threshold processing unit 255 determines that the frame difference is equal to or smaller than the threshold Th, and the pixels C04, C05, and C06 , Pixel C07, Pixel C08, and Pixel C09 are set with values indicating that they belong to the foreground area.
  • the position of the pixel P01 belonging to the mixed region of the frame #n_l corresponds to the position of the pixel C01 belonging to the foreground region of the frame #n. Since the pixel P01 includes the background component B02 / v, while the pixel C01 includes the background component B06 / v, the subtraction unit 254 generates the background component B02 / V and the background component B06 / v. Output the frame difference corresponding to v.
  • the threshold processing unit 255 determines that the frame difference is larger than the threshold Th, and determines that the pixel C01 belongs to the mixed area. Set the value shown.
  • the position of pixel P02 belonging to the mixed area of frame # n-1 corresponds to the position of pixel C02 belonging to the foreground area of frame #n.
  • the pixel P02 includes the background component B03 / v
  • the pixel C02 includes the background component B07 / v.
  • the subtraction unit 254 generates the background component B03 / V and the background component B07. Outputs the frame difference corresponding to / v.
  • the threshold processing unit 255 determines that the frame difference is larger than the threshold Th, and determines that the pixel C02 belongs to the mixed area. Set the value shown.
  • the subtraction unit 254 outputs a frame difference corresponding to the background component B04 / v and the background component B08 / v corresponding to the pixel C03 belonging to the mixed region, and outputs the pixel difference belonging to the mixed region. Outputs a frame difference corresponding to the background component Bl l / v and the background component B15 / v corresponding to C10, and outputs the background component B12 / v and the background corresponding to the pixel C11 belonging to the mixed area. And outputs the frame difference corresponding to the background component B13 / v and the background component B17 / v corresponding to the pixel C12 belonging to the mixed area.
  • the threshold value processing unit 255 sets a value indicating that the pixel belongs to the mixed area to each of the pixel C03, the pixel C10, the pixel Cl1, and the pixel C12.
  • the time change detection unit 256 determines the covered background area and the uncovered background area based on the area information including the information indicating the mixed area supplied from the threshold processing unit 255. Specifically, area information including information indicating the covered background area and the uncovered background area is generated.
  • FIG. 37 is a block diagram illustrating the configuration of the time change detection unit 256.
  • the frame memory 261 when judging the area for the pixel of the frame # ⁇ , has the area information including the information indicating the mixed area of the frame # ⁇ _1 and the frame # ⁇ supplied from the threshold value processing unit 255. Is stored.
  • the region determination unit 26 2 for each pixel of the mixed region of the frame, based on the frame # ⁇ -1 stored in the frame memory 26 1 and the region information including the information indicating the mixed region of the frame to, It is determined whether the area belongs to the covered background area or the uncovered background area, and area information including information indicating the covered background area and the uncovered background area is generated. Output.
  • Pixels in frame # n-1 corresponding to pixels belonging to the mixed area of the frame are the background When belonging to the region, the pixels belonging to the mixed region of frame #n belong to the covered background region.
  • A indicates an uncovered background area
  • B indicates a foreground area
  • C indicates a covered background area
  • D indicates a background area.
  • the area determining unit 26 2 determines that the pixel belonging to the mixed area of frame #n belongs to the uncovered background area, When one corresponding pixel belongs to the background area, it is determined that the pixel belonging to the mixed area of the frame belongs to the covered background area.
  • step S ⁇ b> 251 the object extraction unit 251 of the region identification unit 103 determines the foreground image corresponding to the foreground object by performing, for example, contour detection processing based on the input image.
  • an area specifying object is generated by setting a value indicating that the pixel belongs to the background area to belong to the background area.
  • the object extracting unit 25 1 supplies the generated region specifying object to the motion compensating unit 25 2 and the subtracting unit 25 4.
  • step S252 the motion compensating unit 2552 extracts the region specifying object supplied from the object extracting unit 251, based on the motion vector supplied from the motion detecting unit 102 and its position information. Perform motion compensation.
  • the motion compensator 252 supplies the motion-compensated area specifying object to the frame memory 253.
  • the frame memory 2553 stores the motion-compensated region specifying object, and supplies the stored region specifying object to the subtraction unit 2554.
  • the subtraction unit 254 includes the region identification object of the frame #n supplied from the object extraction unit 251 and the motion-compensated frame #nl supplied from the frame memory 253.
  • the difference with the region specifying object is obtained, and the obtained difference is supplied to the threshold processing unit 255.
  • the threshold processing unit 255 calculates, based on the threshold Th, the difference between the region specifying object of frame #n and the region specifying object of frame 1 that has been motion compensated. Then, the mixed area is detected, and the area information including the information indicating the mixed area is output to the outside or supplied to the time change detecting unit 256.
  • step S255 the time change detection unit 256 executes the process of detecting the covered background area or the uncovered background area based on the area information including the information indicating the mixed area, and The area information including the information indicating the background area or the covered background area is generated, the generated area information is output, and the process ends.
  • step S261 the region determination unit 262 of the time change detection unit 256 determines whether or not the pixel of the previous frame corresponding to the pixel of interest belonging to the mixed region belongs to the foreground region. Is determined, and if it is determined that the corresponding pixel of the previous frame belongs to the foreground area, the process proceeds to step S262, where the pixel of interest is set to belong to the uncovered background area, and the process ends. I do.
  • step S261 When it is determined in step S261 that the corresponding pixel of the previous frame belongs to the background area, the process proceeds to step S2663, and the area determination unit 262 determines that the pixel of interest is a covered background. It is set to belong to the area, and the process ends.
  • the region identifying unit 103 determines the foreground image object corresponding to the foreground object of the frame in which the pixel of interest exists and the frame before the frame in which the pixel of interest exists. Based on the motion-compensated foreground image object, specifies whether the pixel of interest belongs to the foreground area, background area, or mixed area, and generates area information corresponding to the specified result can do.
  • the area specifying unit 103 sets the image in front of the frame in which the pixel of interest exists. Based on the area information of the frame, it is possible to detect whether or not the pixel of interest belonging to the mixed area belongs to the uncovered background area or to the covered background area.
  • FIG. 43 is a block diagram showing still another configuration of the area specifying unit 103. As shown in FIG. The same parts as those shown in FIG. 32 are denoted by the same reference numerals, and description thereof will be omitted.
  • the discriminating unit 281 extracts the motion vector and its position information supplied from the motion detecting unit 102, and the area information including the information indicating the mixed area supplied from the threshold processing unit 255. Identify the covered background area or uncovered background area, generate area information including information indicating the covered background area or the uncovered background area, and output the generated area information. .
  • FIG. 44 is a diagram for explaining the determination process of the identification unit 281.
  • A indicates an uncovered background area
  • B indicates a covered background area.
  • a and b indicate the pixel of interest.
  • V indicates a motion vector.
  • the discriminating unit 281 sets the pixel of interest to the uncovered back. Judge as belonging to the ground area.
  • the discriminating unit 281 sets the pixel of interest to the covered background area. It is determined to belong to.
  • the identification unit 2 that processes the mixed area The following describes the process of detecting a covered background area or an uncovered background area according to 81.
  • step S281 the identification unit 281 determines whether the pixel of interest is located at the front end of the foreground object in the direction of motion, and determines whether the pixel of interest is in the foreground. If it is determined that the pixel is located at the front end in the movement direction of the object, the process advances to step S282 to set that the pixel of interest belongs to the covered background area, and the process ends.
  • step S281 If it is determined in step S281 that the pixel of interest is not located at the front end in the direction of motion of the foreground object, the pixel of interest is located at the rear end of the motion direction of the foreground object. Since it is located in the area, the identification unit 281 proceeds to step S2833, sets that the pixel of interest belongs to the anchored background area, and ends the processing.
  • the region specifying unit 103 determines whether the pixel of interest belonging to the mixed region belongs to the covered background region or the uncovered background region based on the motion vector. be able to.
  • FIG. 46 is a block diagram illustrating an example of a configuration of the mixture ratio calculation unit 104.
  • the estimated mixture ratio processing unit 401 calculates an estimated mixture ratio for each pixel by an operation corresponding to the model of the covered background area based on the input image, and uses the calculated estimated mixture ratio as the mixture ratio determination unit. Supply to 4003. '
  • the estimated mixture ratio processing unit 402 calculates an estimated mixture ratio for each pixel by an operation corresponding to the model of the uncovered background area based on the input image, and uses the calculated estimated mixture ratio as the mixture ratio determination unit. Supply to 4003.
  • the mixing ratio of the pixels belonging to the mixed region has the following properties. That is, the mixture ratio changes linearly in response to a change in the position of the pixel. If the change in pixel position is one-dimensional, the change in the mixture ratio can be represented by a straight line. If the change in pixel position is two-dimensional, the change in the mixture ratio can be represented by a plane. so Wear.
  • the slope of the mixture ratio is the inverse ratio of the amount of motion V in the foreground within the shutter time.
  • Fig. 47 shows an example of the ideal mixture ratio Of.
  • the slope 1 in the mixing region with the ideal mixing ratio can be expressed as the reciprocal of the motion amount V.
  • the ideal mixture ratio has a value of 1 in the background region, a value of 0 in the foreground region, and a value exceeding 0 and less than 1 in the mixture region.
  • the pixel value C06 of the seventh pixel from the left of frame #n can be expressed by equation (4) using the pixel value P06 of the seventh pixel from the left of frame-1. it can.
  • the pixel value C06 is expressed as the pixel value ⁇ of the pixel in the mixed area
  • the pixel value ⁇ 06 is expressed as the pixel value ⁇ of the pixel in the background area. That is, the pixel value ⁇ of the pixel in the mixed region and the pixel value ⁇ of the pixel in the background region can be expressed as Expressions (5) and (6), respectively.
  • Equation (4) corresponds to the mixing ratio. Since the motion amount V is 4, the mixture ratio of the seventh pixel from the left of the frame is 0.5.
  • Equation (3) indicating the mixture ratio can be rewritten as equation (7).
  • C -P + f (7)
  • Equation (7) is the sum ⁇ iFi / v of the foreground components included in the pixel of interest.
  • the variables included in equation (7) are the mixture ratio ⁇ and the sum f of the foreground components.
  • Fig. 49 shows a model in which pixel values are expanded in the time direction, where the amount of motion V is 4 and the number of virtual divisions in the time direction is 4, in the uncovered background area.
  • the pixel value C of the frame #n of interest is regarded as the pixel value of the mixed area
  • the frame # n + l after the frame Equation (3), which indicates the mixture ratio can be expressed as Equation (8) by regarding the pixel value N of as the pixel value of the background region.
  • the pixel value of the pixel at the position corresponding to the background motion amount V can be used to obtain the expression Equations (4) to (8) can be applied.
  • the equation (6) The pixel value B of the pixel in the background area in is set to the pixel value P04.
  • Equations (7) and (8) each contain two variables, so the mixture ratio cannot be determined as it is.
  • an image generally has a strong spatial correlation, adjacent pixels have substantially the same pixel value.
  • the equation is modified so that the sum f of the foreground component can be derived from the previous or subsequent frame, and the mixture ratio is determined.
  • the pixel value Mc of the seventh pixel from the left of frame #n in FIG. 50 can be expressed by equation (9).
  • Equation (9) 2 / v in the first term on the right side of equation (9) corresponds to the mixture ratio.
  • the second term on the right side of equation (9) is expressed as in equation (10) using the pixel value of the subsequent frame # n + l.
  • Equation (1 1) is established using the spatial correlation of the foreground components.
  • Equation (14) holds for all pixels in the mixed area from the relationship of the internal division ratio.
  • equation (14) holds, equation (7) can be expanded as shown in equation (15).
  • equation (14) holds, then equation (8) becomes Can be expanded to.
  • Equation (15) and Equation (16) C, N, and P are known pixel values, and therefore, Equation (15) and Equation (16) The variable included in the parentheses is only the mixing ratio.
  • the relationship between C, N, and P in Equations (15) and (16) is shown in Fig. 51, where c C is the pixel value of the pixel of interest in frame #n for calculating the mixture ratio a. It is. N is the pixel value of the pixel in frame # n + l whose spatial position corresponds to the pixel of interest. P is the pixel value of the pixel of frame #nl, whose position in the spatial direction corresponds to the pixel of interest.
  • each of the expressions (15) and (16) includes one variable, the mixture ratio o can be calculated using the pixel values of the pixels of the three frames.
  • the condition for calculating the correct mixture ratio is that the foreground components related to the mixture area are equal, that is, the foreground object is stationary. Pixels in the foreground image object imaged when the object is located at the boundary of the image object, corresponding to the direction of motion of the foreground object, and continuous pixels twice as many as the amount of motion V The pixel value of is constant.
  • the mixture ratio of the pixels belonging to the covered background region is calculated by Expression (17), and the mixture ratio of the pixels belonging to the anchored background region is calculated by Expression (18).
  • FIG. 52 is a block diagram illustrating a configuration of the estimated mixture ratio processing unit 401.
  • the frame memory 4 2 1 stores the input image in units of frames and inputs the image as an input image. The next frame after the current frame is supplied to the frame memory 422 and the mixing ratio calculation unit 423.
  • the frame memory 422 stores the input image in frame units, and supplies the next frame from the frame supplied from the frame memory 421 to the mixture ratio calculation unit 423.
  • the frame memory 4 21 supplies the frame #n to the mixture ratio calculation unit 4 23 to 22 supplies the frame #n_l to the mixture ratio calculation section 4 23.
  • the mixture ratio calculation unit 4 23 calculates the pixel value c of the pixel of interest in the frame to, the frame # n + l corresponding to the pixel of interest and the spatial position. Based on the pixel value N of the pixel of interest and the pixel value P of the pixel of frame # n -1 corresponding to the pixel of interest and the spatial position, the estimated mixture ratio of the pixel of interest is calculated. The calculated estimated mixture ratio is output.
  • the mixture ratio calculation unit 4 23 sets the pixel value C of the pixel of interest in frame #n, the position in the frame equal to the pixel of interest, and frame #n Based on the pixel value N of the pixel of + l and the pixel value P of the pixel of frame # n-1 at the same position in the frame as the pixel of interest, the estimated mixture ratio of the pixel of interest is calculated. And outputs the calculated estimated mixture ratio.
  • the estimated mixture ratio processing unit 401 can calculate the estimated mixture ratio based on the input image and supply it to the mixture ratio determination unit 403.
  • the estimated mixture ratio processing unit 402 calculates the estimated mixture ratio of the pixel of interest by the calculation shown in Expression (17). Since the calculation shown in (18) is the same as that of the estimated mixture ratio processing unit 401 except that the part for calculating the estimated mixture ratio of the pixel of interest is different, the description is omitted.
  • FIG. 53 is a diagram illustrating an example of the estimated mixture ratio calculated by the estimated mixture ratio processing unit 401.
  • the estimated mixture ratio shown in Fig. 53 shows the result when the amount of motion V of the foreground corresponding to the object moving at a constant speed is 11 for one line.
  • the estimated mixture ratio is In the mixing region, it changes almost linearly, as shown in Figure 47. You can see that it is.
  • the mixture ratio determination unit 4003 determines that the pixels for which the mixture ratio is to be calculated, supplied from the region identification unit 103, are the foreground region, the background region, the covered back dark region, Alternatively, the mixture ratio Of is set based on area information indicating whether the pixel belongs to any of the uncovered background areas. If the target pixel belongs to the foreground area, the mixture ratio determination unit 403 sets 0 to the mixture ratio, and if the target pixel belongs to the background area, sets 1 to the mixture ratio. If the target pixel belongs to the covered background area, the estimated mixing ratio supplied from the estimated mixing ratio processing unit 401 is set to the mixing ratio, and the target pixel belongs to the uncovered background area. The estimated mixture ratio supplied from the estimated mixture ratio processing unit 402 is set as the mixture ratio a. The mixture ratio determination unit 403 outputs a mixture ratio set based on the area information.
  • FIG. 54 is a block diagram showing another configuration of the mixture ratio calculating section 104.
  • the selection unit 44 1 determines the pixels belonging to the covered background area and the corresponding pixels of the previous and subsequent frames based on the estimated mixture ratio processing unit 4. 4 Feed to 2.
  • the selection section 4441 estimates and mixes the pixels belonging to the anchored background area and the corresponding pixels of the previous and subsequent frames. Supplied to ratio processing section 4 4 3.
  • the estimated mixture ratio processing unit 4442 Based on the pixel value input from the selection unit 441, the estimated mixture ratio processing unit 4442 performs the estimated mixture of the pixel of interest belonging to the covered background area by the calculation shown in Expression (17). The ratio is calculated, and the calculated estimated mixture ratio is supplied to the selection unit 4 4 4.
  • the estimation mixture ratio processing unit 4443 estimates the pixel of interest belonging to the uncovered background area by the calculation shown in Expression (18). The mixture ratio is calculated, and the calculated estimated mixture ratio is supplied to the selection unit 4 4 4.
  • the selection unit 444 selects an estimated mixture ratio of 0 and sets the mixture ratio as the mixture ratio when the target pixel belongs to the foreground region based on the region information supplied from the region identification unit 103. However, if the target pixel belongs to the background area, an estimated mixture ratio of 1 is selected and set as the mixture ratio.
  • the selection unit 444 selects the estimated mixture ratio supplied from the estimated mixture ratio processing unit 442 and sets it as the mixture ratio. If it belongs to the uncovered background area, the estimated mixture ratio supplied from the estimated mixture ratio processing unit 443 is selected and set as the mixture ratio.
  • the selection unit 444 outputs a mixture ratio selected and set based on the area information.
  • the mixture ratio calculation unit 104 having another configuration shown in FIG. 54 can calculate the mixture ratio for each pixel including the image, and can output the calculated mixture ratio.
  • step S401 the mixture ratio calculation unit 104 acquires the area information supplied from the area identification unit 103.
  • the estimated mixture ratio processing unit 401 executes a process of calculating the estimated mixture ratio using a model corresponding to the covered background area, and supplies the calculated estimated mixture ratio to the mixture ratio determination unit 403 I do.
  • the details of the calculation process of the mixture ratio estimation will be described later with reference to the flowchart in FIG.
  • the estimated mixture ratio processing unit 402 executes a process of calculating the estimated mixture ratio using a model corresponding to the uncovered background area, and calculates the calculated estimated mixture ratio in the mixture ratio determination unit 400. Supply to 3.
  • step S404 the mixture ratio calculation unit 104 determines whether or not the mixture ratio has been estimated for the entire frame. If it is determined that the mixture ratio has not been estimated for the entire frame, Returning to S402, the process of estimating the mixture ratio for the next pixel is executed.
  • step S404 the mixture ratio was estimated for the entire frame. If it is determined, the process proceeds to step S405, and the mixture ratio determination unit 403 determines whether the pixel belongs to any of the foreground area, background area, covered background area, or uncovered background area. The mixing ratio is set based on the area information supplied from the area specifying unit 103 shown in FIG. If the target pixel belongs to the foreground area, the mixing ratio determination unit 4003 sets 0 to the mixing ratio, and if the target pixel belongs to the background area, sets 1 to the mixing ratio. When the target pixel belongs to the covered background area, the estimated mixing ratio supplied from the estimated mixing ratio processing unit 401 is set to the mixing ratio, and when the target pixel belongs to the uncovered background area, the estimation is performed. The estimated mixture ratio supplied from the mixture ratio processing unit 402 is set to the mixture ratio a, and the process ends.
  • the mixture ratio calculation unit 104 calculates the mixture ratio ⁇ , which is a feature amount corresponding to each pixel, based on the region information supplied from the region identification unit 103 and the input image. be able to.
  • the process of calculating the mixture ratio by the mixture ratio calculation unit 104 whose configuration is shown in FIG. 54 is the same as the process described in the flowchart of FIG. 55, and a description thereof will be omitted.
  • step S 421 the mixture ratio calculation unit 423 acquires the pixel value C of the target pixel of the frame # ⁇ from the frame memory 421.
  • step S422 the mixture ratio calculation unit 423 acquires the pixel value ⁇ of the pixel of frame # ⁇ -1 corresponding to the target pixel from the frame memory 422.
  • step S 423 the mixture ratio calculation unit 423 acquires the pixel value ⁇ of the pixel of frame # ⁇ + 1 corresponding to the target pixel included in the input image.
  • step S 4 24 the mixture ratio calculation unit 4 23 calculates the pixel value C of the pixel of interest in frame # ⁇ , the pixel value P of the pixel in frame ⁇ 1, and the pixel value N of the pixel in frame # n + l. Calculate the estimated mixture ratio based on In step S425, the mixture ratio calculation unit 423 determines whether the process of calculating the estimated mixture ratio has been completed for the entire frame, and ends the process of calculating the estimated mixture ratio for the entire frame. If it is determined that it has not been performed, the process returns to step S421, and the process of calculating the estimated mixture ratio for the next pixel is repeated.
  • step S425 If it is determined in step S425 that the process of calculating the estimated mixture ratio has been completed for the entire frame, the process ends.
  • the estimated mixture ratio processing unit 401 can calculate the estimated mixture ratio based on the input image.
  • step S403 in FIG. 55 The process of estimating the mixture ratio by the model corresponding to the uncovered background castle in step S403 in FIG. 55 is performed by using the equation corresponding to the model in the uncovered background region, as shown in the flowchart of FIG. Since the processing is the same as that shown, the description is omitted.
  • estimated mixture ratio processing unit 4 42 and the estimated mixture ratio processing unit 4 43 shown in FIG. 54 execute the same processing as the flow chart shown in FIG. 56 to calculate the estimated mixture ratio. The description is omitted.
  • the above-described processing for obtaining the mixture ratio can be applied even when the image corresponding to the background area includes motion.
  • the estimated mixture ratio processing unit 401 shifts the entire image in accordance with the movement of the background, and the object corresponding to the background is stationary. Processing is performed in the same way as when Also, when the image corresponding to the background region includes a different background motion for each region, the estimated mixture ratio processing unit 401 responds to the background motion as a pixel corresponding to a pixel belonging to the mixed region. A pixel is selected and the above-described processing is performed.
  • the mixture ratio calculation unit 104 executes only the mixture ratio estimation process using the model corresponding to the covered background region for all pixels, and outputs the calculated estimated mixture ratio as the mixture ratio. You can do it.
  • the mixture ratio is determined by the background component for the pixels belonging to the covered background area. Indicates the ratio of the foreground component to the pixels belonging to the uncovered packed ground area.
  • the signal processing device can For pixels belonging to the uncovered background area, a mixing ratio indicating the ratio of the background component can be obtained.
  • the mixture ratio calculation unit 104 executes only the mixture ratio estimation process using the model corresponding to the uncovered background area for all the pixels, and outputs the calculated estimated mixture ratio as the mixture ratio. You may do so.
  • the mixing ratio changes linearly in response to the change of the pixel position due to the movement of the object corresponding to the foreground at a constant speed within the shutter time.
  • An equation that approximates the sum of the foreground components and f is established. Using a plurality of pairs of pixel values of pixels belonging to the mixed region and pixel values of pixels belonging to the background region, an equation that approximates the mixture ratio and the sum f of foreground components is solved.
  • Equation (19) i is the spatial index where the position of the pixel of interest is 0. 1 is the slope of the straight line of the mixing ratio a. p is the intercept of the straight line of the mixture ratio and the mixture ratio of the pixel of interest. In Equation (19), the index i is known, but the slope 1 and the intercept p are unknown.
  • Figure 57 shows the relationship between index i, slope and intercept p.
  • white circles indicate the pixel of interest, and black circles indicate the neighboring pixels.
  • black circles indicate the neighboring pixels.
  • a plurality of different mixture ratios for a plurality of pixels are represented by two variables.
  • the five mixture ratios for the five pixels are expressed by two variables, a slope 1 and an intercept p.
  • Equation (20) j is the horizontal index with the position of the pixel of interest set to 0, and k is the vertical index.
  • m is the horizontal inclination of the plane of the mixture ratio
  • q is the vertical inclination of the plane of the mixture ratio.
  • p is the intercept of the plane of the mixing ratio.
  • equations (21) to (23) hold for C05 to C07, respectively.
  • x represents a position in the spatial direction.
  • equation (24) can be expressed as equation (25).
  • Equation (25) j is a horizontal index with the position of the pixel of interest set to 0, and k is a vertical index.
  • Equation (2) 5 the sum of the components of the foreground is given by Equation (2) 5) is approximated by
  • Equation (30) If the sum of the mixture ratio and the foreground component in Equation (9) is replaced using Equations (2 0) and (25), the pixel value M is expressed by Equation (30).
  • the unknown variables are the horizontal slope m of the surface of the mixture ratio, the vertical slope q of the surface of the mixture ratio, and the intercepts p, s, t, and u of the surface of the mixture ratio. There are six.
  • the pixel value M or the pixel value B is set in the normal equation shown in Equation (30) corresponding to the pixel in the vicinity of the pixel of interest, and a plurality of normal values in which the pixel value M or the pixel value B is set Solve the equation by the method of least squares and calculate the mixture ratio.
  • the horizontal index j of the pixel of interest is set to 0, the vertical index k is set to 0, and a 3 ⁇ 3 pixel in the vicinity of the pixel of interest is calculated.
  • Expressions (31) to (39) are obtained.
  • 0 i _ 1 (0) ⁇ B 0> —.
  • ⁇ _ 1 ⁇ + 1 (- 1 ) ⁇ B_ li + 1 ⁇ m + (+1) ⁇ B. 1> +1 ⁇ q + B li + 1 ⁇ p + 1) ⁇ s + (+ l) -. T + u ( 3 7)
  • M 0i + 1 (0) B 0 (+1 .ra + (+ l) .B 0 , + 1q + B 0 , p + (0) .s + (+ l)-t + u (3 8)
  • the values of the horizontal slope m, the vertical slope q, the intercept pst, and u are calculated by the least squares method based on the nine equations (31) to (39). Then, the intercept p may be output as the mixture ratio.
  • the horizontal slope m, vertical slope q, intercept pst, and u are expressed as variables w0 wl w2, w3 w4, and W5, respectively, and jB, kB B, jk, and 1 are a0 al, a 2, is expressed as a 3, a 4, and a5.
  • the equation (3 1) can be rewritten as the equation (4 1).
  • V 0
  • x is any one of integers from 0 to 8.
  • equation (4 2) can be derived.
  • Equation (44) the partial derivative of the variable with respect to the sum of squares E of the error should be zero.
  • V is any value of integers from 0 to 5. Therefore, wy is calculated so as to satisfy Equation (44).
  • equation (45) is obtained.
  • the pixel value of the pixel included in the mixed area is described as M, and the pixel value of the pixel included in the background area is described as B. If the pixel is in the covered background area, or For each case that is included in the covered background area, it is necessary to formulate a normal equation.
  • the pixel values P04 to C08 of the pixel of frame #n and the pixel values P04 to C08 of the pixel of frame # n-1 are obtained.
  • P08 is set as a normal equation.
  • Mcl (-1) ⁇ Bel ⁇ ra + (-1) ⁇ Bel ⁇ q + Bcl ⁇ p + (-l) ⁇ s + (-1) .t + u (4 6)
  • Mc2 (0)-Bc2-m + (-l) ⁇ Bc2 ⁇ q + Bc2 ⁇ p + (0) ⁇ s + (-1) ⁇ t + u (4 7)
  • Mc3 (+ 1)-Bc3 ⁇ ra + (_ l ) Bc3-q + Bc3, p + (+ l)-s + (-l)-t + u (4 8)
  • Mc4 (-1)-Bc4 ⁇ m + (0)-Bc4q + Bc4-p + (-l)-s + (0)-t + u (4 9)
  • Mc5 (0)-Bc5m + (0) Bc5, q + Bc5p + (0) s + (0)-t + u (5 0)
  • Mc6 (+1) Bc6-m + (0)- Bc6-q + Bc6-p + (+ l)-s + (0)-t + u (5 1)
  • Mc7 (-1)-Bc7m + (+1) Bc7q + Bc7-p + (-1) -s + (+1)-t + u (5 2)
  • Mc8 (0)-Bc8m + (+ l) Bc8q + Bc8-p + (0)-s + (+ l)-t + u (5 3)
  • Mc9 (+ 1) Bc9m + (+ l) Bc9q + Bc9-p + (+ l) s + (+ l) -t + u (54)
  • Mu4 (-1)-Bu4-m + (0)-Bu4-q + Bu4-p + (-1)-s + (O)-t + u (5 8)
  • u5 (0) ⁇ Bu5m + (0) Bu5-q + Bu5-p + (0)-s + (0)-t + u (5 9)
  • Mu6 (+ 1)-Bu6m + (0) Bu6 ⁇ q + Bu6p + (+ l)- s + (0)-t + u (6 0)
  • Mu7 (-1)-Bu7-m + (+ l) Bu7-q + Bu7p + (-1)-s + (+ l)-t + u (6 1)
  • Mu8 (0) Bu8-m + ( + l)-Bu8q + Bu8-p + (0)-s + (+ l)-t + u (6 2)
  • FIG. 60 is a block diagram illustrating a configuration of the estimated mixture ratio processing unit 401.
  • the image input to the estimated mixture ratio processing unit 401 is supplied to the delay circuit 501 and the adding unit 502.
  • the delay circuit 501 delays the input image by one frame and supplies it to the adding section 502.
  • delay circuit 501 supplies frame-1 to adding section 502.
  • the adding unit 502 sets the pixel value of the pixel near the pixel for which the mixture ratio a is to be calculated and the pixel value of the frame # n-1 in a normal equation. For example, the adding unit 502 sets the pixel values Mcl to Mc9 and the pixel values Bel to Bc9 in the normal equation based on Expressions (46) to (54). The adding unit 502 supplies the normal equation in which the pixel value is set to the calculating unit 503.
  • the arithmetic section 503 solves the normal equation supplied from the adding section 502 by a sweeping method or the like to obtain an estimated mixture ratio, and outputs the obtained estimated mixture ratio.
  • the estimated mixture ratio processing unit 401 calculates the estimated mixture ratio based on the input image. Then, it can be supplied to the mixing ratio determining unit 403.
  • the estimated mixture ratio processing unit 402 has the same configuration as the estimated mixture ratio processing unit 401, and a description thereof will be omitted.
  • FIG. 61 is a diagram illustrating an example of the estimated mixture ratio calculated by the estimated mixture ratio processing unit 401.
  • the estimated mixture ratio shown in Fig. 61 is the result calculated by generating an equation in units of 7 x 7 pixel blocks, where the foreground motion V corresponding to the object moving at a constant speed is 11 and Is shown for one line.
  • step S ⁇ b> 521 the adding unit 502 sets the pixel value included in the input image and the pixel value included in the image supplied from the delay circuit 501 as a model of the covered background area. Set to the corresponding normal equation.
  • step S522 the estimated mixture ratio processing unit 401 determines whether or not the setting for the target pixel has been completed, and determines that the setting for the target pixel has not been completed. If so, the process returns to step S522, and the process of setting the pixel value to the normal equation is repeated.
  • step S522 when it is determined that the setting of the pixel value for the target pixel has been completed, the process proceeds to step S522, and the arithmetic unit 503 calculates the normal equation in which the pixel value is set. Based on this, the estimated mixture ratio is calculated, and the obtained estimated mixture ratio is output.
  • the estimated mixture ratio processing unit 401 shown in FIG. 60 can calculate the estimated mixture ratio based on the input image.
  • the process of estimating the mixture ratio using the model corresponding to the uncovered background region uses the normal equation corresponding to the model corresponding to the uncovered background region.
  • the processing is the same as the processing shown in the flowchart of FIG.
  • the above-described processing for obtaining the mixture ratio can be applied even when the image corresponding to the background area includes motion.
  • the estimated mixing ratio processing unit 401 shifts the entire image in accordance with this movement, and the object corresponding to the background is stationary. The processing is performed in the same manner as in the case.
  • the estimated mixture ratio processing unit 401 selects a pixel corresponding to the motion as a pixel corresponding to a pixel belonging to the mixed region. The above processing is executed.
  • the mixture ratio calculation unit 102 calculates the mixture ratio, which is a feature amount corresponding to each pixel, based on the region information supplied from the region identification unit 101 and the input image. Can be.
  • the mixture ratio it is possible to separate the foreground component and the background component included in the pixel value while retaining the information on the motion blur included in the image corresponding to the moving object.
  • FIG. 63 is a block diagram illustrating an example of the configuration of the foreground / background separation unit 105.
  • the input image supplied to the foreground / background separation unit 105 is supplied to the separation unit 601, switch 602, and switch 604.
  • Information indicating the covered background area and the area information indicating the uncovered background area supplied from the area specifying unit 103 are supplied to the separating unit 601.
  • the area information indicating the foreground area is supplied to the switch 602.
  • the area information indicating the background area is supplied to the switch 604.
  • the mixture ratio supplied from the mixture ratio calculation unit 104 is supplied to the separation unit 601.
  • the separation unit 601 includes area information indicating the covered background area,
  • the foreground component is separated from the input image based on the region information indicating the background region and the mixture ratio, and the separated foreground component is supplied to the synthesizing unit 603.
  • the separated background component is supplied to the synthesis unit 605.
  • the switch 602 is closed when a pixel corresponding to the foreground is input based on the area information indicating the foreground area, and supplies only the pixel corresponding to the foreground included in the input image to the synthesizing unit 603. I do.
  • the switch 604 is closed when a pixel corresponding to the background is input based on the area information indicating the background area, and supplies only the pixel corresponding to the background included in the input image to the combining unit 605. I do.
  • the synthesis unit 603 synthesizes a foreground component image based on the foreground component supplied from the separation unit 601 and the pixel corresponding to the foreground supplied from the switch 602, and synthesizes the foreground component. Output an image. Since the foreground area and the mixed area do not overlap, the synthesis unit 603 synthesizes the foreground component image, for example, by applying a logical OR operation to the component corresponding to the foreground and the pixel corresponding to the foreground. .
  • the synthesizing unit 603 stores an image in which all pixel values are 0 in a built-in frame memory in an initialization process executed at the beginning of the foreground component image synthesis process. In the synthesis process, the foreground component image is stored (overwritten). Therefore, in the foreground component image output from the combining unit 603, 0 is stored as a pixel value in a pixel corresponding to the background region.
  • the synthesis unit 605 synthesizes a background component image based on the component corresponding to the background supplied from the separation unit 601 and the pixel corresponding to the background supplied from the switch 604, and synthesizes them. Outputs a background component image. Since the background area and the mixed area do not overlap, the synthesis unit 605 synthesizes the background component image by, for example, applying a logical OR operation to the component corresponding to the background and the pixel corresponding to the background.
  • the synthesizing unit 605 stores an image in which all the pixel values are 0 in a built-in frame memory in the initialization process executed at the beginning of the background component image synthesizing process. Stores (overwrites) the background component image in the process of synthesizing the background component image. Therefore, in the background component image output from the combining unit 605, 0 is stored as a pixel value for a pixel corresponding to the foreground area.
  • FIG. 64A is a diagram illustrating an input image input to the foreground / background separation unit 105, and a foreground component image and a background component image output from the foreground / background separation unit 105.
  • FIG. 64B is a diagram illustrating a model of the input image input to the foreground / background separation unit 105 and a model of the foreground component image and the background component image output from the foreground / background separation unit 105.
  • A is a schematic diagram of a displayed image
  • FIG. 64B is a one-line image including pixels belonging to the foreground area, background area, and mixed area corresponding to FIG. 64A.
  • FIG. 4 shows a model diagram in which pixels are developed in the time direction.
  • the background component image output from the foreground / background separation unit 105 is composed of pixels belonging to the background area and background components included in the pixels of the mixed area. You.
  • the foreground component image output from the foreground / background separation unit 105 is composed of the pixels belonging to the foreground area and the foreground components included in the pixels of the mixed area. You.
  • the pixel values of the pixels in the mixed area are separated into a background component and a foreground component by the foreground / background separation unit 105.
  • the separated background component forms a background component image together with the pixels belonging to the background region.
  • the separated foreground component forms a foreground component image together with the pixels belonging to the foreground area.
  • the pixel value of the pixel corresponding to the background region is set to 0, and meaningful pixel values are set to the pixel corresponding to the foreground region and the pixel corresponding to the mixed region.
  • the pixel value of the pixel corresponding to the foreground area is set to 0, and a significant pixel value is set to the pixel corresponding to the background area and the pixel corresponding to the mixed area.
  • FIG. 65 is a model of an image showing foreground components and background components of two frames including a foreground corresponding to an object moving from left to right in the figure.
  • the motion amount V of the foreground is 4, and the number of virtual divisions is 4.
  • the leftmost pixel and the 14th to 18th pixels from the left consist only of background components and belong to the background area.
  • the second through fourth pixels from the left include the background component and the foreground component, and belong to the anchor bird background area.
  • the 11th to 13th pixels from the left include the background component and the foreground component, and belong to the covered background region.
  • the fifth through tenth pixels from the left consist only of foreground components and belong to the foreground area.
  • the first through fifth pixels from the left and the eighteenth pixel from the left consist only of background components and belong to the background area.
  • the sixth through eighth pixels from the left include the background component and the foreground component and belong to the uncovered background area.
  • the fifteenth through seventeenth pixels from the left include the background component and the foreground component, and belong to the covered background area.
  • the ninth to 14th pixels from the left consist only of foreground components and belong to the foreground area.
  • FIG. 66 is a diagram illustrating a process of separating a foreground component from pixels belonging to a covered pack ground area.
  • 1 to Of18 are mixing ratios corresponding to each of the pixels in frame #n.
  • the 15th to 17th pixels from the left belong to the covered background area.
  • 15 is the mixture ratio of the 15th pixel from the left of frame #n.
  • P 15 is This is the pixel value of the 15th pixel from the left of frame #n_l.
  • the foreground component fc included in the pixel value C of the pixel belonging to the covered background area is calculated by Expression (68).
  • is the pixel of the corresponding pixel in the previous frame.
  • FIG. 67 is a diagram illustrating a process of separating a foreground component from pixels belonging to an uncovered background area.
  • 1 to 18 are mixing ratios corresponding to each of the pixels in frame # ⁇ .
  • the second to fourth pixels from the left belong to the uncovered background area.
  • the pixel value C02 of the second pixel from the left of frame # ⁇ is represented by equation (69).
  • N02 is the pixel value of the second pixel from the left of frame # n + l.
  • equation (70) the sum f02 of the foreground components of the second pixel from the left of frame #n is expressed by equation (70).
  • the foreground component fu included in the pixel value C of the pixel belonging to the uncovered background area is calculated by Expression (73).
  • is the pixel value of the corresponding pixel in the next frame.
  • the separation unit 6001 performs the processing based on the information indicating the covered background area and the information indicating the uncovered background area included in the area information and the mixing ratio for each pixel. Foreground components and background components can be separated from pixels belonging to the mixed area.
  • FIG. 68 is a block diagram illustrating an example of the configuration of the separation unit 6001 that performs the above-described processing.
  • the image input to the separation unit 601 is supplied to the frame memory 621, and is an area indicating the covered background area and the uncovered backdrop area supplied from the mixture ratio calculation unit 104.
  • the information and the mixing ratio are input to the separation processing block 622.
  • the frame memory 6 21 stores the input image in frame units.
  • the frame memory 6 2 1 stores the frame # ⁇ - 1, the frame # ⁇ , which is the frame immediately before the frame # ⁇ , and the frame immediately after the frame # ⁇ . Is stored as frame # ⁇ + 1.
  • the frame memory 621 supplies the corresponding pixels of the frame fci-1, frame, and frame # n + l to the separation processing block 622.
  • the separation processing block 622 determines the framemeasurement based on the area information indicating the covered background area and the uncovered background area and the mixing ratio.
  • the operations described with reference to FIGS. 66 and 67 are applied to the pixel values of the corresponding pixels in frame # n-1, frame #n, and frame # n + l supplied from memory 6 21. Applying.
  • the foreground component and the background component are separated from the pixels belonging to the mixed area of the frame and supplied to the frame memory 623.
  • the separation processing block 6 22 is composed of an covered area processing section 6 31, a covered area processing section 6 32, a combining section 6 33, and a combining section 6 3 4.
  • the multiplier 641 of the uncovered area processing unit 631 multiplies the mixture ratio by the pixel value of the pixel of frame # n + l supplied from the frame memory 621, and outputs the result to the switch 642. Output.
  • the switch 642 is closed when the pixel of frame #n (corresponding to the pixel of frame # n + l) supplied from the frame memory 621, is an uncovered background area, and the multiplier is closed.
  • the pixel value multiplied by the mixture ratio supplied from 641 is supplied to the computing unit 643 and the combining unit 6334.
  • the value obtained by multiplying the pixel value of the pixel of frame # n + 1 output from switch 642 by the mixture ratio is equal to the background component of the pixel value of the corresponding pixel of frame # ⁇ .
  • Arithmetic unit 643 subtracts the background component supplied from switch 642 from the pixel value of the pixel of frame #n supplied from frame memory 621, and obtains the foreground component.
  • the arithmetic unit 634 supplies the foreground component of the frame th pixel belonging to the uncovered background area to the synthesizing unit 633.
  • the multiplier 651 of the covered area processing unit 632 multiplies the mixture ratio by the pixel value of the pixel of the frame-1 supplied from the frame memory 621, and outputs the result to the switch 652. .
  • the switch 652 is closed when the pixel of frame #n (corresponding to the pixel of frame #nl) supplied from the frame memory 621, is a covered background area, and is supplied from the multiplier 651.
  • the pixel value multiplied by the mixture ratio is supplied to the computing unit 653 and the combining unit 6334.
  • the value obtained by multiplying the pixel value of the pixel of frame # n-1 output from switch 652 by the mixture ratio is equal to the background component of the pixel value of the corresponding pixel of frame #n.
  • the arithmetic unit 6553 stores the pixel of the frame #n supplied from the frame memory 6211.
  • the foreground component is obtained by subtracting the background component supplied from the switch 652 from the pixel value.
  • the arithmetic unit 653 supplies the foreground component of the pixel of frame #n belonging to the covered background area to the combining unit 633.
  • the synthesizing unit 633 includes a foreground component of the pixel belonging to the anchored background area supplied from the computing unit 643 of the frame ⁇ and a covered background supplied from the computing unit 653.
  • the foreground components of the pixels belonging to the area are combined and supplied to the frame memory 6 23.
  • the synthesizing unit 634 includes, in the frame, the background component of the pixel belonging to the anchored background area supplied from the switch 642 and the covered background area supplied from the switch 652.
  • the background components of the pixels are combined and supplied to the frame memory 623.
  • the frame memory 62 3 stores the foreground component and the background component of the pixels in the mixed area of the frame #n supplied from the separation processing block 62 2, respectively.
  • the frame memory 623 outputs the stored foreground components of the pixels in the mixed area of frame #n and the stored background components of the pixels in the mixed area of frame #n.
  • Combining unit 6 0 3 outputted from demultiplexing section 6 0 1, the foreground component of the picture element in the mixed area of the frame #n, and the pixels belonging to the foreground area to generate the foreground component image (Synthesis).
  • the unit 605 combines the background component of the pixel in the mixed area of the frame #n and the pixel belonging to the background area output from the separating unit 601 to generate a background component image.
  • A shows an example of the foreground component image corresponding to frame #n in Fig. 65.
  • the leftmost pixel and the 14th pixel from the left represent the background before the foreground and background are separated.
  • the pixel value is set to 0 because it consists only of
  • the second to fourth pixels from the left belong to the covered background area before the foreground and background are separated, the background component is set to 0, and the foreground component is It is left as it is.
  • the 11th to 13th pixels from the left belong to the covered background area, the background component is set to 0, and the foreground component is left as it is.
  • the 5th to 10th pixels from the left are left as they are because they consist only of foreground components.
  • FIG. 69B shows an example of a background component image corresponding to the frame ⁇ of FIG.
  • the leftmost pixel and the 14th pixel from the left are left alone because they consisted only of the background component before the foreground and background were separated.
  • the second to fourth pixels from the left belong to the covered background area before the foreground and the background are separated, the foreground component is set to 0, and the background component is left as it is.
  • the 11th to 13th pixels from the left belong to the covered background area before the foreground and background are separated, the foreground component is set to 0, and the background component is left as it is. Since the fifth through tenth pixels from the left consist only of the foreground components before the foreground and background are separated, the pixel value is set to 0.
  • step S601 the frame memory 621 of the separation unit 601 acquires the input image, and sets the frame # ⁇ to be separated from the foreground and the background into the frame # ⁇ 1 before the frame # ⁇ 1 and the subsequent frame # ⁇ 1. With frame # ⁇ + 1.
  • step S602 the separation processing block 622 of the separation unit 601 acquires the area information supplied from the mixture ratio calculation unit 104.
  • step S603 the separation processing block 622 of the separation unit 601 acquires the mixture ratio supplied from the mixture ratio calculation unit 104.
  • step S604 the uncovered area processing unit 631 determines the pixel value of the pixel belonging to the uncovered background area supplied from the frame memory 621, based on the area information and the mixture ratio. , The background components are extracted.
  • step S 605 the anchored area processing unit 631 sends the area information and ⁇ Extract the foreground component from the pixel values of the pixels belonging to the uncovered background area supplied from the frame memory 621, based on the mixture ratio.
  • step S606 the covered area processing unit 632 determines the background from the pixel values of the pixels belonging to the covered background area supplied from the frame memory 621, based on the area information and the mixture ratio. Extract the components of
  • step S607 the covered area processing unit 632 determines the foreground based on the pixel values of the pixels belonging to the covered background area supplied from the frame memory 621, based on the area information and the mixture ratio. Extract the components of
  • step S 608 the synthesizing section 633 3 extracts the foreground components of the pixels belonging to the uncovered background area extracted in the processing in step S 605 and the components in the processing in step S 607.
  • the pixels belonging to the covered background area are combined with the foreground components.
  • the synthesized foreground component is supplied to the synthesis unit 603. Further, the synthesizing unit 603 synthesizes the pixels belonging to the foreground area supplied via the switch 602 with the foreground components supplied from the separating unit 601 to generate a foreground component image. To achieve.
  • step S609 the synthesizing unit 634 extracts the background components of the pixels belonging to the uncovered background area extracted in the processing of step S604 and the background components of the pixels in the processing of step S606. And the background components of the pixels belonging to the covered background area.
  • the synthesized background component is supplied to the synthesis unit 605. Further, the synthesizing unit 605 synthesizes the pixels belonging to the background area supplied via the switch 604 and the background component supplied from the separating unit 601 to generate a background component image. To achieve.
  • step S610 the synthesizing unit 603 outputs a foreground component image.
  • step S611 the synthesizing unit 605 outputs the background component image, and the process ends.
  • the foreground / background separation unit 105 separates the foreground component and the background component from the input image based on the area information and the mixture ratio, and outputs the foreground component including only the foreground component.
  • a component image and a background component image consisting of only a background component can be output.
  • FIG. 71 is a block diagram illustrating an example of the configuration of the motion-blur adjusting unit 106.
  • the motion vector and its position information supplied from the motion detection unit 102 and the region information supplied from the region identification unit 103 are supplied to the processing unit determination unit 801 and the modeling unit 802. Is done.
  • the foreground component image supplied from the foreground / background separating unit 105 is supplied to the adding unit 804.
  • the processing unit determination unit 801 supplies the generated processing unit to the modeling unit 802 together with the motion vector based on the motion vector, its position information, and the area information.
  • the processing unit determination unit 801 supplies the generated processing unit to the adding unit 804.
  • the processing unit is composed of, for example, two data: an upper left point (a pixel specified by the processing unit and a position of a pixel located at the leftmost or uppermost position on the image) and a lower right point.
  • the modeling unit 8002 sets the virtual division number to 5 and is positioned at the leftmost position.
  • the pixel contains one foreground component
  • the second pixel from the left Component the third pixel from the left contains three foreground components
  • the fourth pixel from the left contains four foreground components
  • the fifth pixel from the left contains five foreground components
  • the sixth pixel from the left contains five foreground components
  • the seventh pixel from the left contains five foreground components
  • the eighth pixel from the left contains five foreground components
  • the ninth from the left is the number of pixels corresponding to the processing unit.
  • Pixel contains four foreground components
  • the 10th pixel from the left contains three foreground components
  • the 11th pixel from the left contains two foreground components
  • the 12th pixel from the left Selects a model that contains one foreground component and has a total of eight foreground components.
  • the modeling unit 8002 when the motion vector and the processing unit are supplied, instead of selecting from the models stored in advance, the modeling unit 8002 generates the model based on the motion vector and the processing unit. You may make it generate
  • the modeling unit 802 supplies the selected model to the equation generation unit 803.
  • the equation generation unit 803 generates an equation based on the model supplied from the modeling unit 802. Referring to the model of the foreground component image shown in Fig. 73, the number of foreground components is 8, the number of pixels corresponding to the processing unit is 12, the amount of motion V is 5, and the number of virtual divisions is The equation generated by the equation generator 803 when the value is 5 will be described.
  • C04 F04 / v + F03 / v + F02 / v + F01 / v (77)
  • C05 F05 / v + F04 / v + F03 / v + F02 / v + F01 / v (78)
  • C07 F07 / v + F06 / v + F05 / v + F04 / v + F03 / v (80)
  • C08 F08 / v + F07 / v + F06 / v + F05 / v + F04 / v (8 1)
  • Equations (86) to (97) show the equations generated by the equation generator 803.
  • C02 l ⁇ FOl / v + 1 ⁇ F02 / v + 0 ⁇ F03 / v + 0 ⁇ F04 / v + 0 ⁇ F05 / v
  • Equations (86) to (97) can also be expressed as Equation (98).
  • j indicates the position of the pixel.
  • j has a value of any one of 1 to 12.
  • I indicates the position of the foreground value.
  • i has a value from 1 to 8.
  • aij has a value of 0 or 1 corresponding to the values of i and j.
  • Equation (98) When expressed in consideration of errors, Equation (98) can be expressed as Equation (99).
  • Equation (99) ej is an error included in the target pixel Cj.
  • Equation (99) can be rewritten as equation (100).
  • Equation (10 2) since the motion amount v is a fixed value, Equation (10 3) can be derived.
  • the equation generating section 803 supplies the normal equation generated in this way to the adding section 804.
  • the adding unit 804 converts the pixel value C included in the foreground component image into an equation of a matrix supplied from the equation generating unit 803 based on the processing unit supplied from the processing unit determining unit 801. Set.
  • the adding unit 804 supplies the matrix in which the pixel values C are set to the arithmetic unit 805.
  • the arithmetic unit 805 calculates the foreground component Fi / v from which the motion blur has been removed by processing based on a solution method such as the sweeping-out method (Gauss-Jordan elimination), and calculates the foreground pixel from which the motion blur has been removed.
  • the value Fi which corresponds to any one of the integers from 0 to 8, is calculated, and the motion blur is removed from the pixel value Fi from which the motion blur has been removed, as shown in FIG. 74.
  • the foreground component image is output to the motion blur adding unit 806 and the selecting unit 807.
  • each of F01 to F08 is set for each of C03 to C10 so that the position of the foreground component image with respect to the screen is not changed. It can correspond to any position.
  • the motion blur adding unit 806 includes a motion blur adjustment amount v ′ having a value different from the motion amount V, for example, a motion blur adjustment amount v ′ having a half value of the motion amount V, and a value irrelevant to the motion amount V.
  • the motion blur adding unit 806 divides the foreground pixel value Fi from which the motion blur has been removed by the motion blur adjustment amount v ′ to obtain a foreground component Fi / v ′. Is calculated, and the sum of the foreground components Fi / v 'is calculated to generate a pixel value in which the amount of motion blur is adjusted.
  • the motion blur adding unit 806 supplies the foreground component image in which the amount of motion blur has been adjusted to the selecting unit 807.
  • the selector 807 includes, for example, a foreground component image from which the motion blur supplied from the calculator 805 has been removed, based on a selection signal corresponding to the user's selection, and a motion blur adder 806 And selects one of the foreground component images supplied with the adjusted amount of motion blur, and outputs the selected foreground component image.
  • the motion blur adjustment unit 106 can adjust the amount of motion blur based on the selection signal and the motion blur adjustment amount v ′.
  • the motion-blur adjusting unit 106 calculates the equation (10 6) Generate an expression for the matrix.
  • the motion-blur adjusting unit 106 sets an expression corresponding to the length of the processing unit in this way, and calculates Fi, which is a pixel value in which the amount of motion blur has been adjusted. Similarly, for example, when the number of pixels included in the processing unit is 100, an equation corresponding to 100 pixels is generated, and Fi is calculated.
  • FIG. 77 is a diagram illustrating another configuration of the motion-blur adjusting unit 106.
  • the same parts as those shown in FIG. 71 are denoted by the same reference numerals, and description thereof will be omitted.
  • the selection unit 821 based on the selection signal, supplies the input motion vector and its position signal as they are to the processing unit determination unit 8001 and the modeling unit 8002. Is replaced by the motion-blur adjustment amount v ′, and the motion vector and its position signal whose size is replaced by the motion-blur adjustment amount v ′ are processed by the processing unit determination unit 80 1 and the modeling unit 802.
  • the processing unit determination unit 801 to the calculation unit 805 of the motion blur adjustment unit 106 in FIG. 77 correspond to the values of the motion amount V and the motion blur adjustment amount v ′.
  • the motion-blur adjusting unit 106 generates an equation corresponding to the motion amount V and the processing unit, sets the pixel value of the foreground component image in the generated equation, and reduces the amount of motion blur. An adjusted foreground component image is calculated.
  • step S801 the processing unit determination unit 801 of the motion blur adjustment unit 106 generates a processing unit based on the motion vector and the area information, and uses the generated processing unit as a modeling unit 8 0 to 2
  • step S802 the modeling unit 802 of the motion-blur adjusting unit 106 selects or generates a model according to the motion amount V and the processing unit.
  • step S803 the equation generator 803 creates a normal equation based on the selected model.
  • step S804 the adding unit 804 sets the pixel value of the foreground component image in the created normal equation.
  • step S805 the adding unit 804 determines whether or not the pixel values of all pixels corresponding to the processing unit have been set. If it is determined that the pixel values of all the pixels corresponding to the logical unit have not been set, the process returns to step S804, and the process of setting the pixel values for the normal equation is repeated. If it is determined in step S805 that the pixel values of all the pixels in the processing unit have been set, the process proceeds to step S806, and the arithmetic unit 805 is supplied from the adding unit 804. Based on the normal equation in which the pixel value is set, the pixel value of the foreground with the amount of motion blur adjusted is calculated, and the process ends.
  • the motion blur adjustment unit 106 can adjust the amount of motion blur from the foreground image including the motion blur based on the motion vector and the area information.
  • FIG. 79 is a block diagram illustrating another example of the configuration of the motion-blur adjusting unit 106.
  • the motion vector and its position information supplied from the motion detection unit 102 are supplied to the processing unit determination unit 901 and the correction unit 905, and the region information supplied from the region identification unit 103 is The processing unit is supplied to the processing unit determining unit 901.
  • the foreground component image supplied from the foreground / background separator 105 is supplied to the calculator 904.
  • the processing unit determination unit 901 supplies the generated processing unit to the modeling unit 902 together with the motion vector based on the motion vector, its position information, and the area information.
  • the modeling unit 902 executes modeling based on the motion vector and the input processing unit. More specifically, for example, the modeling unit 92 includes a plurality of models corresponding to the number of pixels included in the processing unit, the number of virtual divisions of pixel values in the time direction, and the number of foreground components for each pixel. Is stored in advance, and a model that specifies the correspondence between pixel values and foreground components as shown in FIG. 80 is selected based on the processing unit and the number of virtual divisions of pixel values in the time direction. You may do it.
  • the modeling unit 92 sets the number of virtual divisions to 5, the leftmost pixel contains one foreground component, the second pixel from the left contains two foreground components, and The third pixel contains three foreground components, the fourth pixel from the left contains four foreground components, the fifth pixel from the left contains five foreground components, and the sixth pixel from the left contains It contains five foreground components, the seventh pixel from the left contains five foreground components, the eighth pixel from the left contains five foreground components, and the ninth pixel from the left contains four foreground components.
  • the 10th pixel from the left contains three foreground components, the 11th pixel from the left contains two foreground components, and the 12th pixel from the left contains one foreground component. And select a model consisting of eight foreground components as a whole.
  • the modeling unit 902 does not select a model from the models stored in advance, but when the motion vector and the processing unit are supplied, the model is formed based on the motion vector and the processing unit. You may make it generate
  • the equation generation unit 903 generates an equation based on the model supplied from the modeling unit 902.
  • the number of foreground components is 8
  • the number of pixels corresponding to the processing unit is 12, and the motion amount V is 5.
  • an example of an equation generated by the equation generating unit 93 will be described.
  • the pixel value C12 includes only the foreground component F08 / V, as shown in equation (107), and the pixel value C11 includes the foreground component F08 / v and the foreground component Consists of the product sum of F07 / v. Therefore, the foreground component F07 / V can be obtained by equation (108).
  • the equation generation unit 903 generates an equation for calculating a foreground component based on a difference between pixel values, as shown in Expressions (107) to (114).
  • the equation generation unit 93 supplies the generated equation to the calculation unit 904.
  • the operation unit 904 sets the pixel value of the foreground component image to the equation supplied from the equation generation unit 903, and calculates the foreground component based on the equation in which the pixel value is set. For example, when the equations (107) to (111) are supplied from the equation generator 903, the computing unit 904 calculates the equations (107) to (111) as follows. Set the pixel values C05 to C12.
  • the calculation unit 904 calculates a foreground component based on the equation in which the pixel value is set. For example, the arithmetic unit 904 calculates the foreground component FOl / v as shown in FIG. 81 by an arithmetic operation based on Expressions (107) to (114) in which the pixel values C05 to C12 are set. Or F08Zv is calculated. The calculation unit 904 supplies the foreground components FOl / ⁇ to F08 / v to the correction unit 905.
  • the correction unit 905 multiplies the foreground component supplied from the calculation unit 904 by the motion amount V included in the motion vector supplied from the processing unit determination unit 901 to remove the motion blur. Is calculated. For example, when the foreground components FOl / v to F08 / v supplied from the arithmetic unit 904 are supplied, the correction unit 905 is 5 for each of the foreground components F01 / v to F08 / v. By multiplying by the amount of motion V, pixel values F01 to F08 of the foreground from which motion blur has been removed are calculated as shown in FIG.
  • the correcting unit 905 supplies the foreground component image composed of the pixel values of the foreground, from which the motion blur has been removed, calculated as described above, to the motion blur adding unit 906 and the selecting unit 907.
  • the motion-blur adding unit 906 includes a motion-blur adjustment amount v having a value different from the motion amount V, for example, a motion-blur adjustment amount v ′ having a half value of the motion amount V, and a motion having a value unrelated to the motion amount V.
  • the amount of motion blur can be adjusted with the blur adjustment amount v '. For example, as shown in FIG. 75, the motion blur adding unit 906 divides the foreground pixel value Fi from which the motion blur has been removed by the motion blur adjustment amount v ′ to obtain a foreground component Fi / v ′. To calculate the foreground component
  • the sum of Fi / v ' is calculated to generate a pixel value in which the amount of motion blur is adjusted.
  • the pixel value C02 is (F01) / ⁇ '
  • the pixel value C03 is (F01 + F02) / ⁇ '
  • the pixel value C04 is (F01) + F02 + F03) / ⁇ '
  • the pixel value C05 is (F02 + F03 + F04) / ⁇ '.
  • the motion blur adding unit 906 supplies the foreground component image in which the amount of motion blur has been adjusted to the selecting unit 907.
  • the selection unit 907 supplies the foreground component image from which the motion blur has been removed supplied from the correction unit 905 and the motion blur addition unit 906 based on a selection signal corresponding to the user's selection, for example.
  • One of the selected foreground component images with the adjusted amount of motion blur is selected, and the selected foreground component image is output.
  • the motion blur adjustment unit 106 can adjust the amount of motion blur based on the selection signal and the motion blur adjustment amount ⁇ ′.
  • step S901 the processing unit determination unit 901 of the motion blur adjustment unit 106 generates a processing unit based on the motion vector and the area information, and converts the generated processing unit into a modeling unit 90. 2 and the correction unit 905.
  • step S902 the modeling unit 902 of the motion-blur adjusting unit 106 selects or generates a model according to the motion amount V and the processing unit.
  • step S903 the equation generation unit 903 selects a previous model based on the selected or generated model.
  • An equation for calculating a foreground component based on a difference between pixel values of the scene component image is generated.
  • step S904 the arithmetic unit 904 sets the pixel value of the foreground component image in the created equation, and calculates the foreground component from the pixel value difference based on the equation in which the pixel value is set. Extract.
  • step S905 the arithmetic unit 904 determines whether all foreground components corresponding to the processing unit have been extracted, and has not extracted all foreground components corresponding to the processing unit. If the judgment is made, the process returns to step S904, and the process of extracting the foreground component is repeated.
  • step S905 If it is determined in step S905 that all the foreground components corresponding to the processing unit have been extracted, the process proceeds to step S906, where the correction unit 905 determines the operation unit based on the motion amount V.
  • the correction unit 905 determines the operation unit based on the motion amount V.
  • Each of the foreground components FOl / v to F08 / v supplied from 904 is corrected to calculate the foreground pixel values F01 to F08 from which the motion blur has been removed.
  • step S907 the motion blur adding unit 906 calculates the pixel value of the foreground with the amount of motion blur adjusted, and the selecting unit 907 selects the image or motion blur from which the motion blur has been removed. Then, one of the images whose amount has been adjusted is selected, the selected image is output, and the process ends.
  • the motion-blur adjusting unit 106 having the configuration shown in FIG. 79 can adjust the motion blur from the foreground image including the motion blur with a simpler operation.
  • the motion-blur adjusting unit 106 shown in Fig. 79 also has a sufficient effect on the actual image that has been quantized and contains noise, enabling accurate motion blur removal. Becomes
  • FIG. 84 is a block diagram illustrating another configuration of the functions of the signal processing device.
  • the region specifying unit 103 supplies the region information to the mixture ratio calculating unit 104 and the combining unit 1001. '
  • the mixture ratio calculation unit 104 supplies the mixture ratio H to the foreground / background separation unit 105 and the synthesis unit 1001.
  • the foreground / background separation unit 105 supplies the foreground component image to the synthesis unit 1001.
  • the synthesizing unit 1001 performs an arbitrary background image and a foreground / background separation unit 10 based on the mixture ratio supplied from the mixture ratio calculation unit 104 and the region information supplied from the region identification unit 103.
  • the foreground component image supplied from 5 is synthesized, and a synthesized image in which an arbitrary background image and a foreground component image are synthesized is output.
  • FIG. 85 is a diagram illustrating a configuration of the combining unit 1001.
  • the background component generation unit 1021 generates a background component image based on the mixture ratio ⁇ and an arbitrary background image, and supplies the background component image to the mixed region image synthesis unit 102.
  • the mixed area image synthesizing unit 102 generates a mixed area synthesized image by synthesizing the background component image and the foreground component image supplied from the background component generating unit 1021, and generates the generated mixed area.
  • the combined image is supplied to the image combining unit 102.
  • the image combining unit 1023 combines the foreground component image, the mixed region combined image supplied from the mixed region image combining unit 1022, and an arbitrary background image based on the region information to form a combined image. Generate and output.
  • the synthesizing unit 1001 can synthesize the foreground component image with an arbitrary background image.
  • An image obtained by synthesizing a foreground component image with an arbitrary background image based on the mixture ratio Of, which is a feature quantity, is more natural than an image obtained by simply synthesizing pixels.
  • FIG. 86 is a block diagram illustrating still another configuration of the function of the signal processing device that adjusts the amount of motion blur. While the signal processing device shown in FIG. 2 performs region identification and calculation of the mixture ratio in order, the signal processing device shown in FIG. 86 performs region identification and calculation of the mixture ratio in parallel.
  • the input image consists of a mixture ratio calculation unit 1101, foreground / background separation unit 1102, and a region identification unit 1. 0 3, and is supplied to the object extraction unit 101.
  • the mixing ratio calculation unit 1101 calculates the estimated mixing ratio when the pixel belongs to the covered background area and the estimated mixing ratio when the pixel belongs to the uncovered background area. Is calculated for each pixel included in the input image, and the estimated mixture ratio when the calculated pixel is assumed to belong to the covered background area, and the estimation when the pixel is assumed to belong to the anchored background area The mixture ratio is supplied to the foreground / background separation unit 1102.
  • FIG. 87 is a block diagram illustrating an example of the configuration of the mixture ratio calculation unit 111.
  • the estimated mixture ratio processing unit 401 shown in FIG. 87 is the same as the estimated mixture ratio processing unit 401 shown in FIG.
  • the estimated mixture ratio processing unit 402 shown in FIG. 87 is the same as the estimated mixture ratio processing unit 402 shown in FIG.
  • the estimated mixture ratio processing unit 401 calculates the estimated mixture ratio for each pixel by an operation corresponding to the model of the covered background area based on the input image, and outputs the calculated estimated mixture ratio.
  • the estimated mixture ratio processing unit 402 calculates an estimated mixture ratio for each pixel by an operation corresponding to the model of the uncovered background area based on the input image, and outputs the calculated estimated mixture ratio.
  • the foreground / background separation unit 1102 calculates the estimated mixture ratio supplied from the mixture ratio calculation unit 1101, assuming that the pixel belongs to the power pad background area, and the pixel is uncovered background.
  • a foreground component image is generated from the input image based on the estimated mixture ratio when it is assumed to belong to the region and the region information supplied from the region identification unit 103, and the generated foreground component image is subjected to motion blur adjustment. This is supplied to the unit 106 and the selection unit 107.
  • FIG. 88 is a block diagram illustrating an example of the configuration of the foreground / background separation unit 1102.
  • the same parts as those in the foreground / background separation unit 105 shown in FIG. 63 are denoted by the same reference numerals, and description thereof will be omitted.
  • the selection unit 1 121 is based on the region information supplied from the region identification unit 103, and based on the region information supplied from the mixture ratio calculation unit 1101, it is assumed that the pixels belong to the covered background region.
  • One of the estimated mixture ratio and the estimated mixture ratio when the pixel is assumed to belong to the uncovered background area is selected, and the selected estimated mixture ratio is supplied to the separation unit 601 as a mixture ratio.
  • the separation unit 6001 extracts a foreground component and a background component from the pixel values of the pixels belonging to the mixed region based on the mixture ratio and the region information supplied from the selection unit 111, and extracts the extracted foreground component.
  • the component is supplied to the synthesizing unit 603, and the background component is supplied to the synthesizing unit 605.
  • the separating section 600 can have the same configuration as the configuration shown in FIG.
  • the combining unit 603 combines the foreground component images and outputs the combined image.
  • the combining unit 605 combines and outputs the background component image.
  • the motion blur adjustment unit 106 shown in FIG. 86 can have the same configuration as that shown in FIG. 2, and is provided from the foreground / background separation unit 1102 based on the area information and the motion vector. The amount of motion blur included in the supplied foreground component image is adjusted, and the foreground component image in which the amount of motion blur is adjusted is output.
  • the selection unit 107 shown in FIG. 86 includes, for example, a foreground component image supplied from the foreground / background separation unit 1102 and a motion blur adjustment unit 106 based on a selection signal corresponding to the user's selection. And selects one of the foreground component images supplied with the adjusted amount of motion blur, and outputs the selected foreground component image.
  • the signal processing device having the configuration shown in FIG. 86 can output the image corresponding to the foreground object included in the input image by adjusting the amount of motion blur included in the image. .
  • the signal processing device having the configuration shown in FIG. 86 can calculate the mixture ratio, which is the buried information, and output the calculated mixture ratio, as in the first embodiment.
  • FIG. 89 is a block diagram illustrating another configuration of the function of the signal processing device that combines the foreground component image with an arbitrary background image.
  • the signal processing device shown in Fig. In contrast, the signal processing device shown in FIG. 89 performs the area specification and the calculation of the mixture ratio ⁇ in parallel.
  • the mixing ratio calculation unit 1101 shown in FIG. 89 calculates the estimated mixing ratio when the pixels belong to the covered background area based on the input image, and the pixels belong to the uncovered background area. Is calculated for each of the pixels included in the input image, and the estimated mixture ratio when the calculated pixel is assumed to belong to the covered background area, and the pixel is assumed to be in the uncovered background area. Are supplied to the foreground / background separation unit 1102 and the synthesis unit 1221, respectively.
  • the foreground / background separation unit 1102 shown in FIG. 89 is based on the estimated mixture ratio supplied from the mixture ratio calculation unit 1101, assuming that the pixels belong to the covered background area, and the uncovered pixels.
  • a foreground component image is generated from the input image based on the estimated mixture ratio assuming that the image belongs to the background area and the area information supplied from the area specifying unit 103, and the generated foreground component image is synthesized by the combining unit. Supply to 201.
  • the synthesizing unit 1221 the estimated mixing ratio supplied from the mixing ratio calculating unit 1101, when the pixel belongs to the covered background area, and assumed that the pixel belongs to the uncovered background area
  • the arbitrary background image and the foreground component image supplied from the foreground / background separation unit 1102 are synthesized based on the estimated mixture ratio in the case and the region information supplied from the region identification unit 103, and And outputs a composite image in which the background image and the foreground component image are combined.
  • FIG. 90 is a diagram showing a configuration of the synthesizing unit 1221. Parts that are the same as the functions illustrated in the block diagram of FIG. 85 are given the same numbers, and descriptions thereof are omitted.
  • the selection unit 1221 based on the region information supplied from the region identification unit 103, the pixels supplied from the mixture ratio calculation unit 1101, and the pixels belong to the covered background region Either one of the estimated mixture ratio when the pixel is assumed to belong to the uncovered background region and the estimated mixture ratio when the pixel is assumed to belong to the uncovered background area, and the selected estimated mixture ratio is used as the mixture ratio as the background component. It is supplied to the generator 102.
  • the background component generation unit 1021 shown in FIG. 90 generates a background component image based on the mixing ratio a and an arbitrary background image supplied from the selection unit 1221, and generates a mixed region image. Supply to section 102.
  • the mixed area image synthesizing section 102 shown in FIG. 90 generates a mixed area synthesized image by synthesizing the background component image supplied from the background component generating section 102 and the foreground component image. Then, the generated mixed area synthesized image is supplied to the image synthesizing unit 102.
  • the image combining unit 1023 combines the foreground component image, the mixed region combined image supplied from the mixed region image combining unit 1022, and an arbitrary background image based on the region information to form a combined image. Generate and output.
  • the synthesizing unit 1221 can synthesize the foreground component image with an arbitrary background image.
  • the mixture ratio has been described as the ratio of the background component included in the pixel value, the mixture ratio may be the ratio of the foreground component included in the pixel value.
  • an example is given in which an image of the real space having the three-dimensional space and the time axis information is projected onto the two-dimensional space and the time and space having the time axis information using the video camera. Is not limited to this example, and corrects the distortion caused by the projection when more first information in the first dimension is projected on the second information in the smaller second dimension. It can be used to extract significant information, or to synthesize images more naturally.
  • the sensor is not limited to a CCD, but is a solid-state image sensor.
  • the sensor is not limited to a sensor in which the detection elements are arranged in a matrix, but may be a sensor in which the detection elements are arranged in one line.
  • the recording medium on which the program for performing the signal processing of the present invention is recorded is a magnetic disk 51 on which the program is recorded, which is distributed in order to provide the program to the user separately from the computer.
  • a magnetic disk 51 on which the program is recorded which is distributed in order to provide the program to the user separately from the computer.
  • optical disk 52 CD-ROM (Compact Disc-Read Only Memory)
  • DVD including Digital Versati le Disc
  • magneto-optical disk 53 including MD (Mini-Disc) (trademark)
  • semiconductor memory 54 It is composed of R0M 22 in which programs are recorded and provided to the user in a state of being incorporated in the computer in advance, and a hard disk included in the storage unit 28.
  • steps for describing a program to be recorded on a recording medium are not only performed in chronological order according to the order described, but are not necessarily performed in chronological order. Alternatively, it also includes processes that are individually executed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)
  • Picture Signal Circuits (AREA)
  • Studio Circuits (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Description

明細書
画像処理装置および方法、 並びに撮像装置 技術分野
本発明は、 画像処理装置および方法、 並びに撮像装置に関し、 特に、 センサに より検出した信号と現実世界との違いを考慮した画像処理装置およぴ方法、 並び に撮像装置に関する。 背景技術
現実世界における事象をセンサで検出し、 画像センサが出力するサンプリング データを処理する技術が広く利用されている。
例えば、 静止している所定の背景の前で移動する物体をビデオカメラで撮像し て得られる画像には、 物体の移動速度が比較的速い場合、 動きボケが生じること になる。
し力 しながら、 諍止している背景の前で物体が移動するとき、 移動する物体の 画像自身の混ざり合いによる動きボケのみならず、 背景の画像と移動する物体の 画像との混ざり合いが生じる。 従来は、 背景の画像と移動する物体の画像との混 ざり合いの状態に対応する処理は、 考えられていなかった。 発明の開示
本発明はこのような状況に鑑みてなされたものであり、 混ざり合いが生じてい る領域を検出することができるようにすることを目的とする。
本発明の画像処理装置は、 画像データの各フレームを動き補償する動き捕償手 段と、 動き補償された各フレームの互いに対応する位置の画素データの差分に基 づいて、 混合領域を検出する領域検出手段とを含むことを特徴とする。
領域検出手段は、 差分が閾値以上である場合、 少なくとも画素データが属する 混合領域を検出するようにすることができる。 領域検出手段は、 検出された混合領域の時間変化に基づいて、 時間の変化とと もに前景となるオブジェク トの成分が増加する力バードバックグラウンド領域と、 時間の変化とともに背景となるオブジェクトの成分が増加するァンカバードバッ クダラゥンド領域とをさらに検出するようにすることができる。
領域検出手段は、 各フレームの画素データに対応する動きベクトルに基づいて、 時間の変化とともに前景となるオブジェクトの成分が増加するカバードバックグ ラウンド領域と、 時間の変化とともに背景となるオブジェク トの成分が増加する ァンカバードバックグラウンド領域とをさらに検出するようにすることができる 画像処理装置は、 動きべクトルを検出する動きべクトル検出手段をさらに設け ることができる。
画像処理装置は、 才ブジェクトの画素データにおける混合状態を示す混合比を 算出する混合比算出手段をさらに設けることができる。
画像処理装置は、 混合比を基に、 混合領域の画素データから少なくとも前景と なるオブジェクトの成分を分離する分離手段をさらに設けることができる。
画像処理装置は、 分離された前景となるオブジェクトの成分の動きボケの量を 調整する動きボケ調整手段をさらに設けることができる。
画像処理装置は、 混合比を基に、 所望の他のオブジェク トと分離された前景と なるオブジェクトの成分とを合成する合成手段をさらに設けることができる。
動き捕償手段は、 注目している注目フレームの複数のオブジェクトのうちの背 景オブジェクトと、 注目フレームの周辺の周辺フレームの背景オブジェクトとの 画素位置が同位置となるように、 周辺フレームをシフトすることにより動き捕償 し、 領域検出手段は、 動き補償された周辺フレームと注目フレームとの差分に基 づいて、 少なくとも混合領域を検出するようにすることができる。
領域検出手段に、 動き補償された周辺フレームと注目フレームとの対応する画 素位置の画素データ同士の差分に基づいて、 静動判定を行う静動判定手段をさら に設け、 領域検出手段は、 静動判定手段の判定結果に基づいて、 画素位置に対し て、 複数のオブジェクトのうちの前景ォブジェク トを構成する前景オブジェクト 成分のみからなる前景領域、 背景オブジェク トを構成する背景オブジェクト成分 のみからなる背景領域、 または混合領域を検出するようにすることができる。 領域検出手段は、 静動判定手段の判定結果に基づいて、 混合領域における前景 オブジェクトの動き方向後端側に形成されるァンカバードバックグラウンド領域 を特定すると共に、 前景オブジェクトの動き方向先端側に形成されるカバードバ ックグラウンド領域を特定するようにすることができる。
本発明の画像処理方法は、 画像データの各フレームを動き補償する動き補償ス テツプと、 動き捕償された各フレームの互いに対応する位置の画素データの差分 に基づいて、 混合領域を検出する領域検出ステップとを含むことを特徴とする。 領域検出ステップは、 差分が閾値以上である場合、 少なくとも画素データが属 する混合領域を検出するようにすることができる。
領域検出ステップは、 検出された混合領域の時間変化に基づいて、 時間の変化 とともに前景となるオブジェクトの成分が増加するカバードバックグラウンド領 域と、 時間の変化とともに背景となるオブジェクトの成分が増加するアンカパー ドバックグラウンド領域とをさらに検出するようにすることができる。
領域検出ステップは、 各フレームの画素データに対応する動きべク トルに基づ いて、 時間の変化とともに前景となるオブジェク トの成分が増加するカバードパ ックグラウンド領域と、 時間の変化とともに背景となるオブジェクトの成分が増 加するアンカバードバックグラウンド領域とをさらに検出するようにすることが できる。
画像処理方法は、 動きべク トルを検出する動きべクトル検出ステップをさらに 設けることができる。
画像処理方法は、 オブジェク トの画素データにおける混合状態を示す混合比を 算出する混合比算出ステップをさらに設けることができる。
画像処理方法は、 混合比を基に、 混合領域の画素データから少なくとも前景と なるオブジェクトの成分を分離する分離ステップをさらに設けることができる。 画像処理方法は、 分離された前景となるォブジェクトの成分の動きボケの量を 調整する動きボケ調整ステップをさらに設けることができる。
画像処理方法は、 混合比を基に、 所望の他のオブジェクトと分離された前景と なるオブジェク トの成分とを合成する合成ステップをさらに設けることができる c 動き補償ステップは、 注目している注目フレームの複数のオブジェクトのうち の背景オブジェクトと、 注目フレームの周辺の周辺フレームの背景オブジェクト との画素位置が同位置となるように、 周辺フレームをシフトすることにより動き 補償し、 領域検出ステップは、 動き補償された周辺フレームと注目フレームとの 差分に基づいて、 少なくとも混合領域を検出するようにすることができる。
領域検出ステップに、 動き捕償された周辺フレームと注目フレームとの対応す る画素位置の画素データ同士の差分に基づいて、 静動判定を行う静動判定ステツ プをさらに設け、 領域検出ステップは、 静動判定ステップの判定結果に基づいて、 画素位置に対して、 複数のオブジェク トのうちの前景ォブジェクトを構成する前 景ォブジェクト成分のみからなる前景領域、 背景オブジェクトを構成する背景ォ プジ クト成分のみからなる背景領域、 または混合領域を検出するようにするこ とができる。
領域検出ステップは、 静動判定ステップの判定結果に基づいて、 混合領域にお ける前景ォブジェクトの動き方向後端側に形成されるアンカバードバックグラウ ンド領域を特定すると共に、 前景オブジェクトの動き方向先端側に形成される力 バードバックグラウンド領域を特定するようにすることができる。
本発明の記録媒体のプログラムは、 画像データの各フレームを動き補償する動 き補償ステップと、 動き補償された各フレームの互いに対応する位置の画素デー タの差分に基づいて、 混合領域を検出する領域検出ステップとを含むことを特徴 とする。
領域検出ステップは、 差分が閾値以上である場合、 少なくとも画素データが属 する混合領域を検出するようにすることができる。
領域検出ステップは、 検出された混合領域の時間変化に基づいて、 時間の変化 とともに前景となるオブジェクトの成分が増加するカバードバックグラウンド領 域と、 時間の変化とともに背景となるオブジェク トの成分が増加するアンカバー ドバックグラウンド領域とをさらに検出するようにすることができる。
領域検出ステップは、 各フレームの画素データに対応する動きべク トルに基づ いて、 時間の変化とともに前景となるオブジェク トの成分が増加するカバードバ ックグラウンド領域と、 時間の変化とともに背景となるオブジェク トの成分が增 加するアンカバードバックグラウンド領域とをさらに検出するようにすることが できる。
プログラムは、 動きべク トルを検出する動きべク トル検出ステップをさらに設 けることができる。
プログラムは、 オブジェク トの画素データにおける混合状態を示す混合比を算 出する混合比算出ステップをさらに設けることができる。
プログラムは、 混合比を基に、 混合領域の画素データから少なくとも前景とな るォブジェク トの成分を分離する分離ステップをさらに設けることができる。
プログラムは、 分離された前景となるオブジェク トの成分の動きボケの量を調 整する動きボケ調整ステップをさらに設けることができる。
プログラムは、 混合比を基に、 所望の他のオブジェク トと分離された前景とな るオブジェク トの成分とを合成する合成ステップをさらに設けることができる。 動き捕償ステップは、 注目している注目フレームの複数のオブジェク トのうち の背景ォブジェク トと、 注目フレームの周辺の周辺フレームの背景ォブジェク ト との画素位置が同位置となるように、 周辺フレームをシフトすることにより動き 補償し、 領域検出ステップは、 動き補償された周辺フレームと注目フレームとの 差分に基づいて、 少なくとも混合領域を検出するようにすることができる。
領域検出ステップに、 動き捕償された周辺フレームと注目フレームとの対応す る画素位置の画素データ同士の差分に基づいて、 静動判定を行う静動判定ステツ プをさらに設け、 領域検出ステップは、 静動判定ステップの判定結果に基づいて. 画素位置に対して、 複数のオブジェク 卜のうちの前景オブジェク トを構成する前 景ォブジェク ト成分のみからなる前景領域、 背景オブジェク トを構成する背景ォ ブジェク ト成分のみからなる背景領域、 または混合領域を検出するようにするこ とができる。
領域検出ステップは、 静動判定ステップの判定結果に基づいて、 混合領域にお ける前景ォプジェク トの動き方向後端側に形成されるアンカバードパックグラウ ンド領域を特定すると共に、 前景オブジェク トの動き方向先端側に形成される力 バ一ドバックグラウンド領域を特定するようにすることができる。 本発明のプログラムは、 コンピュータに、 画像データの各フレームを動き補償 する動き補償ステップと、 動き補償された各フレームの互いに対応する位置の画 素データの差分に基づいて、 混合領域を検出する領域検出ステップとを実行させ ることを特徴とする。
領域検出ステップは、 差分が閾値以上である場合、 少なくとも画素データが属 する混合領域を検出するようにすることができる。
領域検出ステップは、 検出された混合領域の時間変化に基づいて、 時間の変化 とともに前景となるオブジェク トの成分が増加する力バードバックグラウンド領 域と、 時間の変化とともに背景となるォブジェク トの成分が增加するアンカバー ドバックグラウンド領域とをさらに検出するようにすることができる。
領域検出ステップは、 各フレームの画素データに対応する動きべク トルに基づ いて、 時間の変化とともに前景となるオブジェク トの成分が増加するカバードバ ックグラウンド領域と、 時間の変化とともに背景となるオブジェク トの成分が增 加するァンカバードバックグラウンド領域とをさらに検出するようにすることが できる。
プログラムは、 動きべク トルを検出する動きべク トル検出ステップをさらに設 けることができる。
プログラムは、 オブジェク トの画素データにおける混合状態を示す混合比を算 出する混合比算出ステップをさらに設けることができる。
プログラムは、 混合比を基に、 混合領域の画素データから少なくとも前景とな るオブジェク トの成分を分離する分離ステップをさらに設けることができる。 プログラムは、 分離された前景となるオブジェクトの成分の動きボケの量を調 整する動きボケ調整ステップをさらに設けることができる。
プログラムは、 混合比を基に、 所望の他のオブジェクトと分離された前景とな るオブジェクトの成分とを合成する合成ステップをさらに設けることができる。 動き補償ステップは、 注目している注目フレームの複数のオブジェクトのうち の背景ォブジェクトと、 注目フレームの周辺の周辺フレームの背景オブジェクト との画素位置が同位置となるように、 周辺フレームをシフトすることにより動き 補償し、 領域検出ステップは、 動き補償された周辺フレームと注目フレームとの 差分に基づいて、 少なくとも混合領域を検出するようにすることができる。
領域検出ステップに、 動き補償された周辺フレームと注目フレームとの対応す る画素位置の画素データ同士の差分に基づいて、 静動判定を行う静動判定ステツ プをさらに設け、 領域検出ステップは、 静動判定ステップの判定結果に基づいて、 画素位置に対して、 複数のオブジェクトのうちの前景オブジェクトを構成する前 景オブジェクト成分のみからなる前景領域、 背景オブジェクトを構成する背景ォ ブジェクト成分のみからなる背景領域、 または混合領域を検出するようにするこ とができる。
領域検出ステップは、 静動判定ステップの判定結果に基づいて、 混合領域にお ける前景オブジェクトの動き方向後端側に形成されるアンカバ一ドバックグラウ ンド領域を特定すると共に、 前景オブジェクトの動き方向先端側に形成される力 バードバックグラウンド領域を特定するようにすることができる。
本発明の撮像装置は、 時間積分効果を有する所定数の画素を有する撮像素子に よって撮像された被写体画像を、 所定数の画素データからなる画像データとして 出力する撮像手段と、 画像データの各フレームを動き補償する動き捕償手段と、 動き捕償された各フレームの互いに対応する位置の画素データの差分に基づいて、 画像データから現実世界における複数のォブジェタトが混ざり合つて画素データ として取得された混合領域を検出する領域検出手段とを含むことを特徴とする。 領域検出手段は、 差分が閾値以上である場合、 少なくとも画素データが属する 混合領域を検出するようにすることができる。
領域検出手段は、 検出された混合領域の時間変化に基づいて、 時間の変化とと もに前景となるオブジェクトの成分が増加するカバードバックグラウンド領域と. 時間の変化とともに背景となるオブジェクトの成分が増加するアンカバードパッ クグラウンド領域とをさらに検出するようにすることができる。
領域検出手段は、 各フレームの画素データに対応する動きべクトルに基づいて. 時間の変化とともに前景となるオブジェクトの成分が増加するカバードバックグ ラウンド領域と、 時間の変化とともに背景となるオブジェクトの成分が増加する アンカバードバックグラウンド領域とをさらに検出するようにすることができる c 撮像装置は、 動きべクトルを検出する動きべクトル検出手段をさらに設けるこ とができる。
撮像装置は、 才ブジェクトの画素データにおける混合状態を示す混合比を算出 する混合比算出手段をさらに設けることができる。
撮像装置は、 混合比を基に、 混合領域の画素データから少なくとも前景となる オブジェクトの成分を分離する分離手段をさらに設けることができる。
撮像装置は、 分離された前景となるオブジェクトの成分の動きボケの量を調整 する動きボケ調整手段をさらに設けることができる。
撮像装置は、 混合比を基に、 所望の他のオブジェクトと分離された前景となる オブジェクトの成分とを合成する合成手段をさらに設けることができる。
動き補償手段は、 注目している注目フレームの複数のオブジェクトのうちの背 景ォブジェクトと、 注目フレームの周辺の周辺フレームの背景オブジェクトとの 画素位置が同位置となるように、 周辺フレームをシフトすることにより動き補償 し、 領域検出手段は、 動き補償された周辺フレームと注目フレームとの差分に基 づいて、 少なくとも混合領域を検出するようにすることができる。
領域検出手段に、 動き補償された周辺フレームと注目フレームとの対応する画 素位置の画素データ同士の差分に基づいて、 静動判定を行う静動判定手段をさら に設け、 領域検出手段は、 静動判定手段の判定結果に基づいて、 画素位置に対し て、 複数のオブジェクトのうちの前景オブジェクトを構成する前景オブジェクト 成分のみからなる前景領域、 背景オブジェク トを構成する背景ォブジェクト成分 のみからなる背景領域、 または混合領域を検出するようにすることができる。 領域検出手段は、 静動判定手段の判定結果に基づいて、 混合領域における前景 オブジェク トの動き方向後端側に形成されるアンカバードバックグラウンド領域 を特定すると共に、 前景オブジェクトの動き方向先端側に形成されるカバードバ ックグラウンド領域を特定するようにすることができる。
画像データの各フレームが動き補償され、 動き補償された各フレームの互いに 対応する位置の画素データの差分に基づいて、 混合領域が検出される。
これにより、 混ざり合いが生じている領域である混合領域を検出することがで きるようになる。 図面の簡単な説明
図 1は、 本発明に係る信号処理装置の一実施の形態を示す図である。
図 2は、 信号処理装置を示すブロック図である。
図 3は、 センサによる撮像を説明する図である。
図 4は、 画素の配置を説明する図である。
図 5は、 検出素子の動作を説明する図である。
図 6 Aは、 動いている前景に対応するオブジェクトと、 静止している背景に対 応するオブジェクトとを撮像して得られる画像を説明する図である。
図 6 Bは、 動いている前景に対応するオブジェクトと、 静止している背景に対 応するオブジェクトとを撮像して得られる画像に対応するモデルを説明する図で ある。
図 7は、 背景領域、 前景領域、 混合領域、 カバードバックグラウンド領域、 お よびアンカバードバックグラウンド領域を説明する図である。
図 8は、 静止している前景に対応するオブジェクトおよび静止している背景に 対応するォブジェクトを撮像した画像における、 隣接して 1列に並んでいる画素 の画素値を時間方向に展開したモデル図である。
図 9は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割した モデル図である。
図 1 0は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 1 1は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 1 2は、 前景領域、 背景領域、 および混合領域の画素を抽出した例を示す図 である。
図 1 3は、 画素と画素値を時間方向に展開したモデルとの対応を示す図である, 図 1 4は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 1 5は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 1 6は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 1 7は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 1 8は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
'図 1 9は、 動きボケの量の調整の処理を説明するフローチャートである。
図 2 0は、 領域特定部 1 0 3の構成を示すブロック図である。 ' 図 2 1は、 領域特定部 1 0 3のより詳細な構成を示すブロック図である。
図 2 2は、 動き取得部 2 2 2の処理を説明する図である。
図 2 3は、 前景に対応するオブジェク トが移動しているときの画像を説明する 図である。
図 2 4は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 2 5は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 2 6は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 2 7は、 領域判定の条件を説明する図である。
図 2 8 Aは、 領域特定部 1 0 3の領域の特定の結果の例を示す図である。 図 2 8 Bは、 領域特定部 1 0 3の領域の特定の結果の例を示す図である。 図 2 8 Cは、 領域特定部 1 0 3の領域の特定の結果の例を示す図である。 図 2 8 Dは、 領域特定部 1 0 3の領域の特定の結果の例を示す図である。 図 2 9は、 領域特定部 1 0 3の領域の特定の結果の例を示す図である。
図 3 0は、 領域特定の処理を説明するフローチャートである。
図 3 1は、 領域特定の処理を説明するフローチャートである。
図 3 2は、 領域特定部 1 0 3の他の構成を示すプロック図である。
図 3 3は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデノレ図である。
図 3 4は、 領域特定オブジェクトの例を示す図である。
図 3 5は、 動き捕償された領域特定オブジェクトの例を示す図である。
図 3 6は、 しきい値処理部 2 5 5の処理の例を説明する図である。
図 3 7は、 時間変化検出部 2 5 6の構成を説明するプロック図である。
図 3 8は、 時間変化検出部 2 5 6の判定の処理を説明する図である。
図 3 9は、 時間変化検出部 2 5 6の判定の処理を説明する図である。
図 4 0は、 混合領域の判定の条件を説明する図である。
図 4 1は、 領域特定部 1 0 3の領域特定の処理を説明するフローチャートであ る。
図 4 2は、 カバードバックグラウンド領域またはアンカバードバックグラウン ド領域を検出する処理の詳細を説明するフローチャートである。 図 4 3は、 領域特定部 1 0 3のさらに他の構成を示すブロック図である。 図 4 4は、 識別部 2 8 1の判定の処理を説明する図である。
図 4 5は、 カバードバックグラウンド領域またはァンカパードバックグラウン ド領域を検出する処理の詳細を説明するフローチャートである。
図 4 6は、 混合比算出部 1 0 4の構成の一例を示すブロック図である。
図 4 7は、 理想的な混合比 の例を示す図である。
図 4 8は、 画素値を時間方向に展開し、 シャッタ時間に対応する期間を分割し たモデル図である。
図 4 9は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 5 0は、 前景の成分の相関を利用した近似を説明する図である。
図 5 1は、 C, N、 および Pの関係を説明する図である。
図 5 2は、 推定混合比処理部 4 0 1の構成を示すプロック図である。
図 5 3は、 推定混合比の例を示す図である。
図 5 4は、 混合比算出部 1 0 4の他の構成を示すブロック図である。
図 5 5は、 混合比の算出の処理を説明するフローチャートである。
図 5 6は、 推定混合比の演算の処理を説明するフローチヤ一トである。
図 5 7は、 混合比 αを近似する直線を説明する図である。
図 5 8は、 混合比 θίを近似する平面を説明する図である。
図 5 9は、 混合比 αを算出するときの複数のフレームの画素の対応を説明す る図である。
図 6 0は、 混合比推定処理部 4 0 1の他の構成を示すプロック図である。 図 6 1は、 推定混合比の例を示す図である。
図 6 2は、 カバードバックグラウンド領域に対応するモデルによる混合比推定 の処理を説明するフローチャートである。
図 6 3は、 前景背景分離部 1 0 5の構成の一例を示すブロック図である。 図 6 4 Αは、 入力画像、 前景成分画像、 および背景成分画像を示す図である。 図 6 4 Bは、 入力画像、 前景成分画像、 および背景成分画像のモデルを示す図 である。
図 6 5は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 6 6は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 6 7は、 画素値を時間方向に展開し、 シャツタ時間に対応する期間を分割し たモデル図である。
図 6 8は、 分離部 6 0 1の構成の一例を示すプロック図である。
図 6 9 Aは、 分離された前景成分画像の例を示す図である。
図 6 9 Bは、 分離された背景成分画像の例を示す図である。
図 7 0は、 前景と背景との分離の処理を説明するフローチャートである。 図 7 1は、 動きボケ調整部 1 0 6の構成の一例を示すプロック図である。 図 7 2は、 処理単位を説明する図である。
図 7 3は、 前景成分画像の画素値を時間方向に展開し、 シャッタ時間に対応す る期間を分割したモデル図である。
図 7 4は、 前景成分画像の画素値を時間方向に展開し、 シャツタ時間に対応す る期間を分割したモデル図である。
図 7 5は、 前景成分画像の画素値を時間方向に展開し、 シャツタ時間に対応す る期間を分割したモデル図である。
図 7 6は、 前景成分画像の画素値を時間方向に展開し、 シャツタ時間に対応す る期間を分割したモデル図である。
図 7 7は、 動きボケ調整部 1 0 6の他の構成を示す図である。
図 7 8は、 動きボケ調整部 1 0 6による前景成分画像に含まれる動きボケの量 の調整の処理を説明するフローチャートである。
図 7 9は、 動きポケ調整部 1 0 6の構成の他の一例を示すブロック図である。 図 8 0は、 画素値と前景の成分のとの対応を指定するモデルの例を示す図であ る。
図 8 1は、 前景の成分の算出を説明する図である。
図 8 2は、 前景の成分の算出を説明する図である。
図 8 3は、 前景の動きボケの除去の処理を説明するフローチャートである。
図 8 4は、 信号処理装置の機能の他の構成を示すプロック図である。
図 8 5は、 合成部 1 0 0 1の構成を示す図である。
図 8 6は、 信号処理装置の機能のさらに他の構成を示すブロック図である。
図 8 7は、 混合比算出部 1 1 0 1の構成を示すブロック図である。
図 8 8は、 前景背景分離部 1 1 0 2の構成を示すプロック図である。
図 8 9は、 信号処理装置の機能のさらに他の構成を示すブロック図である。
図 9 0は、 合成部 1 2 0 1の構成を示す図である。 発明を実施するための最良の形態
図 1は、 本発明に係る信号処理装置の一実施の形態を示す図である。 CPU (Central Processing Unit) 2 1は、 ROM (Read Only Memory) 2 2、 または 記憶部 2 8に記憶されているプログラムに従って各種の処理を実行する。 RAM
(Random Access Memory) 2 3には、 CPU 2 1が実行するプログラムやデータ などが適宜記憶される。 これらの CPU 2 1、 ROM 2 2 および RAM 2 3は、 バス 2 4により相互に接続されている。
CPU 2 1にはまた、 バス 2 4を介して入出力ィンタフェース 2 5が接続されて いる。 入出力インタフェース 2 5には、 キーボード、 マウス、 マイク口ホンなど よりなる入力部 2 6、 ディスプレイ、 スピーカなどよりなる出力部 2 7が接続さ れている。 CPU 2 1は、 入力部 2 6から入力される指令に対応して各種の処理を 実行する。 そして、 CPU 2 1は、 処理の結果得られた画像や音声等を出力部 2 7 に出力する。
入出力インタフェース 2 5に接続されている記憶部 2 8は、 例えばハードディ スクなどで構成され、 CPU 2 1が実行するプログラムや各種のデータを記憶する, 通信部 2 9は、 インターネット、 その他のネットワークを介して外部の装置と通 信する。 この例の場合、 通信部 2 9はセンサの出力を取り込む取得部として働く また、 通信部 2 9を介してプログラムを取得し、 記憶部 2 8に記憶してもよい 入出力インタフェース 2 5に接続されているドライブ 3 0は、 磁気ディスク 5 1、 光ディスク 5 2、 光磁気ディスク 5 3、 或いは半導体メモリ 5 4などが装着 されたとき、 それらを駆動し、 そこに記録されているプログラムやデータなどを 取得する。 取得されたプログラムやデータは、 必要に応じて記憶部 2 8に転送さ れ、 記憶される。
図 2は、 信号処理装置を示すブロック図である。
なお、 信号処理装置の各機能をハードウェアで実現するか、 ソフトウェアで実 現するかは問わない。 つまり、 本明細書の各ブロック図は、 ハードウエアのプロ ック図と考えても、 ソフトウエアによる機能プロック図と考えても良い。
この明細書では、 撮像の対象となる、 現実世界におけるォブジェク トに対応す る画像を、 画像オブジェクトと称する。
信号処理装置に供給された入力画像は、 オブジェクト抽出部 1 0 1、 領域特定 部 1 0 3、 混合比算出部 1 0 4、 および前景背景分離部 1 0 5に供給される。 オブジェク ト抽出部 1 0 1は、 入力画像に含まれる前景のオブジェクトに対応 する画像オブジェクトを粗く抽出して、 抽出した画像オブジェクトを動き検出部 1 0 2に供給する。 オブジェクト抽出部 1 0 1は、 例えば、 入力画像に含まれる 前景のオブジェクトに対応する画像オブジェクトの輪郭を検出することで、 前景 のオブジェク トに対応する画像オブジェク トを粗く抽出する。
オブジェクト抽出部 1 0 1は、 入力画像に含まれる背景のオブジェクトに対応 する画像オブジェクトを粗く抽出して、 抽出した画像ォブジェクトを動き検出部
1 0 2に供給する。 オブジェクト抽出部 1 0 1は、 例えば、 入力画像と、 抽出さ れた前景のオブジェクトに対応する画像オブジェクトとの差から、 背景のォブジ エタ トに対応する画像オブジェクトを粗く抽出する。
また、 例えば、 オブジェクト抽出部 1 0 1は、 内部に設けられている背景メモ リに記憶されている背景の画像と、 入力画像との差から、 前景のオブジェクトに 対応する画像ォブジェクト、 および背景のオブジェクトに対応する画像オブジェ クトを粗く抽出するようにしてもよい。
動き検出部 1 0 2は、 例えば、 プロックマッチング法、 勾配法、 位相相関法、 およびペルリカーシブ法などの手法により、 粗く抽出された前景のオブジェク ト に対応する画像オブジェクトの動きべクトルを算出して、 算出した動きべクトル および動きべク トルの位置情報 (動きべクトルに対応する画素の位置を特定する 情報) を領域特定部 1 0 3および動きボケ調整部 1 0 6に供給する。
動き検出部 1 0 2が出力する動きべクトルには、 動き量 Vに対応する情報が 含まれるている。
また、 例えば、 動き検出部 1 0 2は、 画像オブジェクトに画素を特定する画素 位置情報と共に、 画像オブジェクト毎の動きべクトルを動きボケ調整部 1 0 6に 出力するようにしてもよい。
動き量 Vは、 動いているオブジェクトに対応する画像の位置の変化を画素間 隔を単位として表す値である。 例えば、 前景に対応するオブジェクトの画像が、 あるフレームを基準として次のフレームにおいて 4画素分離れた位置に表示され るように移動しているとき、 前景に対応するオブジェクトの画像の動き量 V は、 4とされる。
なお、 オブジェクト抽出部 1 0 1および動き検出部 1 0 2は、 動いているォプ ジェク トに対応した動きボケ量の調整を行う場合に必要となる。
領域特定部 1 0 3は、 入力された画像の画素のそれぞれを、 前景領域、 背景領 域、 または混合領域のいずれかに特定し、 画素毎に前景領域、 背景領域、 または 混合領域のいずれかに属するかを示す情報 (以下、 領域情報と称する) を混合比 算出部 1 0 4、 前景背景分離部 1 0 5、 および動きボケ調整部 1 0 6に供給する c 混合比算出部 1 0 4は、 入力画像、 および領域特定部 1 0 3から供給された領 域情報を基に、 混合領域 6 3に含まれる画素に対応する混合比 (以下、 混合比 a と称する) を算出して、 算出した混合比を前景背景分離部 1 0 5に供給する c 混合比 は、 後述する式 (3 ) に示されるように、 画素値における、 背景の オブジェクトに対応する画像の成分 (以下、 背景の成分とも称する) の割合を示 す値である。
前景背景分離部 1 0 5は、 領域特定部 1 0 3から供給された領域情報、 および 混合比算出部 1 0 4から供給された混合比 aを基に、 前景のォブジェクトに対 応する画像の成分 (以下、 前景の成分とも称する) のみから成る前景成分画像と 背景の成分のみから成る背景成分画像とに入力画像を分離して、 前景成分画像を 動きボケ調整部 1 0 6および選択部 1 0 7に供給する。 なお、 分離された前景成 分画像を最終的な出力とすることも考えられる。 従来の混合領域を考慮しないで 前景と背景だけを特定し、 分離していた方式に比べ正確な前景と背景を得ること が出来る。
動きボケ調整部 1 0 6は、 動きべクトルからわかる動き量 Vおよび領域情報 を基に、 前景成分画像に含まれる 1以上の画素を示す処理単位を決定する。 処理 単位は、 動きボケの量の調整の処理の対象となる 1群の画素を指定するデータで ある。
動きボケ調整部 1 0 6は、 信号処理装置に入力された動きボケ調整量、 前景背 景分離部 1 0 5から供給された前景成分画像、 動き検出部 1 0 2から供給された 動きべクトルおょぴその位置情報、 並びに処理単位を基に、 前景成分画像に含ま れる動きボケを除去する、 動きボケの量を減少させる、 または動きボケの量を增 加させるなど前景成分画像に含まれる動きボケの量を調整して、 動きボケの量を 調整した前景成分画像を選択部 1 0 7に出力する。 動きべクトルとその位置情報 は使わないこともある。
ここで、 動きボケとは、 撮像の対象となる、 現実世界におけるオブジェクトの 動きと、 センサの撮像の特性とにより生じる、 動いているオブジェク トに対応す る画像に含まれている歪みをいう。
選択部 1 0 7は、 例えば使用者の選択に対応した選択信号を基に、 前景背景分 離部 1 0 5から供給された前景成分画像、 および動きボケ調整部 1 0 6から供給 された動きボケの量が調整された前景成分画像のいずれか一方を選択して、 選択 した前景成分画像を出力する。
次に、 図 3乃至図 1 8を参照して、 信号処理装置に供給される入力画像につい て説明する。
図 3は、 センサによる撮像を説明する図である。 センサは、 例えば、 固体撮像 素子である CCD (Charge-Coupled Device) エリアセンサを備えた CCDビデオ力 メラなどで構成される。 現実世界における、 前景に対応するオブジェクト 1 1 1 は、 現実世界における、 背景に対応するォブジェクト 1 1 2と、 センサとの間を、 例えば、 図中の左側から右側に水平に移動する。
センサは、 前景に対応するォブジェクト 1 1 1を、 背景に対応するォブジェク ト 1 1 2と共に撮像する。 センサは、 撮像した画像を 1フレーム単位で出力する。 例えば、 センサは、 1秒間に 3 0フレームから成る画像を出力する。 センサの露 光時間は、 1 / 3 0秒とすることができる。 露光時間は、 センサが入力された光 の電荷への変換を開始してから、 入力された光の電荷への変換を終了するまでの 期間である。 以下、 露光時間をシャツタ時間とも称する。
図 4は、 画素の配置を説明する図である。 図 4中において、 A乃至 Iは、 個々 の画素を示す。 画素は、 画像に対応する平面上に配置されている。 1つの画素に 対応する 1つの検出素子は、 センサ上に配置されている。 センサが画像を撮像す るとき、 1つの検出素子は、 画像を構成する 1つの画素に対応する画素値を出力 する。 例えば、 検出素子の X方向の位置は、 画像上の横方向の位置に対応し、 検 出素子の Y方向の位置は、 画像上の縦方向の位置に対応する。
図 5に示すように、 例えば、 CCDである検出素子は、 シャツタ時間に対応する 期間、 入力された光を電荷に変換して、 変換された電荷を蓄積する。 電荷の量は、 入力された光の強さと、 光が入力されている時間にほぼ比例する。 検出素子は、 シャツタ時間に対応する期間において、 入力された光から変換された電荷を、 既 に蓄積されている電荷に加えていく。 すなわち、 検出素子は、 シャツタ時間に対 応する期間、 入力される光を積分して、 積分された光に対応する量の電荷を蓄積 する。 検出素子は、 時間に対して、 積分効果があるとも言える。
検出素子に蓄積された電荷は、 図示せぬ回路により、 電圧値に変換され、 電圧 値は更にデジタルデータなどの画素値に変換されて出力される。 従って、 センサ から出力される個々の画素値は、 前景または背景に対応するオブジェク トの空間 的に広がりを有するある部分を、 シャツタ時間について積分した結果である、 1 次元の空間に射影された値を有する。
信号処理装置は、 このようなセンサの蓄積の動作により、 出力信号に埋もれて しまった有意な情報、 例えば、 混合比ひを抽出する。 信号処理装置は、 前景の 画像オブジェク ト自身が混ざり合うことによる生ずる歪みの量、 例えば、 動きポ ケの量などを調整する。 また、 信号処理装置は、 前景の画像オブジェクトと背景 の画像オブジェタトとが混ざり合うことにより生ずる歪みの量を調整する。
図 6 Aおよび図 6 Bは、 動いている前景に対応するオブジェクトと、 静止して いる背景に対応するオブジェクトとを撮像して得られる画像を説明する図である, 図 6 Aは、 動きを伴う前景に対応するオブジェク トと、 静止している背景に対応 するオブジェク トとを撮像して得られる画像を示している。 図 6 Aに示す例にお いて、 前景に対応するオブジェクトは、 画面に対して水平に左から右に動いてい る。
図 6 Bは、 図 6 Aに示す画像の 1つのラインに対応する画素値を時間方向に展 開したモデル図である。 図 6 Bの横方向は、 図 6 Aの空間方向 Xに対応している, 背景領域の画素は、 背景の成分、 すなわち、 背景のオブジェクトに対応する画 像の成分のみから、 その画素値が構成されている。 前景領域の画素は、 前景の成 分、 すなわち、 前景のオブジェクトに対応する画像の成分のみから、 その画素値 が構成されている。
混合領域の画素は、 背景の成分、 および前景の成分から、 その画素値が構成さ れている。 混合領域は、 背景の成分、 および前景の成分から、 その画素値が構成 されているので、 歪み領域ともいえる。 混合領域は、 更に、 カバードバックダラ ゥンド領域およびアンカバードバックグラウンド領域に分類される。 カバードバックグラウンド領域は、 前景領域に対して、 前景のオブジェク トの 進行方向の前端部に対応する位置の混合領域であり、 時間の経過に対応して背景 成分が前景に覆い隠される領域をいう。
これに対して、 アンカバードバックグラウンド領域は、 前景領域に対して、 前 景のオブジェク トの進行方向の後端部に対応する位置の混合領域であり、 時間の 経過に対応して背景成分が現れる領域をいう。
このように、 前景領域、 背景領域、 またはカバードバックグラウンド領域若し くはァンカバードバックグラウンド領域を含む画像が、 領域特定部 1 0 3、 混合 比算出部 1 0 4、 および前景背景分離部 1 0 5に入力画像として入力される。 図 7は、 以上のような、 背景領域、 前景領域、 混合領域、 カバードパックダラ ゥンド領域、 およびアンカバードパックグラウンド領域を説明する図である。 図 6 Aに示す画像に対応する場合、 背景領域は、 静止部分であり、 前景領域は、 動 き部分であり、 混合領域の力パードバックグラウンド領域は、 背景から前景に変 化する部分であり、 混合領域のアンカバードバックグラウンド領域は、 前景から 背景に変化する部分である。
図 8は、 静止している前景に対応するォブジェクトおよび静止している背景に 対応するォブジェクトを撮像した画像における、 隣接して 1列に並んでいる画素 の画素値を時間方向に展開したモデル図である。 例えば、 隣接して 1列に並んで いる画素として、 画面の 1つのライン上に並んでいる画素を選択することができ る。
図 8に示す F01乃至 F04の画素値は、 静止している前景のオブジェクトに対 応する画素の画素値である。 図 8に示す B01乃至 B04の画素値は、 静止してい る背景のオブジェクトに対応する画素の画素値である。
図 8における縦方向は、 図中の上から下に向かって時間が経過する。 図 8中の 矩形の上辺の位置は、 センサが入力された光の電荷への変換を開始する時刻に対 応し、 図 8中の矩形の下辺の位置は、 センサが入力された光の電荷への変換を終 了する時刻に対応する。 すなわち、 図 8中の矩形の上辺から下辺までの距離は、 シャッタ時間に対応する。
以下において、 シャッタ時間とフレーム間隔とが同一である場合を例に説明す る。
図 8における横方向は、 図 6 Aで説明した空間方向 Xに対応する。 より具体 的には、 図 8に示す例において、 図 8中の" F01 " と記載された矩形の左辺か ら" B04" と記載された矩形の右辺までの距離は、 画素のピッチの 8倍、 すなわ ち、 連続している 8つの画素の間隔に対応する。
前景のォブジェクトおよび背景のオブジェクトが静止している場合、 シャツタ 時間に対応する期間において、 センサに入力される光は変化しない。
ここで、 シャツタ時間に対応する期間を 2つ以上の同じ長さの期間に分割する。 例えば、 仮想分割数を 4とすると、 図 8に示すモデル図は、 図 9に示すモデルと して表すことができる。 仮想分割数は、 前景に対応するオブジェクトのシャツタ 時間内での動き量 Vなどに対応して設定される。 例えば、 4である動き量 に 対応して、 仮想分割数は、 4とされ、 シャツタ時間に対応する期間は 4つに分割 される。
図中の最も上の行は、 シャツタが開いて最初の、 分割された期間に対応する。 図中の上から 2番目の行は、 シャツタが開いて 2番目の、 分割された期間に対応 する。 図中の上から 3番目の行は、 シャツタが開いて 3番目の、 分割された期間 に対応する。 図中の上から 4番目の行は、 シャツタが開いて 4番目の、 分割され た期間に対応する。
以下、 動き量 Vに対応して分割されたシャツタ時間をシャツタ時間/ Vとも称 する。
前景に対応するォブジェクトが静止しているとき、 センサに入力される光は変 ィ匕しないので、 前景の成分 FO l/vは、 画素値 F01を仮想分割数で除した値に等 しい。 同様に、 前景に対応するオブジェクトが静止しているとき、 前景の成分
F02/v は、 画素値 F02 を仮想分割数で除した値に等しく、 前景の成分 F03/v は、 画素値 F03を仮想分割数で除した値に等しく、 前景の成分 F04/vは、 画素値 F04を仮想分割数で除した値に等しい。
背景に対応するォブジェクトが静止しているとき、 センサに入力される光は変 化しないので、 背景の成分 BO l/vは、 画素値 B01を仮想分割数で除した値に等 しい。 同様に、 背景に対応するオブジェクトが静止しているとき、 背景の成分 B02/vは、 画素値 B02を仮想分割数で除した値に等しく、 B03/Vは、 画素値 B03 を仮想分割数で除した値に等しく、 B04/Vは、 画素値 B04を仮想分割数で除した 値に等しい。
すなわち、 前景に対応するオブジェクトが静止している場合、 シャツタ時間に 対応する期間において、 センサに入力される前景のオブジェクトに対応する光が 変化しないので、 シャツタが開いて最初の、 シャツタ時間/ Vに対応する前景の 成分 FOl/vと、 シャツタが開いて 2番目の、 シャツタ時間/ Vに対応する前景の 成分 FO l/vと、 シャツタが開いて 3番目の、 シャツタ時間/ Vに対応する前景の 成分 FOl/vと、 シャツタが開いて 4番目の、 シャツタ時間/ Vに対応する前景の 成分 FO l/vとは、 同じ値となる。 F02/v乃至 F04/vも、 FO l/vと同様の関係を有 する。
背景に対応するオブジェクトが静止している場合、 シャツタ時間に対応する期 間において、 センサに入力される背景のオブジェクトに対応する光は変化しない ので、 シャツタが開いて最初の、 シャツタ時間/ Vに対応する背景の成分 BOl/v と、 シャツタが開いて 2番目の、 シャツタ時間/ Vに対応する背景の成分 BO l/v と、 シャツタが開いて 3番目の、 シャツタ時間/ Vに対応する背景の成分 BOl/v と、 シャツタが開いて 4番目の、 シャツタ時間/ Vに対応する背景の成分 BO l/v とは、 同じ値となる。 B02/V乃至 B04/Vも、 同様の関係を有する。
次に、 前景に対応するォブジェクトが移動し、 背景に対応するォブジェク トが 静止している場合について説明する。
図 1 0は、 前景に対応するオブジェクトが図中の右側に向かって移動する場合 の、 カバードバックグラウンド領域を含む、 1つのライン上の画素の画素値を時 間方向に展開したモデル図である。 図 1 0において、 前景の動き量 Vは、 4で ある。 1フレームは短い時間なので、 前景に対応するオブジェクトが剛体であり 等速で移動していると仮定することができる。 図 1 0において、 前景に対応する ォブジェクトの画像は、 あるフレームを基準として次のフレームにおいて 4画素 分右側に表示されるように移動する。
図 1 0において、 最も左側の画素乃至左から 4番目の画素は、 前景領域に属す る。 図 1 0において、 左から 5番目乃至左から 7番目の画素は、 カバードバック グラウンド領域である混合領域に属する。 図 1 0において、 最も右側の画素は、 背景領域に属する。
前景に対応するォブジェクトが時間の経過と共に背景に対応するオブジェク ト を覆い隠すように移動しているので、 カバードバックグラウンド領域に属する画 素の画素値に含まれる成分は、 シャツタ時間に対応する期間のある時点で、 背景 の成分から、 前景の成分に替わる。
例えば、 図 1 0中に太線枠を付した画素値 Mは、 式 (1 ) で表される。
M=B02/v+B02/v+F07/v+F06/v ( 1 )
例えば、 左から 5番目の画素は、 1つのシャツタ時間/ Vに対応する背景の成 分を含み、 3つのシャツタ時間/ Vに対応する前景の成分を含むので、 左から 5 番目の画素の混合比 は、 1/4である。 左から 6番目の画素は、 2つのシャツ タ時間 /vに対応する背景の成分を含み、 2つのシャツタ時間/ Vに対応する前景 の成分を含むので、 左から 6番目の画素の混合比 は、 1/2である。 左から 7 番目の画素は、 3つのシャツタ時間/ Vに対応する背景の成分を含み、 1つのシ ャッタ時間/ Vに対応する前景の成分を含むので、 左から 7番目の画素の混合比 は、 3/4である。
前景に対応するオブジェクトが、 剛体であり、 前景の画像が次のフレームにお いて 4画素右側に表示されるように等速で移動すると仮定できるので、 例えば、 図 1 0中の左から 4番目の画素の、 シャツタが開いて最初の、 シャツタ時間/ V の前景の成分 F07/vは、 図 1 0中の左から 5番目の画素の、 シャツタが開いて 2番目のシャツタ時間 /vに対応する前景の成分に等しい。 同様に、 前景の成分 F07/vは、 図 1 0中の左から 6番目の画素の、 シャツタが開いて 3番目のシャツ タ時間 /vに対応する前景の成分と、 図 1 0中の左から 7番目の画素の、 シャツ タが開いて 4番目のシャツタ時間 /vに対応する前景の成分とに、 それぞれ等し い。
前景に.対応するオブジェクトが、 剛体であり、 前景の画像が次のフレームにお いて 4画素右側に表示されるように等速で移動すると仮定できるので、 例えば、 図 1 0中の左から 3番目の画素の、 シャツタが開いて最初のシャツタ時間/ Vの 前景の成分 F06/vは、 図 1 0中の左から 4番目の画素の、 シャツタが開いて 2 番目のシャツタ時間/ Vに対応する前景の成分に等しい。 同様に、 前景の成分 F06/vは、 図 1 0中の左から 5番目の画素の、 シャツタが開いて 3番目のシャツ タ時間/ Vに対応する前景の成分と、 図 1 0中の左から 6番目の画素の、 シャツ タが開いて 4番目のシャッタ時間/ Vに対応する前景の成分とに、 それぞれ等し い。
前景に対応するオブジェクトが、 剛体であり、 前景の画像が次のフレームにお いて 4画素右側に表示されるように等速で移動すると仮定できるので、 例えば、 図 1 0中の左から 2番目の画素の、 シャツタが開いて最初のシャツタ時間/ Vの 前景の成分 F05/vは、 図 1 0中の左から 3番目の画素の、 シャツタが開いて 2 番目のシャツタ時間 /vのに対応する前景の成分に等しい。 同様に、 前景の成分 F05/vは、 図 1 0中の左から 4番目の画素の、 シャツタが開いて 3番目のシャツ タ時間/ Vに対応する前景の成分と、 図 1 0中の左から 5番目の画素の、 シャツ タが開いて 4番目のシャツタ時間/ Vに対応する前景の成分とに、 それぞれ等し い。
前景に対応するオブジェクトが、 剛体であり、 前景の画像が次のフレームにお いて 4画素右側に表示されるように等速で移動すると仮定できるので、 例えば、 図 1 0中の最も左側の画素の、 シャツタが開いて最初のシャツタ時間/ Vの前景 の成分 F04/vは、 図 1 0中の左から 2番目の画素の、 シャツタが開いて 2番目 のシャツタ時間/ Vに対応する前景の成分に等しい。 同様に、 前景の成分 F04/v は、 図 1 0中の左から 3番目の画素の、 シャツタが開いて 3番目のシャツタ時間 /vに対応する前景の成分と、 図 1 0中の左から 4番目の画素の、 シャツタが開 いて 4番目のシャッタ時間/ Vに対応する前景の成分とに、 それぞれ等しい。
動いているオブジェクトに対応する前景の領域は、 このように動きボケを含む ので、 歪み領域とも言える。
図 1 1は、 前景が図中の右側に向かって移動する場合の、 アンカバードバック グラウンド領域を含む、 1つのライン上の画素の画素値を時間方向に展開したモ デル図である。 図 1 1において、 前景の動き量 Vは、 4である。 1フレームは 短い時間なので、 前景に対応するオブジェク トが剛体であり、 等速で移動してい ると仮定することができる。 図 1 1において、 前景に対応するオブジェク トの画 像は、 あるフレームを基準として次のフレームにおいて 4画素分右側に移動する ( 図 1 1において、 最も左側の画素乃至左から 4番目の画素は、 背景領域に属す る。 図 1 1において、 左から 5番目乃至左から 7番目の画素は、 アンカバードバ ックグラウンドである混合領域に属する。 図 1 1において、 最も右側の画素は、 前景領域に属する。
背景に対応するォブジェクトを覆っていた前景に対応するオブジェクトが時間 の経過と共に背景に対応するオブジェクトの前から取り除かれるように移動して いるので、 アンカバードバックグラウンド領域に属する画素の画素値に含まれる 成分は、 シャツタ時間に対応する期間のある時点で、 前景の成分から、 背景の成 分に替わる。
例えば、 図 1 1中に太線枠を付した画素値 M'は、 式 (2 ) で表される。
M, =F02/v+F01/v+B26/v+B26/v ( 2 )
例えば、 左から 5番目の画素は、 3つのシャツタ時間/ Vに対応する背景の成 分を含み、 1つのシャツタ時間/ Vに対応する前景の成分を含むので、 左から 5 番目の画素の混合比びは、 3/4である。 左から 6番目の画素は、 2つのシャツ タ時間/ Vに対応する背景の成分を含み、 2つのシャツタ時間 /vに対応する前景 の成分を含むので、 左から 6番目の画素の混合比 は、 1/2である。 左から 7 番目の画素は、 1つのシャツタ時間/ Vに対応する背景の成分を含み、 3つのシ ャッタ時間/ Vに対応する前景の成分を含むので、 左から 7番目の画素の混合比 aは、 1/4である。
式 (1 ) および式 (2 ) をより一般化すると、 画素値 Mは、 式 (3 ) で表さ れる。
M= a -B +∑Fi/v (3)
i
ここで、 は、 混合比である。 Bは、 背景の画素値であり、 Fi/vは、 前景の成 分である。
前景に対応するオブジェクトが剛体であり、 等速で動くと仮定でき、 かつ、 動 き量 Vが 4であるので、 例えば、 図 1 1中の左から 5番目の画素の、 シャツタ が開いて最初の、 シャツタ時間/ Vの前景の成分 FOl/vは、 図 1 1中の左から 6 番目の画素の、 シャツタが開いて 2番目のシャツタ時間/ Vに対応する前景の成 分に等しい。 同様に、 FO l/vは、 図 1 1中の左から 7番目の画素の、 シャツタが 開いて 3番目のシャツタ時間/ Vに対応する前景の成分と、 図 1 1中の左から 8 番目の画素の、 シャツタが開いて 4番目のシャツタ時間/ Vに対応する前景の成 分とに、 それぞれ等しい。
前景に対応するオブジェクトが剛体であり、 等速で動くと仮定でき、 かつ、 仮 想分割数が 4であるので、 例えば、 図 1 1中の左から 6番目の画素の、 シャツタ が開いて最初の、 シャツタ時間/ Vの前景の成分 F02/vは、 図 1 1中の左から 7 番目の画素の、 シャツタが開いて 2番目のシャツタ時間/ Vに対応する前景の成 分に等しい。 同様に、 前景の成分 F02/v は、 図 1 1中の左から 8番目の画素の. シャツタが開いて 3番目のシャツタ時間 / に対応する前景の成分に等しい。
前景に対応するオブジェクトが剛体であり、 等速で動くと仮定でき、 かつ、 動 き量 Vが 4であるので、 例えば、 図 1 1中の左から 7番目の画素の、 シャツタ が開いて最初の、 シャツタ時間/ Vの前景の成分 F03/vは、 図 1 1中の左から 8 番目の画素の、 シャッタが開いて 2番目のシャッタ時間 /vに対応する前景の成 分に等しい。 図 9乃至図 1 1の説明において、 仮想分割数は、 4であるとして説明したが、 仮想分割数は、 動き量 Vに対応する。 動き量 Vは、 一般に、 前景に対応するォ ブジェクトの移動速度に対応する。 例えば、 前景に対応するオブジェクトが、 あ るフレームを基準として次のフレームにおいて 4画素分右側に表示されるように 移動しているとき、 動き量 Vは、 4とされる。 動き量 Vに対応し、 仮想分割数 は、 4とされる。 同様に、 例えば、 前景に対応するオブジェクトが、 あるフレー ムを基準として次のフレームにおいて 6画素分左側に表示されるように移動して いるとき、 動き量 Vは、 6とされ、 仮想分割数は、 6とされる。
図 1 2およぴ図 1 3に、 以上で説明した、 前景領域、 背景領域、 カバードバッ クグラウンド領域若しくはアンカパードバックグラウンド領域から成る混合領域 と、 分割されたシャツタ時間に対応する前景の成分および背景の成分との関係を 示す。
図 1 2は、 静止している背景の前を移動しているオブジェク トに対応する前景 を含む画像から、 前景領域、 背景領域、 および混合領域の画素を抽出した例を示 す。 図 1 2において Aで例を示す、 前景に対応するォブジェク トは、 画面に対し て水平に移動している。
フレーム #n+lは、 フレーム #ιιの次のフレームであり、 フレーム #n+2は、 フレ —ム #n+ lの次のフレームである。
フレーム 乃至フレーム #n+2 のいずれかから抽出した、 前景領域、 背景領域、 および混合領域の画素を抽出して、 動き量 Vを 4として、 抽出された画素の画 素値を時間方向に展開したモデ^/を図 1 3に示す。
前景領域の画素値は、 前景に対応するオブジェクトが移動するので、 シャツタ 時間/ Vの期間に対応する、 4つの異なる前景の成分から構成される。 例えば、 図 1 3に示す前景領域の画素のうち最も左側に位置する画素は、
F01/v, F02/v, F03/v、および F04/vから構成される。 すなわち、 前景領域の画素 は、 動きボケを含んでいる。
背景に対応するォブジェクトが静止しているので、 シャツタ時間に対応する期 間において、 センサに入力される背景に対応する光は変化しない。 この場合、 背 景領域の画素値は、 動きボケを含まない。
力バードバックグラウンド領域若しくはアンカバードバックグラウンド領域か ら成る混合領域に属する画素の画素値は、 前景の成分と、 背景の成分とから構成 される。
次に、 オブジェク トに対応する画像が動いているとき、 複数のフレームにおけ る、 隣接して 1列に並んでいる画素であって、 フレーム上で同一の位置の画素の 画素値を時間方向に展開したモデルについて説明する。 例えば、 オブジェクトに 対応する画像が画面に対して水平に動いているとき、 隣接して 1列に並んでいる 画素として、 画面の 1つのライン上に並んでいる画素を選択することができる。 図 1 4は、 静止している背景に対応するォブジェクトを撮像した画像の 3つの フレームの、 隣接して 1列に並んでいる画素であって、 フレーム上で同一の位置 の画素の画素値を時間方向に展開したモデル図である。 フレーム #nは、 フレー ム #n- 1の次のフレームであり、 フレーム #n+l は、 フレーム #nの次のフレームで ある。 他のフレームも同様に称する。
図 1 4に示す B01乃至 B12の画素値は、 静止している背景のォブジェク トに 対応する画素の画素値である。 背景に対応するオブジェクトが静止しているので、 フレーム #n- l乃至フレーム 11+1において、 対応する画素の画素値は、 変化しな い。 例えば、 フレーム ίίη-lにおける B05の画素値を有する画素の位置に対応す る、 フレーム #η における画素、 およびフレーム #η+1 における画素は、 それぞれ、 Β05の画素値を有する。
図 1 5は、 静止している背景に対応するオブジェクトと共に図中の右側に移動 する前景に対応するォブジェクトを撮像した画像の 3つのフレームの、 隣接して 1列に並んでいる画素であって、 フレーム上で同一の位置の画素の画素値を時間 方向に展開したモデル図である。 図 1 5に示すモデルは、 カバードバックグラウ ンド領域を含む。
図 1 5において、 前景に対応するオブジェクトが、 剛体であり、 等速で移動す ると仮定でき、 前景の画像が次のフレームにおいて 4画素右側に表示されるよう に移動するので、 前景の動き量 Vは、 4であり、 仮想分割数は、 4である。
例えば、 図 1 5中のフレーム の最も左側の画素の、 シャツタが開いて最 初のシャツタ時間/ Vの前景の成分は、 F12/vとなり、 図 1 5中の左から 2番目 の画素の、 シャツタが開いて 2番目のシャツタ時間/ Vの前景の成分も、 F12/v となる。 図 1 5中の左から 3番目の画素の、 シャツタが開いて 3番目のシャツタ 時間 /vの前景の成分、 および図 1 5中の左から 4番目の画素の、 シャツタが開 いて 4番目のシャツタ時間/ Vの前景の成分は、 F12/vとなる。
図 1 5中のフレーム #n- 1の最も左側の画素の、 シャッタが開いて 2番目のシ ャッタ時間/ Vの前景の成分は、 Fl l/vとなり、 図 1 5中の左から 2番目の画素 の、 シャツタが開いて 3番目のシャツタ時間/ V の前景の成分も、 Fll/v となる, 図 1 5中の左から 3番目の画素の、 シャッタが開いて 4番目のシャッタ時間/ V の前景の成分は、 Fl l/vとなる。
図 1 5中のフレーム #n- 1の最も左側の画素の、 シャッタが開いて 3番目のシ ャッタ時間/ Vの前景の成分は、 FlO/vとなり、 図 1 5中の左から 2番目の画素 の、 シャツタが開いて 4番目のシャツタ時間/ V の前景の成分も、 FlO/v となる, 図 1 5中のフレーム fe- 1の最も左側の画素の、 シャッタが開いて 4番目のシャ ッタ時間/ Vの前景の成分は、 F09/Vとなる。
背景に対応するォブジェクトが静止しているので、 図 1 5中のフレーム 1 の左から 2番目の画素の、 シャツタが開いて最初のシャツタ時間/ Vの背景の成 分は、 BO l/vとなる。 図 1 5中のフレーム - 1の左から 3番目の画素の、 シャ ッタが開いて最初および 2番目のシャツタ時間/ Vの背景の成分は、 B02/vとな る。 図 1 5中のフレーム #n-lの左から 4番目の画素の、 シャツタが開いて最初 乃至 3番目のシャツタ時間/ Vの背景の成分は、 B03/vとなる。
図 1 5中のフレーム #n- 1において、 最も左側の画素は、 前景領域に属し、 左 側から 2番目乃至 4番目の画素は、 カバードバックグラウンド領域である混合領 域に属する。 図 1 5中のフレーム #n-lの左から 5番目の画素乃至 1 2番目の画素は、 背景 領域に属し、 その画素値は、 それぞれ、 B04乃至 B11 となる。
図 1 5中のフレーム #nの左から 1番目の画素乃至 5番目の画素は、 前景領域 に属する。 フレーム #nの前景領域における、 シャツタ時間/ Vの前景の成分は、 F05/v乃至 F12/vのいずれかである。
前景に対応するオブジェクトが、 剛体であり、 等速で移動すると仮定でき、 前 景の画像が次のフレームにおいて 4画素右側に表示されるように移動するので、 図 1 5中のフレーム #nの左から 5番目の画素の、 シャツタが開いて最初のシャ ッタ時間/ V の前景の成分は、 F12/v となり、 図 1 5中の左から 6番目の画素の. シャツタが開いて 2番目のシャツタ時間/ Vの前景の成分も、 F12/vとなる。 図 1 5中の左から 7番目の画素の、 シャツタが開いて 3番目のシャツタ時間/ Vの 前景の成分、 およぴ図 1 5中の左から 8番目の画素の、 シャツタが開いて 4番目 のシャツタ時間/ Vの前景の成分は、 F12/vとなる。
図 1 5中のフレーム #nの左から 5番目の画素の、 シャツタが開いて 2番目の シャツタ時間/ Vの前景の成分は、 Fl l/vとなり、 図 1 5中の左から 6番目の画 素の、 シャツタが開いて 3番目のシャツタ時間/ Vの前景の成分も、 Fl l/vとな る。 図 1 5中の左から 7番目の画素の、 シャツタが開いて 4番目のシャツタ時間 /vの前景の成分は、 Fl l/vとなる。
図 1 5中のフレーム #nの左から 5番目の画素の、 シャッタが開いて 3番目の シャツタ時間/ Vの前景の成分は、 FlO/vとなり、 図 1 5中の左から 6番目の画 素の、 シャツタが開いて 4番目のシャツタ時間/ Vの前景の成分も、 FlO/vとな る。 図 1 5中のフレーム toの左から 5番目の画素の、 シャツタが開いて 4番目 のシャツタ時間/ Vの前景の成分は、 F09/vとなる。
背景に対応するォブジェクトが静止しているので、 図 1 5中のフレーム #nの 左から 6番目の画素の、 シャツタが開いて最初のシャツタ時間/ Vの背景の成分 は、 B05/vとなる。 図 1 5中のフレーム #nの左から 7番目の画素の、 シャツタ が開いて最初および 2番目のシャツタ時間 /vの背景の成分は、 B06/vとなる。 図 1 5中のフレーム #nの左から 8番目の画素の、 シャツタが開いて最初乃至 3 番目の、 シャツタ時間/ Vの背景の成分は、 B07/ となる。
図 1 5中のフレーム #ηにおいて、 左側から 6番目乃至 8番目の画素は、 カバ 一ドバックグラウンド領域である混合領域に属する。
図 1 5中のフレーム #ηの左から 9番目の画素乃至 1 2番目の画素は、 背景領 域に属し、 画素値は、 それぞれ、 Β08乃至 B11となる。
図 1 5中のフレーム #η+1の左から 1番目の画素乃至 9番目の画素は、 前景領 域に属する。 フレーム #η+1の前景領域における、 シャツタ時間/ Vの前景の成分 は、 FOl/v乃至 F12/ のいずれかである。
前景に対応するオブジェクトが、 剛体であり、 等速で移動すると仮定でき、 前 景の画像が次のフレームにおいて 4画素右側に表示されるように移動するので、 図 1 5中のフレーム #n+lの左から 9番目の画素の、 シャツタが開いて最初のシ ャッタ時間/ Vの前景の成分は、 F12/vとなり、 図 1 5中の左から 1 0番目の画 素の、 シャツタが開いて 2番目のシャツタ時間/ Vの前景の成分も、 F12/vとな る。 図 1 5中の左から 1 1番目の画素の、 シャツタが開いて 3番目のシャツタ時 間/ Vの前景の成分、 および図 1 5中の左から 1 2番目の画素の、 シャツタが開 いて 4番目のシャッタ時間/ Vの前景の成分は、 F12/vとなる。
図 1 5中のフレーム #n+lの左から 9番目の画素の、 シャツタが開いて 2番目 のシャツタ時間 /vの期間の前景の成分は、 Fl l/vとなり、 図 1 5中の左から 1 0番目の画素の、 シャツタが開いて 3番目のシャツタ時間/ Vの前景の成分も、
Fl l /v となる。 図 1 5中の左から 1 1番目の画素の、 シャツタが開いて 4番目の. シャツタ時間/ Vの前景の成分は、 Fl l/vとなる。
図 1 5中のフレーム #n+lの左から 9番目の画素の、 シャッタが開いて 3番目 の、 シャツタ時間/ Vの前景の成分は、 FlO/vとなり、 図 1 5中の左から 1 0番 目の画素の、 シャツタが開いて 4番目のシャツタ時間/ Vの前景の成分も、 FlO/v となる。 図 1 5中のフレーム #n+lの左から 9番目の画素の、 シャツタが開いて
4番目のシャツタ時間 /vの前景の成分は、 F09/vとなる。 背景に対応するォブジェクトが静止しているので、 図 1 5中のフレーム ί|η+1 の左から 1 0番目の画素の、 シャッタが開いて最初のシャッタ時間/ Vの背景の 成分は、 Β09/νとなる。 図 1 5中のフレーム の左から 1 1番目の画素の、 シャッタが開いて最初おょぴ 2番目のシャッタ時間/ Vの背景の成分は、 BlO/v となる。 図 1 5中のフレーム #n+lの左から 1 2番目の画素の、 シャツタが開い て最初乃至 3番目の、 シャツタ時間/ Vの背景の成分は、 Bl l/vとなる。
図 1 5中のフレーム #n+l において、 左側から 1 0番目乃至 1 2番目の画素は、 カバードバックグラウンド領域である混合領域に対応する。
図 1 6は、 図 1 5に示す画素値から前景の成分を抽出した画像のモデル図であ る。
図 1 7は、 静止している背景と共に図中の右側に移動するオブジェクトに対応 する前景を撮像した画像の 3つのフレームの、 隣接して 1列に並んでいる画素で あって、 フレーム上で同一の位置の画素の画素値を時間方向に展開したモデル図 である。 図 1 7において、 アンカバードバックグラウンド領域が含まれている。 図 1 7において、 前景に対応するオブジェクトは、 剛体であり、 かつ等速で移 動していると仮定できる。 前景に対応するオブジェクトが、 次のフレームにおい て 4画素分右側に表示される'ように移動しているので、 動き量 V は、 4である。 例えば、 図 1 7中のフレーム #n-lの最も左側の画素の、 シャツタが開いて最 初の、 シャツタ時間/ Vの前景の成分は、 F13/vとなり、 図 1 7中の左から 2番 目の画素の、 シャツタが開いて 2番目のシャツタ時間/ Vの前景の成分も、 F13/v となる。 図 1 7中の左から 3番目の画素の、 シャツタが開いて 3番目のシャツタ 時間/ Vの前景の成分、 およぴ図 1 7中の左から 4番目の画素の、 シャツタが開 いて 4番目のシャツタ時間/ Vの前景の成分は、 F13/vとなる。
図 1 7中のフレーム #n-lの左から 2番目の画素の、 シャッタが開いて最初の シャツタ時間/ Vの前景の成分は、 F14/vとなり、 図 1 7中の左から 3番目の画 素の、 シャツタが開いて 2番目のシャツタ時間/ Vの前景の成分も、 F14/vとな る。 図 1 7中の左から 3番目の画素の、 シャツタが開いて最初の、 シャツタ時間 /vの前景の成分は、 F15/vとなる。
背景に対応するォブジェク トが静止しているので、 図 1 7中のフレーム #n - 1 の最も左側の画素の、 シャツタが開いて 2番目乃至 4番目の、 シャツタ時間/ V の背景の成分は、 B25/vとなる。 図 1 7中のフレーム の左から 2番目の画 素の、 シャツタが開いて 3番目および 4番目の、 シャツタ時間/ Vの背景の成分 は、 B26/vとなる。 図 1 7中のフレーム #n - 1の左から 3番目の画素の、 シャツ タが開いて 4番目のシャツタ時間/ Vの背景の成分は、 B27/vとなる。
図 1 7中のフレーム #n- 1において、 最も左側の画素乃至 3番目の画素は、 ァ ンカバードバックグラウンド領域である混合領域に属する。
図 1 7中のフレーム #n-lの左から 4番目の画素乃至 1 2番目の画素は、 前景 領域に属する。 フレームの前景の成分は、 F1I3/V乃至 F24/vのいずれかである。 図 1 7中のフレーム #nの最も左側の画素乃至左から 4番目の画素は、 背景領 域に属し、 画素値は、 それぞれ、 B25乃至 B28となる。
前景に対応するオブジェク トが、 剛体であり、 等速で移動すると仮定でき、 前 景の画像が次のフレームにおいて 4画素右側に表示されるように移動するので、 図 1 7中のフレーム #ηの左から 5番目の画素の、 シャッタが開いて最初のシャ ッタ時間/ V の前景の成分は、 F13/v となり、 図 1 7中の左から 6番目の画素の、 シャツタが開いて 2番目のシャツタ時間/ Vの前景の成分も、 F13/vとなる。 図 1 7中の左から 7番目の画素の、 シャッタが開いて 3番目のシャッタ時間/ Vの 前景の成分、 および図 1 7中の左から 8番目の画素の、 シャツタが開いて 4番目 のシャツタ時間/ Vの前景の成分は、 F13/vとなる。
図 1 7中のフレーム #ηの左から 6番目の画素の、 シャツタが開いて最初のシ ャッタ時間/ Vの前景の成分は、 F14/vとなり、 図 1 7中の左から 7番目の画素 の、 シャツタが開いて 2番目のシャツタ時間 /ν の前景の成分も、 F14/v となる c 図 1 7中の左から 8番目の画素の、 シャツタが開いて最初のシャツタ時間/ Vの 前景の成分は、 F15/vとなる。
背景に対応するォブジェク トが静止しているので、 図 1 7中のフレーム の 左から 5番目の画素の、 シャツタが開いて 2番目乃至 4番目のシャツタ時間/ V の背景の成分は、 B29 Vとなる。 図 1 7中のフレーム #nの左から 6番目の画素 の、 シャッタが開いて 3番目および 4番目のシャッタ時間/ Vの背景の成分は、 B30/vとなる。 図 1 7中のフレーム #nの左から 7番目の画素の、 シャツタが開 いて 4番目のシャツタ時間/ Vの背景の成分は、 B31/vとなる。
図 1 7中のフレーム #nにおいて、 左から 5番目の画素乃至 7番目の画素は、 アンカバードバックグラウンド領域である混合領域に属する。
図 1 7中のフレーム #nの左から 8番目の画素乃至 1 2番目の画素は、 前景領 域に属する。 フレーム の前景領域における、 シャツタ時間/ Vの期間に対応す る値は、 F13/v乃至 F20/vのいずれかである。
図 1 7中のフレーム #η+1の最も左側の画素乃至左から 8番目の画素は、 背景 領域に属し、 画素値は、 それぞれ、 Β25乃至 Β32となる。
前景に対応するオブジェクトが、 剛体であり、 等速で移動すると仮定でき、 前 景の画像が次のフレームにおいて 4画素右側に表示されるように移動するので、 図 1 7中のフレーム の左から 9番目の画素の、 シャツタが開いて最初のシ ャッタ時間/ Vの前景の成分は、 F13/vとなり、 図 1 7中の左から 1 0番目の画 素の、 シャツタが開いて 2番目のシャツタ時間/ Vの前景の成分も、 F13/vとな る。 図 1 7中の左から 1 1番目の画素の、 シャツタが開いて 3番目のシャツタ時 間/ Vの前景の成分、 および図 1 7中の左から 1 2番目の画素の、 シャツタが開 いて 4番目のシャツタ時間/ Vの前景の成分は、 F13/vとなる。
図 1 7中のフレーム #n+ lの左から 1 0番目の画素の、 シャツタが開いて最初 のシャツタ時間/ Vの前景の成分は、 F14/vとなり、 図 1 7中の左から 1 1番目 の画素の、 シャツタが開いて 2番目のシャツタ時間/ Vの前景の成分も、 F14/v となる。 図 1 7中の左から 1 2番目の画素の、 シャツタが開いて最初のシャツタ 時間/ Vの前景の成分は、 F15/vとなる。
背景に対応するォブジェクトが静止しているので、 図 1 7中のフレーム の左から 9番目の画素の、 シャツタが開いて 2番目乃至 4番目の、 シャツタ時間 /vの背景の成分は、 B33/vとなる。 図 1 7中のフレーム fe+1の左から 1 0番目 の画素の、 シャッタが開いて 3番目および 4番目のシャッタ時間/ Vの背景の成 分は、 B34/vとなる。 図 1 7中のフレーム #n+lの左から 1 1番目の画素の、 シ ャッタが開いて 4番目のシャッタ時間/ Vの背景の成分は、 B35/vとなる。
図 1 7中のフレーム #n+lにおいて、 左から 9番目の画素乃至 1 1番目の画素 は、 ァンカバードバックグラウンド領域である混合領域に属する。
図 1 7中のフレーム #n+lの左から 1 2番目の画素は、 前景領域に属する。 フ レーム #n+ lの前景領域における、 シャツタ時間/ Vの前景の成分は、 F13/v乃至 F16/vのいずれかである。
図 1 8は、 図 1 7に示す画素値から前景の成分を抽出した画像のモデル図であ る。
図 2に戻り、 領域特定部 1 0 3は、 複数のフレームの画素値を用いて、 前景領 域、 背景領域、 カバードバックグラウンド領域、 またはアンカバードバックダラ ゥンド領域に属することを示すフラグを画素毎に対応付けて、 領域情報として、 混合比算出部 1 0 4および動きボケ調整部 1 0 6に供給する。
混合比算出部 1 0 4は、 複数のフレームの画素値、 および領域情報を基に、 混 合領域に含まれる画素について画素毎に混合比 Of を算出し、 算出した混合比ひ を前景背景分離部 1 0 5に供給する。
前景背景分離部 1 0 5は、 複数のフレームの画素値、 領域情報、 および混合比 を基に、 前景の成分のみからなる前景成分画像を抽出して、 動きボケ調整部 1 0 6に供給する。
動きボケ調整部 1 0 6は、 前景背景分離部 1 0 5から供給された前景成分画像、 動き検出部 1 0 2から供給された動きべク トル、 および領域特定部 1 0 3から供 給された領域情報を基に、 前景成分画像に含まれる動きボケの量を調整して、 動 きボケの量を調整した前景成分画像を出力する。
図 1 9のフローチャートを参照して、 信号処理装置による動きボケの量の調整 の処理を説明する。 ステップ S 1 1において、 領域特定部 1 0 3は、 入力画像を 基に、 入力画像の画素毎に前景領域、 背景領域、 カバードバックグラウンド領域、 またはアンカバードバックグラウンド領域の/、ずれかに属するかを示す領域情報 を生成する領域特定の処理を実行する。 領域特定の処理の詳細は、 後述する。 領 域特定部 1 0 3は、 生成した領域情報を混合比算出部 1 0 4に供給する。
なお、 ステップ S 1 1において、 領域特定部 1 0 3は、 入力画像を基に、 入力 画像の画素毎に前景領域、 背景領域、 または混合領域 (カバードバックグラウン ド領域、 またはアンカバードバックグラウンド領域の区別をしない) のいずれか に属するかを示す領域情報を生成するようにしてもよい。 この場合において、 前 景背景分離部 1 0 5および動きボケ調整部 1 0 6は、 動きべク トルの方向を基に、 混合領域がカバードバックグラウンド領域であるか、 またはアンカバードバック グラウンド領域であるかを判定する。 例えば、 動きべクトルの方向に対応して、 前景領域、 混合領域、 および背景領域と順に並んでいるとき、 その混合領域は、 カバードバックグラウンド領域と判定され、 動きべクトルの方向に対応して、 背 景領域、 混合領域、 および前景領域と順に並んでいるとき、 その混合領域は、 ァ ンカバードバックグラウンド領域と判定される。
ステップ S 1 2において、 混合比算出部 1 0 4は、 入力画像および領域情報を 基に、 混合領域に含まれる画素毎に、 混合比 α を算出する。 混合比算出の処理 の詳細は、 後述する。 混合比算出部 1 0 4は、 算出した混合比 を前景背景分 離部 1 0 5に供給する。
ステップ S 1 3において、 前景背景分離部 1 0 5は、 領域情報、 および混合比 を基に、 入力画像から前景の成分を抽出して、 前景成分画像として動きボケ 調整部 1 0 6に供給する。
ステップ S 1 4において、 動きボケ調整部 1 0 6は、 動きべクトルおよび領域 情報を基に、 動き方向に並ぶ連続した画素であって、 アンカバードバックグラウ ンド領域、 前景領域、 およびカバードバックグラウンド領域のいずれかに属する ものの画像上の位置を示す処理単位を生成し、 処理単位に対応する前景成分に含 まれる動きボケの量を調整する。 動きボケの量の調整の処理の詳細については、 後述する。
ステップ S I 5において、 信号処理装置は、 画面全体について処理を終了した か否かを判定し、 画面全体について処理を終了していないと判定された場合、 ス テツプ S 1 4に進み、 処理単位に対応する前景の成分を対象とした動きボケの量 の調整の処理を繰り返す。
ステップ S 1 5において、 画面全体について処理を終了したと判定された場合、 処理は終了する。
このように、 信号処理装置は、 前景と背景を分離して、 前景に含まれる動きボ ケの量を調整することができる。 すなわち、 信号処理装置は、 前景の画素の画素 値であるサンプルデータに含まれる動きボケの量を調整することができる。
以下、 領域特定部 1 0 3、 混合比算出部 1 0 4、 前景背景分離部 1 0 5、 およ び動きボケ調整部 1 0 6のそれぞれの構成について説明する。
図 2 0は、 領域特定部 1 0 3の構成を示すブロック図である。 図 2 0に構成を 示す領域特定部 1 0 3は、 動きべクトルを利用しない。
背景動き補償部 2 0 1は、 入力画像の背景の動きを検出して、 検出した背景の 動きに対応して、 入力画像を平行移動する。 背景動き補償部 2 0 1は、 背景の動 きに対応して、 平行移動した入力画像を領域特定処理部 2 0 2に供給する。
領域特定処理部 2 0 2に供給される画像は、 画面上の背景の位置が一致してい る。
領域特定処理部 2 0 2は、 背景動き補償部 2 0 1から供給された、 画面上の背 景の位置が一致している画像を基に、 各画素毎に、 アンカバードバックグラウン ド領域、 静止領域、 動き領域、 およびカバードバックグラウンド領域のいずれか に属することを示す領域情報を生成し、 生成した領域情報を出力する。
図 2 1は、 領域特定部 1 0 3のより詳細な構成を示すプロック図である。
背景動き補償部 2 0 1は、 フレームメモリ 2 2 1、 動き取得部 2 2 2— 1乃至 2 2 2— 4、 および画像シフト部 2 2 3— 1乃至 2 2 3— 4から構成される。
領域特定処理部 2 0 2は、 フレームメモリ 2 2 4、 静動判定部 2 2 5— 1乃至 2 2 5— 4、 領域判定部 2 2 6— 1乃至 2 2 6— 3、 判定フラグ格納フレームメ モリ 2 2 7、 合成部 2 2 8、 および判定フラグ格納フレームメモリ 2 2 9から構 成される。
フレームメモリ 2 2 1は、 入力された画像をフレーム単位で記億する。 フレー ムメモリ 2 2 1は、 処理の対象がフレーム #nであるとき、 フレ^ ~ム¾の 2つ前 のフレームであるフレーム #n - 2、 フレーム #ιιの 1つ前のフレームであるフレー ム #n_l、 フレーム #n、 フレーム #nの 1つ後のフレームであるフレーム #n+l、 お よびフレーム #nの 2つ後のフレームであるフレーム #n+2を記憶する。
動き取得部 2 2 2— 1は、 フレームメモリ 2 2 1に記憶されているフレーム #n+2から、 所定の数の画素からなる注目ブロックを取得する。 動き取得部 2 2 2— 1は、 取得した注目プロックを基に、 フレームメモリ 2 2 1に記憶されてい るフレーム #nの画像から、 注目プロックとパターンが一致する画像の部分を検 索する。 動き取得部 2 2 2— 1は、 フレーム #n+2の注目ブロックの位置、 およ ぴ注目プロックとパターンが一致する、 フレーム to の画像の部分の位置を基に 動きべク トルを生成する。
動き取得部 2 2 2— 2は、 フレームメモリ 2 2 1に記憶されているフレーム #n+lから、 所定の数の画素からなる注目ブロックを取得する。 動き取得部 2 2 2— 2は、 取得した注目プロックを基に、 フレームメモリ 2 2 1に記憶されてい るフレーム #nの画像から、 注目プロックとパターンが一致する画像の部分を検 索する。 動き取得部 2 2 2— 2は、 フレーム #n+lの注目ブロックの位置、 およ び注目ブロックとパターンが一致する、 フレーム の画像の部分の位置を基に 動きべク トルを生成する。
動き取得部 2 2 2— 3は、 フレームメモリ 2 2 1に記憶されているフレーム #n - 1から、 所定の数の画素からなる注目ブロックを取得する。 動き取得部 2 2 2— 3は、 取得した注目ブロックを基に、 フレームメモリ 2 2 1に記憶されてい るフレーム toの画像から、 注目プロックとパターンが一致する画像の部分を検 索する。 動き取得部 2 2 2— 3は、 フレーム #n-lの注目ブロックの位置、 およ び注目ブロックとパターンが一致する、 フレーム #n の画像の部分の位置を基に- 動きべクトルを生成する。
動き取得部 2 2 2— 4は、 フレームメモリ 2 2 1に記憶されているフレーム #n-2から、 所定の数の画素からなる注目プロックを取得する。 動き取得部 2 2 2— 4は、 取得した注目ブロックを基に、 フレームメモリ 2 2 1に記憶されてい るフレーム #nの画像から、 注目プロックとパターンが一致する画像の部分を検 索する。 動き取得部 2 2 2— 4は、 フレーム #n- 2の注目ブロックの位置、 およ ぴ注目ブロックとパターンが一致する、 フレーム の画像の部分の位置を基に. 動きべクトルを生成する。
以下、 動き取得部 2 2 2— 1乃至 2 2 2— 4を個々に区別する必要がないとき. 単に、 動き取得部 2 2 2と称する。
例えば、 図 2 2に示すように、 動き取得部 2 2 2は、 1つのフレームの画像を. 図 2 2において Aで示す、 m画素 X n画素からなる分割領域に分割し、 分割され た分割領域毎に、 図 2 2において Bで示す、 M画素 X N画素からなる注目プロッ クを選択する。
動き取得部 2 2 2は、 各分割領域の注目ブロック毎に、 対応するフレームの画 像から、 注目ブロックとパターンが一致する画像の部分を検索し、 各注目ブロッ ク毎に、 動きべクトルを生成する。 動き取得部 2 2 2は、 注目ブロック毎に生成 された動きべク トルを基に、 2つのフレームに対応する動きべクトルを生成する c 例えば、 動き取得部 2 2 2は、 注目ブロック毎に生成された動きべク トルの平均 値を算出して、 算出された動きベク トルを、 2つのフレームに対応する動きべク 卜ノレとする。
一般的に、 入力画像の背景の画像オブジェク トが前景の画像オブジェクトに比 較して大きいので、 動き取得部 2 2 2は、 背景の画像オブジェクトの動きに対応 する動きベクトルを出力することができる。
なお、 動き取得部 2 2 2は、 2つのフレームの画像を全画面ブロックマツチン グを行うことにより、 背景の画像オブジェクトの動きに対応する動きべクトルを 生成するようにしてもよい。
また、 動き取得部 2 2 2は、 入力画像から背景の画像オブジェクトを抽出し、 抽出された画像オブジェクトを基に、 背景の画像オブジェクトの動きに対応する 動きべクトルを生成するようにしてもよい。
画像シフ ト部 2 2 3— 1は、 動き取得部 2 2 2 _ 1から供給された背景の画像 オブジェクトに対応する動きべクトルを基に、 フレームメモリ 2 2 1に記憶され ているフレーム #n+2を平行移動して、 平行移動したフレーム #n+2の画像を領域 特定処理部 2 0 2のフレームメモリ 2 2 4に供給する。
画像シフト部 2 2 3— 2は、 動き取得部 2 2 2— 2から供給された背景の画像 オブジェクトに対応する動きべク トルを基に、 フレームメモリ 2 2 1に記憶され ているフレーム #η+1を平行移動して、 平行移動したフレーム #η+1の画像を領域 特定処理部 2 0 2のフレームメモリ 2 2 4に供給する。
画像シフト部 2 2 3— 3は、 動き取得部 2 2 2— 3から供給された背景の画像 オブジェクトに対応する動きべクトルを基に、 フレームメモリ 2 2 1に記憶され ているフレーム #η-1を平行移動して、 平行移動したフレーム #η-1の画像を領域 特定処理部 2 0 2のフレームメモリ 2 2 4に供給する。
画像シフト部 2 2 3— 4は、 動き取得部 2 2 2— 4から供給された背景の画像 オブジェク トに対応する動きべクトルを基に、 フレームメモリ 2 2 1に記憶され ているフレーム #η-2を平行移動して、 平行移動したフレーム #η- 2の画像を領域 特定処理部 2 0 2のフレームメモリ 2 2 4に供給する。
フレームメモリ 2 2 1は、 フレーム #ηの画像を領域特定処理部 2 0 2のフレ ームメモリ 2 2 4に供給する。
画像シフト部 2 2 3— 1乃至 2 2 3— 4およびフレームメモリ 2 2 1が領域特 定処理部 2 0 2のフレームメモリ 2 2 4に供給する画像は、 画面上の背景の位置 がー致している。
領域特定処理部 2 0 2のフレームメモリ 2 2 4は、 画像シフト部 2 2 3— 1乃 至 2 2 3— 4またはフレームメモリ 2 2 1から供給された画像をフレーム単位で 記憶する。
静動判定部 2 2 5— 1は、 フレーム #nの領域特定の対象である画素の画像上 の位置と同一の位置にあるフレーム #n+2の画素の画素値、 およびフレーム #nの 領域特定の対象である画素の画像上の位置と同一の位置にあるフレーム #n+lの 画素の画素値をフレームメモリ 2 2 4から読み出して、 読み出した画素値の差の 絶対値を算出する。 静動判定部 2 2 5— 1は、 フレーム #n+2の画素値とフレー ム Hn+1の画素値との差の絶対値が、 予め設定している閾値 Thより大きいか否か を判定し、 差の絶対値が閾値 Thより大きいと判定された場合、 動きを示す静動 判定を領域判定部 2 2 6— 1に供給する。 フレーム #n+2の画素の画素値とフレ —ム #n+lの画素の画素値との差の絶対値が閾値 Th以下であると判定された場合、 静動判定部 2 2 5— 1は、 静止を示す静動判定を領域判定部 2 2 6— 1に供給す る。 ' 静動判定部 2 2 5— 2は、 フレーム thの領域特定の対象である画素の画像上 の位置と同一の位置にあるフレーム #n+lの画素の画素値、 およびフレーム の 対象となる画素の画素値をフレームメモリ 2 2 4から読み出して、 画素値の差の 絶対値を算出する。 静動判定部 2 2 5— 2は、 フレーム #n+lの画素値とフレー ム #nの画素値との差の絶対値が、 予め設定している閾値 Thより大きいか否かを 判定し、 画素値の差の絶対値が、 閾値 Thより大きいと判定された場合、 動きを 示す静動判定を領域判定部 2 2 6— 1および領域判定部 2 2 6— 2に供給する。 フレーム #n+lの画素の画素値とフレーム #ηの画素の画素値との差の絶対値が、 閾値 Th以下であると判定された場合、 静動判定部 2 2 5— 2は、 静止を示す静 動判定を領域判定部 2 2 6— 1および領域判定部 2 2 6— 2に供給する。
静動判定部 2 2 5— 3は、 フレーム #n の領域特定の対象である画素の画素値、 およぴフレーム #nの領域特定の対象である画素の画像上の位置と同一の位置に あるフレーム #n - 1の画素の画素値をフレームメモリ 2 2 4から読み出して、 画 素値の差の絶対値を算出する。 静動判定部 2 2 5— 3は、 フレーム の画素値 とフレーム #n- 1の画素値との差の絶対値が、 予め設定している閾値 Thより大き いか否かを判定し、 画素値の差の絶対値が、 閾値 Thより大きいと判定された場 合、 動きを示す静動判定を領域判定部 2 2 6— 2およぴ領域判定部 2 2 6— 3に 供給する。 フレーム #nの画素の画素値とフレーム #n - 1の画素の画素値との差の 絶対値が、 閾値 Th以下であると判定された場合、 静動判定部 2 2 5— 3は、 静 止を示す静動判定を領域判定部 2 2 6— 2および領域判定部 2 2 6— 3に供給す る。
諍動判定部 2 2 5—4は、 フレーム の領域特定の対象である画素の画像上 の位置と同一の位置にあるフレーム #n-lの画素の画素値、 およぴフレーム の 領域特定の対象である画素の画像上の位置と同一の位置にあるフレーム #n- 2の 画素の画素値をフレームメモリ 2 2 4から読み出して、 画素値の差の絶対値を算 出する。 静動判定部 2 2 5— 4は、 フレーム #n-lの画素値とフレーム #n-2の画 素値との差の絶対値が、 予め設定している閾値 Thより大きいか否かを判定し、 画素値の差の絶対値が、 閾値 Thより大きいと判定された場合、 動きを示す静動 判定を領域判定部 2 2 6— 3に供給する。 フレーム #n-lの画素の画素値とフレ ーム #n-2の画素の画素値との差の絶対値が、 閾値 Th以下であると判定された場 合、 静動判定部 2 2 5 _ 4は、 静止を示す静動判定を領域判定部 2 2 6— 3に供 給する。
領域判定部 2 2 6— 1は、 静動判定部 2 2 5— 1から供給された静動判定が静 止を示し、 かつ、 静動判定部 2 2 5— 2から供給された静動判定が動きを示して いるとき、 フレーム #nにおける領域特定の対象である画素がアンカバードバッ クグラウンド領域に属すると判定し、 領域の判定される画素に対応するアンカバ 一ドバックグラウンド領域判定フラグに、 ァンカバードバックダラゥンド領域に 属することを示す" 1 " を設定する。
領域判定部 2 2 6— 1は、 静動判定部 2 2 5— 1から供給された静動判定が動 きを示すか、 または、 静動判定部 2 2 5— 2から供給された静動判定が静止を示 しているとき、 フレーム #nにおける領域特定の対象である画素がアンカバード バックグラウンド領域に属しないと判定し、 領域の判定される画素に対応するァ ンカバードパックグラウンド領域判定フラグに、 アンカバードバックグラウンド 領域に属しないことを示す" 0 " を設定する。
領域判定部 2 2 6— 1は、 このように" 1 " または" 0 " が設定されたアンカ バードバックグラウンド領域判定フラグを判定フラグ格納フレームメモリ 2 2 7 に供給する。
領域判定部 2 2 6 - 2は、 静動判定部 2 2 5— 2から供給された静動判定が静 止を示し、 かつ、 静動判定部 2 2 5— 3から供給された静動判定が静止を示して いるとき、 フレーム における領域特定の対象である画素が静止領域に属する と判定し、 領域の判定される画素に対応する静止領域判定フラグに、 静止領域に 属することを示す" 1 " を設定する。
領域判定部 2 2 6— 2は、 静動判定部 2 2 5 - 2から供給された静動判定が動 きを示すか、 または、 静動判定部 2 2 5— 3から供給された静動判定が動きを示 しているとき、 フレーム における領域特定の対象である画素が静止領域に属 しないと判定し、 領域の判定される画素に対応する静止領域判定フラグに、 静止 領域に属しないことを示す" 0 " を設定する。
領域判定部 2 2 6— 2は、 このように" 1 " または" 0 " が設定された静止領 域判定フラグを判定フラグ格納フレームメモリ 2 2 7に供給する。
領域判定部 2 2 6 _ 2は、 静動判定部 2 2 5— 2から供給された静動判定が動 きを示し、 かつ、 静動判定部 2 2 5— 3から供給された静動判定が動きを示して いるとき、 フレーム #nにおける領域特定の対象である画素が動き領域に属する と判定し、 領域の判定される画素に対応する動き領域判定フラグに、 動き領域に 属することを示す" 1 " を設定する。
領域判定部 2 2 6— 2は、 静動判定部 2 2 5— 2から供給された静動判定が静 止を示すか、 または、 静動判定部 2 2 5— 3から供給された静動判定が静止を示 しているとき、 フレーム #nにおける領域特定の対象である画素が動き領域に属 しないと判定し、 領域の判定される画素に対応する動き領域判定フラグに、 動き 領域に属しないことを示す" 0 " を設定する。 領域判定部 2 2 6— 2は、 このように" 1 " または" 0 " が設定された動き領 域判定フラグを判定フラグ格納フレームメモリ 2 2 7に供給する。
領域判定部 2 2 6— 3は、 静動判定部 2 2 5— 3から供給された静動判定が動 きを示し、 かつ、 静動判定部 2 2 5— 4から供給された静動判定が静止を示して いるとき、 フレーム における領域特定の対象である画素がカバードバックグ ラウンド領域に属すると判定し、 領域の判定される画素に対応するカバードバッ クグラウンド領域判定フラグに、 カバードバックグラウンド領域に属することを 示す" 1 " を設定する。
領域判定部 2 2 6— 3は、 静動判定部 2 2 5— 3から供給された静動判定が静 止を示すか、 または、 静動判定部 2 2 5— 4から供給された静動判定が動きを示 しているとき、 フレーム #nにおける領域特定の対象である画素がカバードバッ クグラウンド領域に属しないと判定し、 領域の判定される画素に対応するカバー ドバックグラウンド領域判定フラグに、 カバードバックグラウンド領域に属しな いことを示す" 0 " を設定する。
領域判定部 2 2 6— 3は、 このように" 1 " または" 0 " が設定された力パー ドバックグラウンド領域判定フラグを判定フラグ格納フレームメモリ 2 2 7に供 給する。
判定フラグ格納フレームメモリ 2 2 7は、 領域判定部 2 2 6— 1から供給され たアンカバードバックグラウンド領域判定フラグ、 領域判定部 2 2 6— 2から供 給された静止領域判定フラグ、 領域判定部 2 2 6一 2から供給された動き領域判 定フラグ、 およぴ領域判定部 2 2 6— 3から供給された力バードバックグラウン ド領域判定フラグをそれぞれ記憶する。
判定フラグ格納フレームメモリ 2 2 7は、 記憶しているアンカバ一ドバックグ ラウンド領域判定フラグ、 静止領域判定フラグ、 動き領域判定フラグ、 および力 バードバックグラウンド領域判定フラグを合成部 2 2 8に供給する。 合成部 2 2 8は、 判定フラグ格納フレームメモリ 2 2 7から供給された、 アンカバードバッ クグラウンド領域判定フラグ、 静止領域判定フラグ、 動き領域判定フラグ、 およ びカバードバックグラウンド領域判定フラグを基に、 各画素が、 アンカバードバ ックグラウンド領域、 静止領域、 動き領域、 およびカバードバックグラウンド領 域のいずれかに属することを示す領域情報を生成し、 判定フラグ格納フレームメ モリ 2 2 9に供給する。
判定フラグ格納フレームメモリ 2 2 9は、 合成部 2 2 8カゝら供給された領域情 報を記憶すると共に、 記憶している領域情報を出力する。
次に、 領域特定部 1. 0 3の処理の例を図 2 3乃至図 2 7を参照して説明する。 前景に対応するォブジェク トが移動しているとき、 ォブジェクトに対応する画 像の画面上の位置は、 フレーム毎に変化する。 図 2 3に示すように、 フレーム #nにおいて、 画像内のある領域について、 Yn (xl,yl)で示される位置に位置す るオブジェク トに対応する画像は、 次のフレームであるフレーム #n+l において. Yn+ l (x2, y2)に位置する。
前景のオブジェク トに対応する画像の動き方向に隣接して 1列に並ぶ画素の画 素値を時間方向に展開したモデル図を図 2 4に示す。 例えば、 前景のオブジェク トに対応する画像の動き方向が画面に対して水平であるとき、 図 2 4におけるモ デル図は、 1つのライン上の瞵接する画素の画素値を時間方向に展開したモデル を示す。
図 2 4において、 フレーム #nにおけるラインは、 フレーム #n+lにおけるライ ンと同一である。
フレーム toにおいて、 左から 2番目の画素乃至 1 3番目の画素に含まれてい るオブジェクトに対応する前景の成分は、 フレーム #n+lにおいて、 左から 6番 目乃至 1 7番目の画素に含まれる。
フレーム #nにおいて、 カバードバックグラウンド領域に属する画素は、 左か ら 1 1番目乃至 1 3番目の画素であり、 アンカバードパックグラウンド領域に属 する画素は、 左から 2番目乃至 4番目の画素である。 フレーム #n+lにおいて、 カバードバックグラウンド領域に属する画素は、 左から 1 5番目乃至 1 7番目の 画素であり、 アンカバードバックグラウンド領域に属する画素は、 左から 6番目 乃至 8番目の画素である。
図 2 4に示す例において、 フレーム #ηに含まれる前景の成分が、 フレーム #η+ 1 において 4画素移動しているので、 動き量 V は、 4である。 仮想分割数は、 動き量 Vに対応し、 4である。
次に、 注目しているフレームの前後における混合領域に属する画素の画素値の 変化について説明する。
図 2 5に示す、 背景が静止し、 前景の動き量 Vが 4であるフレーム #ηにおい て、 カバードバックグラウンド領域に属する画素は、 左から 1 5番目乃至 1 7番 目の画素である。 動き量 Vが 4であるので、 1つ前のフレーム #η- 1において、 左から 1 5番目乃至 1 7番目の画素は、 背景の成分のみを含み、 背景領域に属す る。 また、 更に 1つ前のフレーム #η - 2において、 左から 1 5番目乃至 1 7番目 の画素は、 背景の成分のみを含み、 背景領域に属する。
ここで、 背景に対応するオブジェクトが静止しているので、 フレーム #η-1の 左から 1 5番目の画素の画素値は、 フレーム #η - 2の左から 1 5番目の画素の画 素値から変化しない。 同様に、 フレーム #η-1の左から 1 6番目の画素の画素値 は、 フレーム #η-2の左から 1 6番目の画素の画素値から変化せず、 フレーム #η - 1の左から 1 7番目の画素の画素値は、 フレーム #η_2の左から 1 7番目の画素 の画素値から変化しない。
すなわち、 フレーム #ηにおけるカバードバックグラウンド領域に属する画素 に対応する、 フレーム #η-1およびフレーム #η- 2の画素は、 背景の成分のみから 成り、 画素値が変化しないので、 その差の絶対値は、 ほぼ 0の値となる。 従って、 フレーム #ηにおける混合領域に属する画素に対応する、 フレーム - 1およびフ レーム #n- 2の画素に対する静動判定は、 静動判定部 2 2 5— 4により、 静止と 判定される。
フレーム #nにおけるカバードパックグラウンド領域に属する画素は、 前景の 成分を含むので、 フレーム #η-1における背景の成分のみから成る場合と、 画素 値が異なる。 従って、 フレーム #ηにおける混合領域に属する画素、 および対応 するフレーム #n - 1の画素に対する静動判定は、 静動判定部 2 2 5— 3により、 動きと判定される。
このように、 領域判定部 2 2 6— 3は、 静動判定部 2 2 5— 3から動きを示す 静動判定の結果が供給され、 静動判定部 2 2 5— 4から静止を示す静動判定の結 果が供給されたとき、 対応する画素がカバードバックグラウンド領域に属すると 判定する。
図 2 6に示す、 背景が静止し、 前景の動き量 Vが 4であるフレーム #nにおい て、 アンカバードバックグラウンド領域に含まれる画素は、 左から 2番目乃至 4 番目の画素である。 動き量 V が 4であるので、 1つ後のフレーム #n+l において- 左から 2番目乃至 4番目の画素は、 背景の成分のみを含み、 背景領域に属する。 また、 更に 1つ後のフレーム #n+2 において、 左から 2番目乃至 4番目の画素は、 背景の成分のみを含み、 背景領域に属する。
ここで、 背景に対応するオブジェクトが静止しているので、 フレーム の 左から 2番目の画素の画素値は、 フレーム #n+lの左から 2番目の画素の画素値 から変化しない。 同様に、 フレーム #n+2の左から 3番目の画素の画素値は、 フ レーム #n+lの左から 3番目の画素の画素値から変化せず、 フレーム #n+2の左力、 ら 4番目の画素の画素値は、 フレーム #n+lの左から 4番目の画素の画素値から 変化しない。
すなわち、 フレーム におけるアンカバードバックグラウンド領域に属する 画素に対応する、 フレーム #n+lおよびフレーム #n+2の画素は、 背景の成分のみ から成り、 画素値が変化しないので、 その差の絶対値は、 ほぼ 0の値となる。 従 つて、 フレーム #nにおける混合領域に属する画素に対応する、 フレーム #n+lお よびフレーム #n+2の画素に対する静動判定は、 静動判定部 2 2 5 _ 1により、 静止と判定される。
フレーム #nにおけるアンカバードバックグラウンド領域に属する画素は、 前 景の成分を含むので、 フレーム #n+lにおける背景の成分のみから成る場合と、 画素値が異なる。 従って、 フレーム #nにおける混合領域に属する画素、 および 対応するフレーム #n+lの画素に対する静動判定は、 静動判定部 2 2 5— 2によ り、 動きと判定される。
このように、 領域判定部 2 2 6— 1は、 静動判定部 2 2 5 _ 2から動きを示す 静動判定の結果が供給され、 静動判定部 2 2 5— 1から静止を示す静動判定の結 果が供給されたとき、 対応する画素がアンカバードバックグラウンド領域に属す ると判定する。
図 2 7は、 フレーム における領域特定部 1 0 3の判定条件を示す図である フレーム #nの判定の対象となる画素の画像上の位置と同一の位置にあるフレー ム #n- 2の画素と、 フレーム #nの判定の対象となる画素の画像上の位置と同一の 位置にあるフレーム #n-lの画素とが静止と判定され、 フレーム #nの判定の対象 となる画素の画像上の位置と同一の位置にあるフレーム #n - 1の画素と、 フレー ム #ηの画素とが動きと判定されたとき、 領域特定部 1 0 3は、 フレーム #ηの判 定の対象となる画素がカバードバックグラウンド領域に属すると判定する。
フレーム #ηの判定の対象となる画素の画像上の位置と同一の位置にあるフレ ーム #η- 1の画素と、 フレーム #ηの画素とが静止と判定され、 フレーム #ηの画素 と、 フレーム #ηの判定の対象となる画素の画像上の位置と同一の位置にあるフ レーム #η+1の画素とが静止と判定されたとき、 領域特定部 1 0 3は、 フレーム #ηの判定の対象となる画素が静止領域に属すると判定する。
フレーム #ηの判定の対象となる画素の画像上の位置と同一の位置にあるフレ 一ム¾ - 1の画素と、 フレーム #nの画素とが動きと判定され、 フレーム #nの画素 と、 フレーム #nの判定の対象となる画素の画像上の位置と同一の位置にあるフ レーム #n+lの画素とが動きと判定されたとき、 領域特定部 1 0 3は、 フレーム #nの判定の対象となる画素が動き領域に属すると判定する。
フレーム #nの画素と、 フレーム の判定の対象となる画素の画像上の位置と 同一の位置にあるフレーム #n+lの画素とが動きと判定され、 フレーム #nの判定 の対象となる画素の画像上の位置と同一の位置にあるフレーム #n+lの画素と、 フレーム の判定の対象となる画素の画像上の位置と同一の位置にあるフレー ム #n+2の画素とが静止と判定されたとき、 領域特定部 1 0 3は、 フレームでの 判定の対象となる画素がアンカバードバックグラウンド領域に属すると判定する, 図 2 8 A乃至図 2 8 Dは、 領域特定部 1 0 3の領域の特定の結果の例を示す図 である。 図 2 8 Aにおいて、 カバードバックグラウンド領域に属すると判定され た画素は、 白で表示されている。 図 2 8 Bにおいて、 アンカバードバックグラウ ンド領域に属すると判定された画素は、 白で表示されている。
図 2 8 Cにおいて、 動き領域に属すると判定された画素は、 白で表示されてい る。 図 2 8 Dにおいて、 静止領域に属すると判定された画素は、 白で表示されて いる。
図 2 9は、 判定フラグ格納フレームメモリ 2 2 9が出力する領域情報の内、 混 合領域を示す領域情報を画像として示す図である。 図 2 9において、 カバードバ ックグラウンド領域またはアンカバードパックグラウンド領域に属すると判定さ れた画素、 すなわち混合領域に属すると判定された画素は、 白で表示されている t 判定フラグ格納フレームメモリ 2 2 9が出力する混合領域を示す領域情報は、 混 合領域、 および前景領域内のテクスチャの無い部分に囲まれたテクスチャの有る 部分を示す。
次に、 図 3 0および図 3 1のフローチャートを参照して、 領域特定部 1 0 3の 領域特定の処理を説明する。 ステップ S 2 0 1において、 フレームメモリ 2 2 1 は、 判定の対象となるフレーム #nを含むフレーム #n - 2乃至フレーム #n+2の画像 を取得する。 フレームメモリ 2 2 1は、 フレーム nをフレームメモリ 2 2 4に 供給する。
ステップ S 2 0 2において、 動き取得部 2 2 2— 1は、 フレームメモリ 2 2 1 に記憶されているフレーム #n+2の画像およびフレーム #nの画像を基に、 フレー ム #n+2とフレーム #nとの間の背景の動きべク トルを取得する。 動き取得部 2 2 2— 1は、 動きベク トルを画像シフト部 2 2 3— 1に供給する。
ステップ S 2 0 3において、 画像シフト部 2 2 3— 1は、 動き取得部 2 2 2 - 1から供給された動きべクトルを基に、 フレームメモリ 2 2 1に記憶されている フレーム #n+2の画像を平行移動し、 平行移動したフレーム #n+2の画像をフレー ムメモリ 2 2 4に供給する。
ステップ S 2 0 4において、 動き取得部 2 2 2— 2は、 フレームメモリ 2 2 1 に記憶されているフレーム #n+l の画像おょぴフレーム の画像を基に、 フレー ム ttn+1とフレーム #nとの間の背景の動きべクトルを取得する。 動き取得部 2 2 2— 2は、 動きべクトルを画像シフト部 2 2 3— 2に供給する。
ステップ S 2 0 5において、 画像シフ ト部 2 2 3— 2は、 動き取得部 2 2 2— 2から供給された動きべク トルを基に、 フレームメモリ 2 2 1に記憶されている フレーム #n+lの画像を平行移動し、 平行移動したフレーム #n+lの画像をフレー ムメモリ 2 2 4に供給する。
ステップ S 2 0 6において、 動き取得部 2 2 2— 3は、 フレームメモリ 2 2 1 に記憶されているフレーム #n-lの画像およびフレーム #nの画像を基に、 フレー ム#0 - 1 とフレーム #nとの間の背景の動きべクトルを取得する。 動き取得部 2 2 2 _ 3は、 動きべクトルを画像シフト部 2 2 3 _ 3に供給する。
ステップ S 2 0 7において、 画像シフ ト部 2 2 3— 3は、 動き取得部 2 2 2— 3から供給された動きべク トルを基に、 フレームメモリ 2 2 1に記憶されている フレーム #n-lの画像を平行移動し、 平行移動したフレーム の画像をフレー ムメモリ 2 2 4に供給する。
ステップ S 2 0 8において、 動き取得部 2 2 2— 4は、 フレームメモリ 2 2 1 に記憶されているフレーム #n- 2の画像およびフレーム #nの画像を基に、 フレー ム #n- 2とフレーム #ηとの間の背景の動きべクトルを取得する。 動き取得部 2 2 2— 4は、 動きべクトルを画像シフト部 2 2 3— 4に供給する。
ステップ S 2 0 9において、 画像シフ ト部 2 2 3— 4は、 動き取得部 2 2 2— 4から供給された動きべクトルを基に、 フレームメモリ 2 2 1に記憶されている フレーム #η- 2の画像を平行移動し、 平行移動したフレーム #η- 2の画像をフレー ムメモリ 2 2 4に供給する。
ステップ S 2 1 0において、 静動判定部 2 2 5— 3は、 フレーム #η_1の画素 とフレーム #nの同一位置の画素とで、 静止か否かを判定し、 静止と判定された 場合、 ステップ S 2 1 1に進み、 静動判定部 2 2 5— 2は、 フレーム #nの画素 とフレーム #n+lの同一位置の画素とで、 静止か否かを判定する。
ステップ S 2 1 1において、 フレーム #nの画素とフレーム #n+lの同一位置の 画素とで、 静止と判定された場合、 ステップ S 2 1 2に進み、 領域判定部 2 2 6 — 2は、 領域の判定される画素に対応する静止領域判定フラグに、 静止領域に属 することを示す" 1 " を設定する。 領域判定部 2 2 6— 2は、 静止領域判定フラ グを判定フラグ格納フレームメモリ 2 2 7に供給し、 手続きは、 ステップ S 2 1 3に進む。
ステップ S 2 1 0において、 フレーム #n-lの画素とフレーム #nの同一位置の 画素とで、 動きと判定された場合、 または、 ステップ S 2 1 1において、 フレー ム の画素とフレーム #n+lの同一位置の画素とで、 動きと判定された場合、 フ レーム #ηの画素が静止領域には属さないので、 ステップ S 2 1 2の処理はスキ ップされ、 手続きは、 ステップ S 2 1 3に進む。
ステップ S 2 1 3において、 静動判定部 2 2 5— 3は、 フレーム の画素 とフレーム #nの同一位置の画素とで、 動きか否かを判定し、 動きと判定された 場合、 ステップ S 2 1 4に進み、 静動判定部 2 2 5— 2は、 フレーム #nの画素 とフレーム #n+lの同一位置の画素とで、 動きか否かを判定する。
ステップ S 2 1 4において、 フレーム #nの画素とフレーム #η+1の同一位置の 画素とで、 動きと判定された場合、 ステップ S 2 1 5に進み、 領域判定部 2 2 6 一 2は、 領域の判定される画素に対応する動き領域判定フラグに、 動き領域に属 することを示す'' 1 " を設定する。 領域判定部 2 2 6 _ 2は、 動き領域判定フラ グを判定フラグ格納フレームメモリ 2 2 7に供給し、 手続きは、 ステップ S 2 1 6に進む。
ステップ S 2 1 3において、 フレーム #η-1の画素とフレーム #ηの同一位置の 画素とで、 静止と判定された場合、 または、 ステップ S 2 1 4において、 フレー ム #ηの画素とフレーム #η+1の同一位置の画素とで、 静止と判定された場合、 フ レーム #nの画素が動き領域には属さないので、 ステップ S 2 1 5の処理はスキ ップされ、 手続きは、 ステップ S 2 1 6に進む。
ステップ S 2 1 6において、 静動判定部 2 2 5— 4は、 フレーム #n- 2の画素 とフレーム #n-lの同一位置の画素とで、 静止か否かを判定し、 静止と判定され た場合、 ステップ S 2 1 7に進み、 静動判定部 2 2 5— 3は、 フレーム #n- 1の 画素とフレーム #nの同一位置の画素とで、 動きか否かを判定する。
ステップ S 2 1 7において、 フレーム #n- 1の画素とフレーム #nの同一位置の 画素とで、 動きと判定された場合、 ステップ S 2 1 8に進み、 領域判定部 2 2 6 一 3は、 領域の判定される画素に対応するカバードバックグラウンド領域判定フ ラグに、 カバードバックグラウンド領域に属することを示す" 1 " を設定する。 領域判定部 2 2 6— 3は、 カバードバックグラウンド領域判定フラグを判定フラ グ格納フレームメモリ 2 2 7に供給し、 手続きは、 ステップ S 2 1 9に進む。 ステップ S 2 1 6において、 フレーム #n-2の画素とフレーム #n-lの同一位置 の画素とで、 動きと判定された場合、 または、 ステップ S 2 1 7において、 フレ ーム #n-lの画素とフレーム #nの同一位置の画素とで、 静止と判定された場合、 フレーム の画素がカバードパックグラウンド領域には属さないので、 ステツ プ S 2 1 8の処理はスキップされ、 手続きは、 ステップ S 2 1 9に進む。
ステップ S 2 1 9において、 静動判定部 2 2 5— 2は、 フレーム #nの画素と フレーム #n+lの同一位置の画素とで、 動きか否かを判定し、 動きと判定された 場合、 ステップ S 2 2 0に進み、 静動判定部 2 2 5— 1は、 フレーム #n+lの画 素とフレーム #n+2の同一位置の画素とで、 静止か否かを判定する。
ステップ S 2 2 0において、 フレーム +1の画素とフレーム #n+2の同一位置 の画素とで、 静止と判定された場合、 ステップ S 2 2 1に進み、 領域判定部 2 2 6— 1は、 領域の判定される画素に対応するアンカバードバックグラウンド領域 判定フラグに、 アンカバードバックグラウンド領域に属することを示す" 1 " を 設定する。 領域判定部 2 2 6— 1は、 ァンカバードバックグラウンド領域判定フ ラグを判定フラグ格納フレームメモリ 2 2 7に供給し、 手続きは、 ステップ S 2 2 2に進む。
ステップ S 2 1 9において、 フレーム の画素とフレーム #n+lの同一位置の 画素とで、 静止と判定された場合、 または、 ステップ S 2 2 0において、 フレー ム #n+lの画素とフレーム #n+2の同一位置の画素とで、 動きと判定された場合、 フレーム #nの画素がアンカバードバックグラウンド領域には属さないので、 ス テツプ S 2 2 1の処理はスキップされ、 手続きは、 ステップ S 2 2 2に進む。
ステップ S 2 2 2において、 領域特定部 1 0 3は、 フレーム #nの全ての画素 について領域を特定したか否かを判定し、 フレーム の全ての画素について領 域を特定していないと判定された場合、 手続きは、 ステップ S 2 1 0に戻り、 他 の画素について、 領域特定の処理を繰り返す。
ステップ S 2 2 2において、 フレーム #nの全ての画素について領域を特定し たと判定された場合、 ステップ S 2 2 3に進み、 合成部 2 2 8は、 判定フラグ格 納フレームメモリ 2 2 7に記憶されているアンカバードバックグラウンド領域判 定フラグ、 およびカバードバックグラウンド領域判定フラグを基に、 混合領域を 示す領域情報を生成し、 更に、 各画素が、 アンカバードバックグラウンド領域、 静止領域、 動き領域、 およびカバードバックグラウンド領域のいずれかに属する ことを示す領域情報を生成し、 生成した領域情報を判定フラグ格納フレームメモ リ 2 2 9に設定し、 処理は終了する。
このように、 領域特定部 1 0 3は、 フレームに含まれている画素のそれぞれに ついて、 動き領域、 静止領域、 アンカバードバックグラウンド領域、 またはカバ 一ドバックグラウンド領域に属することを示す領域情報を生成することができる, 領域特定部 1 0 3は、 背景の画像オブジェクトの位置を一致させてから、 領域判 定の処理を実行するので、 より正確な領域情報を生成することができる。
なお、 領域特定部 1 0 3は、 アンカバードパックグラウンド領域およびカバー ドバックグラウンド領域に対応する領域情報に論理和を適用することにより、 混 合領域に対応する領域情報を生成して、 フレームに含まれている画素のそれぞれ について、 動き領域、 静止領域、 または混合領域に属することを示すフラグから 成る領域情報を生成するよう
前景に対応するォブジェクトがテクスチャを有する場合、 領域特定部 1 0 3は、 より正確に動き領域を特定することができる。
領域特定部 1 0 3は、 動き領域を示す領域情報を前景領域を示す領域情報とし て、 また、 静止領域を示す領域情報を背景領域を示す領域情報として出力するこ とができる。
図 3 2は、 領域特定部 1 0 3の他の構成を示すブロック図である。 オブジェク ト抽出部 2 5 1は、 入力画像から前景のォブジェクトに対応する前景の画像ォプ ジェク トを抽出するとともに、 前景の画像ォブジェクトに対応する画素以外の画 素に背景領域に属することを示す値を設定して、 前景の画像オブジェクトおよび 背景領域に属することを示す値から構成される領域特定オブジェク トを生成して、 動き補償部 2 5 2および減算部 2 5 4に供給する。
オブジェク ト抽出部 2 5 1は、 例えば、 入力画像に含まれる前景のオブジェク トに対応する画像オブジェクトの輪郭を検出することで、 前景のォブジェク トに 対応する画像オブジェクトを抽出する。 また、 例えば、 オブジェクト抽出部 2 5 1は、 内部に設けられている背景メモリに記憶されている背景の画像と、 入力画 像との差から、 前景のオブジェクトに対応する画像オブジェクトを抽出するよう にしてもよい。
さらに、 例えば、 オブジェクト抽出部 2 5 1は、 入力画像の動きを検出して、 静止している画素に背景領域に属することを示す値を設定して、 前景の画像ォプ ジェク トおよび背景領域に属することを示す値から構成される領域特定オブジェ クトを生成するようにしてもよい。
オブジェク ト抽出部 2 5 1から出力される領域特定オブジェクトに含まれる画 像オブジェク トは、 前景領域に属す画素および混合領域に属する画素を含む。
前景のオブジェクトに対応する画像オブジェクトの動き方向に隣接して 1列に 並ぶ画素の画素値を時間方向に展開したモデル図の例を図 3 3に示す。 例えば、 前景のオブジェクトに対応する画像オブジェクトの動き方向が画面に対して水平 であるとき、 図 3 3におけるモデル図は、 1つのライン上の隣接する画素の画素 値を時間方向に展開したモデルを示す。
図 3 3において、 フレーム #nにおけるラインは、 フレーム #n- 1におけるライ ンと同一であ ¾。
フレーム #nにおいて、 左から 6番目の画素乃至 1 7番目の画素に含まれてい る前景のオブジェクトに対応する前景の成分は、 フレーム #n-lにおいて、 左か ら 2番目乃至 1 3番目の画素に含まれる。
フレーム #n - 1において、 カバードバックグラウンド領域に属する画素は、 左 から 1 1番目乃至 1 3番目の画素であり、 アンカバードバックグラウンド領域に 属する画素は、 左から 2番目乃至 4番目の画素である。
フレーム #nにおいて、 カバードバックグラウンド領域に属する画素は、 左か ら 1 5番目乃至 1 7番目の画素であり、 アンカバードバックグラウンド領域に属 する画素は、 左から 6番目乃至 8番目の画素である。
フレーム #n lにおいて、 背景領域に属する画素は、 左から 1番目の画素、 お よび左から 1 4番目乃至 2 1番目の画素である。
フレーム toにおいて、 背景領域に属する画素は、 左から 1番目乃至 5番目の 画素、 および左から 1 8番目乃至 2 1番目の画素である。
図 3 3に示す例に対応する、 ォブジェクト抽出部 2 5 1が抽出する領域特定ォ ブジェクトの例を図 3 4に示す。
オブジェク ト抽出部 2 5 1は、 入力画像の注目している画素が動いている画素、 すなわち、 前景の成分を含む、 前景領域に属する画素または混合領域に属する画 素であるとき、 領域特定オブジェクトの対応する画素に、 入力画像の注目してい る画素の画素値をそのまま設定する。
オブジェクト抽出部 2 5 1は、 入力画像の注目している画素が静止している画 素であるとき、 領域特定オブジェクトの対応する画素に、 背景領域に属すること を示す値を設定する。
このように、 前景の成分を含む画素または背景領域に属することを示す値が設 定された画素からなる領域特定ォブジェクトが、.動き補償部 2 5 2および減算部 2 5 4に供給される。
動き補償部 2 5 2は、 動き検出部 1 0 2から供給された動きべクトルおよびそ の位置情報を基に、 オブジェク ト抽出部 2 5 1から供給された領域特定オブジェ ク トを動き補償する。 図 3 5は、 動き補償部 2 5 2により、 動き補償されたフレ ーム #n-lの領域特定オブジェク トの例を示す図である。 動き補償されたフレー ム #n- 1の領域特定ォプジ クトの前景領域に属する画素の位置は、 フレーム の領域特定オブジェクトの前景領域に属する画素の位置に対応する。 同様に、 動 き補償されたフレーム #n- 1の領域特定オブジェクトの混合領域に属する画素の 位置は、 フレーム #nの領域特定オブジェクトの混合領域に属する画素の位置に 対応する。
動き補償部 2 5 2は、 動き補償された領域特定オブジェクトをフレームメモリ 2 5 3に供給する。
フレームメモリ 2 5 3は、 動き補償された領域特定オブジェクトをフレーム単 位で記憶する。 オブジェクト抽出部 2 5 1から減算部 2 5 4にフレーム #nの前 景のォブジェクトに対応する領域特定ォブジェクトが供給されるとき、 フレーム メモリ 2 5 3は、 フレーム #nの前のフレームであるフレーム の、 動き補償 された領域特定オブジェクトを減算部 2 5 4に供給する。
減算部 2 5 4は、 オブジェクト抽出部 2 5 1から供給されたフレーム #ηの領 域特定オブジェクトの前景領域に属する画素の画素値から、 対応する位置の、 フ レームメモリ 2 5 3から供給されたフレーム #η_1の領域特定オブジェク トの前 景領域に属する画素の画素値を減算して、 前景領域に属する画素のフレーム差分 を求める。
減算部 2 5 4は、 オブジェク ト抽出部 2 5 1から供給されたフレーム #ηの領 域特定オブジェクトの混合領域に属する画素の画素値から、 対応する位置の、 フ レームメモリ 2 5 3から供給されたフレーム の領域特定オブジェク トの混 合領域に属する画素の画素値を減じて、 混合領域に属する画素のフレーム差分を 求める。
減算部 2 5 4は、 フレーム #nの領域特定オブジェクトの画素が、 背景領域に 属することを示す値が設定されているとき、 減算を実行しない。
減算部 2 5 4は、 前景領域に属する画素のフレーム差分、 または混合領域に属 する画素のフレーム差分を領域特定オブジェクトの対応する画素に設定し、 前景 領域に属する画素のフレーム差分、 混合領域に属する画素のフレーム差分、 また は背景領域に属することを示す値が設定された領域特定オブジェクトをしきい値 処理部 2 5 5に供給する。
しきい値処理部 2 5 5は、 入力されたしきい値 Thと、 減算部 2 5 4から供給 された領域特定オブジェクトの画素に設定された、 前景領域に属する画素のフレ ーム差分、 または混合領域に属する画素のフレーム差分とを比較する。 しきいィ直 処理部 2 5 5は、 領域特定ォブジェクトのフレーム差分がしきい値 Thより大き いと判定された場合、 領域特定オブジェクトの対応する画素に、 混合領域に属す ることを示す値を設定する。
しきい値処理部 2 5 5は、 領域特定オブジェクトのフレーム差分がしきい値 Th以下であると判定された場合、 領域特定オブジェクトの対応する画素に、 前 景領域に属することを示す値を設定する。
しきい値処理部 2 5 5は、 背景領域に属することを示す値、 .混合領域に属する ことを示す値、 および前景領域に属することを示す値のいずれかがそれぞれの画 素に設定された領域特定オブジェクトを、 混合領域を示す情報を含む領域情報と して外部に出力するか、 または時間変化検出部 2 5 6に出力する。
図 3 6は、 しきい値処理部 2 5 5の処理の例を説明する図である。 図 3 6に示 すように、 フレーム #n-lの前景領域に属する、 前景の成分 FO l/v, F02/v, F03/v, および F04/vから構成される画素 P04の位置は、 動き補償により、 フレーム の前景領域に属する、 前景の成分 FO l/v, F02/v,F03/v、 および F04/vから構成 される画素 C04の位置と一致する。
フレーム #n_lの前景領域に属する、 前景の成分 F02/v, F03/v, F04/v、 および F05/vから構成される画素 P05の位置は、 動き補償により、 フレーム #nの前景 領域に属する、 前景の成分 F02/v, F03/v, F04/v、 および F05/vから構成される 画素 C05の位置と一致する。
同様に、 フレーム #n- 1の前景領域に属する画素 P06、 画素 P07、 画素 P08、 お よび画素 P09の位置は、 動き補償により、 フレーム #nの前景領域に属する、 そ れぞれ同一の値を有する画素 C06、 画素 C07、 画素 C08、 または画素 C09の位置 と一致する。
このように、 前景領域に属する画素のフレーム差分は 0となるので、 しきい 値処理部 2 5 5は、 フレーム差分がしきい値 Th以下であると判定し、 画素 C04、 画素 C05、 画素 C06、 画素 C07、 画素 C08、 および画素 C09に、 前景領域に属す ることを示す値を設定する。
一方、 動き補償により、 フレーム #n_l の混合領域に属する画素 P01 の位置は、 フレーム #nの前景領域に属する画素 C01の位置に対応する。 画素 P01が、 背景 の成分 B02/vを含むのに対して、 画素 C01は、 背景の成分 B06/vを含むので、 減算部 2 5 4は、 背景の成分 B02/Vと背景の成分 B06/vとに対応するフレーム 差分を出力する。
背景の成分 B02/Vが背景の成分 B06/Vと異なるので、 しきい値処理部 2 5 5 は、 フレーム差分がしきい値 Thより大きいと判定し、 画素 C01に、 混合領域に 属することを示す値を設定する。
動き補償により、 フレーム #n- 1の混合領域に属する画素 P02の位置は、 フレ ーム #nの前景領域に属する画素 C02の位置に対応する。 画素 P02が、 背景の成 分 B03/vを含むのに対して、 画素 C02は、 背景の成分 B07/vを含むので、 減算 部 2 5 4は、 背景の成分 B03/Vと背景の成分 B07/vとに対応するフレーム差分 を出力する。
背景の成分 B03/vが背景の成分 B07/vと異なるので、 しきい値処理部 2 5 5 は、 フレーム差分がしきい値 Thより大きいと判定し、 画素 C02に、 混合領域に 属することを示す値を設定する。 同様に、 減算部 2 5 4は、 混合領域に属する画素 C03に対応して、 背景の成 分 B04/vと背景の成分 B08/vとに対応するフレーム差分を出力し、 混合領域に 属する画素 C10に対応して、 背景の成分 Bl l/vと背景の成分 B15/vとに対応す るフレーム差分を出力し、 混合領域に属する画素 C11に対応して、 背景の成分 B12/vと背景の成分 BlS/vとに対応するフレーム差分を出力し、 混合領域に属す る画素 C12に対応して、 背景の成分 B13/vと背景の成分 B17/vとに対応するフ レーム差分を出力する。
従って、 しきい値処理部 2 5 5は、 画素 C03、 画素 C10、 画素 Cl l、 および画 素 C12のそれぞれに、 混合領域に属することを示す値を設定する。
時間変化検出部 2 5 6は、 しきい値処理部 2 5 5から供給された、 混合領域を 示す情報を含む領域情報を基に、 さらに、 カバードバックグラウンド領域おょぴ アンカバードバックグラウンド領域を特定して、 カバードバックグラウンド領域 およびアンカバードバックグラウンド領域を示す情報を含む領域情報を生成する c 図 3 7は、 時間変化検出部 2 5 6の構成を説明するブロック図である。 フレー ムメモリ 2 6 1は、 フレーム #ηの画素について領域を判定するとき、 しきい値 処理部 2 5 5から供給された、 フレーム #η_1、 およびフレーム #ηの混合領域を 示す情報を含む領域情報を記憶する。
領域判定部 2 6 2は、 フレームメモリ 2 6 1に記憶されているフレーム #η- 1、 およびフレーム toの混合領域を示す情報を含む領域情報を基に、 フレーム の 混合領域の各画素について、 カバードバックグラウンド領域に属するか、 または アンカバードバックグラウンド領域に属するかを判定して、 カバードバックダラ ゥンド領域およびァンカバードバックグラウンド領域を示す情報を含む領域情報 を生成し、 生成した領域情報を出力する。
図 3 8およぴ図 3 9に示すように、 フレーム #nの混合領域に属する画素に対 応する、 フレーム #n-lの画素が前景領域に属するとき、 フレーム toの混合領域 に属する画素は、 アンカバードバックグラウンド領域に属する。
フレーム の混合領域に属する画素に対応する、 フレーム #n- 1の画素が背景 領域に属するとき、 フレーム #nの混合領域に属する画素は、 カバードバックグ ラウンド領域に属する。
図 3 8において、 Aは、 アンカバードバックグラウンド領域を示し、 Bは、 前 景領域を示す。 図 3 8において、 Cは、 カバードバックグラウンド領域を示し、 Dは、 背景領域を示す。
領域判定部 2 6 2は、 図 4 0に示すように、 フレーム #n-lの対応する画素が 前景領域に属するとき、 フレーム #nの混合領域に属する画素がアンカバードバ ックグラウンド領域に属すると判定し、 フレーム 1の対応する画素が背景領 域に属するとき、 フレーム の混合領域に属する画素がカバードバックグラゥ ンド領域に属すると判定する。
次に、 図 4 1のフローチャートを参照して、 領域特定部 1 0 3の領域特定の処 理を説明する。 ステップ S 2 5 1において、 領域特定部 1 0 3のオブジェク ト抽 出部 2 5 1は、 入力画像を基に、 例えば、 輪郭検出の処理により、 前景のォブジ ェク トに対応する前景の画像ォブジェクトを抽出するとともに、 背景領域に属す る画素に背景領域に属することを示す値を設定して、 領域特定オブジェクトを生 成する。 オブジェク ト抽出部 2 5 1は、 生成した領域特定オブジェク トを動き補 償部 2 5 2および減算部 2 5 4に供給する。
ステップ S 2 5 2において、 動き補償部 2 5 2は、 動き検出部 1 0 2から供給 された動きべクトルおよびその位置情報を基に、 オブジェクト抽出部 2 5 1から 供給された領域特定ォブジェクトを動き補償する。 動き補償部 2 5 2は、 動き補 償された領域特定オブジェクトをフレームメモリ 2 5 3に供給する。 フレームメ モリ 2 5 3は、 動き補償された領域特定オブジェクトを記憶し、 記憶されている 領域特定オブジェクトを減算部 2 5 4に供給する。
ステップ S 2 5 3において、 減算部 2 5 4は、 ォブジェクト抽出部 2 5 1から 供給されたフレーム #nの領域特定オブジェクトと、 動き補償された、 フレーム メモリ 2 5 3から供給されたフレーム #n-lの領域特定オブジェクトとの差分を 求め、 求められた差分をしきい値処理部 2 5 5に供給する。 ステップ S 2 5 4において、 しきい値処理部 2 5 5は、 しきい値 Thを基に、 フレーム #nの領域特定オブジェクトと、 動き補償されたフレーム 1の領域特 定ォブジェク トとの差分から、 混合領域を検出し、 混合領域を示す情報を含む領 域情報を外部に出力するか、 または時間変化検出部 2 5 6に供給する。
ステップ S 2 5 5において、 時間変化検出部 2 5 6は、 混合領域を示す情報を 含む領域情報を基に、 カバードバックグラウンド領域またはァンカバードバック グラウンド領域を検出する処理を実行して、 カバードバックグラウンド領域また はァンカバードバックグラウンド領域を示す情報を含む領域情報を生成し、 生成 した領域情報を出力し、 処理は終了する。
次に、 図 4 2のフローチャートを参照して、 図 4 1のステップ S 2 5 5に対応 する、 混合領域を処理の対象とする、 カバードバックグラウンド領域またはアン カバードバックグラウンド領域を検出する処理の詳細を説明する。
ステップ S 2 6 1において、 時間変化検出部 2 5 6の領域判定部 2 6 2は、 混 合領域に属する注目している画素に対応する、 前のフレームの画素が前景領域に 属するか否かを判定し、 前のフレームの対応する画素が前景領域に属すると判定 された場合、 ステップ S 2 6 2に進み、 注目している画素がアンカバードバック グラウンド領域に属すると設定し、 処理は終了する。
ステップ S 2 6 1において、 前のフレームの対応する画素が背景領域に属する と判定された場合、 ステップ S 2 6 3に進み、 領域判定部 2 6 2は、 注目してい る画素がカバードバックグラウンド領域に属すると設定し、 処理は終了する。 このように、 領域特定部 1 0 3は、 注目している画素が存在するフレームの、 前景のォブジェクトに対応する前景の画像オブジェクト、 および注目している画 素が存在するフレームの前のフレームの、 動き補償された前景の画像オブジェク トを基に、 注目している画素が前景領域、 背景領域、 および混合領域のいずれか に属するかを特定して、 特定した結果に対応する領域情報を生成することができ る。
さらに、 領域特定部 1 0 3は、 注目している画素が存在するフレームの前のフ レームの領域情報を基に、 混合領域に属する注目している画素が、 アンカバード バックグラウンド領域に属するか否か、 またはカバードバックグラウンド領域に 属するか否かを検出することができる。
図 4 3は、 領域特定部 1 0 3のさらに他の構成を示すブロック図である。 図 3 2に示す場合と同様の部分には同一の番号を付してあり、 その説明は省略する。 識別部 2 8 1は、 動き検出部 1 0 2から供給された動きべク トルおよびその位 置情報、 並びにしきい値処理部 2 5 5から供給された混合領域を示す情報を含む 領域情報を基に、 カバードバックグラウンド領域またはアンカバードバックダラ ゥンド領域を特定して、 カバードバックグラウンド領域またはアンカバ一ドバッ クグラウンド領域を示す情報を含む領域情報を生成して、 生成した領域情報を出 力する。
図 4 4は、 識別部 2 8 1の判定の処理を説明する図である。 図 4 4において、 Aは、 アンカバードバックグラウンド領域を示し、 Bは、 カバードバックグラウ ンド領域を示す。 図 4 4において、 aおよび bは、 注目している画素を示す。 図 4 4において、 Vは、 動きベクトルを示す。
前景のオブジェクトに対応する前景の画像ォブジェクトの動き方向の先端部に 注目している画素が位置するとき、 注目している画素は、 カバードバックグラウ ンド領域に属する。 前景のオブジェクトに対応する前景の画像オブジェク トの動 き方向の後端部に注目している画素が位置するとき、 注目している画素は、 アン カバードバックグラウンド領域に属する。 従って、 識別部 2 8 1は、 混合領域に 属する注目している画素の位置を基準として、 動きべクトルで示される位置の画 素が前景領域に属するとき、 注目している画素がアンカバードバックグラウンド 領域に属すると判定する。 識別部 2 8 1は、 前景領域に属する所定の画素の位置 を基準として、 混合領域に属する注目している画素の位置が動きべクトルで示さ れるとき、 注目している画素がカバードバックグラウンド領域に属すると判定す る。
図 4 5のフローチャートを参照して、 混合領域を処理の対象とする、 識別部 2 8 1によるカバードバックグラウンド領域またはアンカバードバックグラウンド 領域の検出の処理を説明する。
ステップ S 2 8 1において、 識別部 2 8 1は、 注目している画素が前景のォブ ジェクトの動き方向の先端部に位置するか否かを判定し、 注目している画素が前 景のオブジェクトの動き方向の先端部に位置すると判定された場合、 ステップ S 2 8 2に進み、 注目している画素がカバードバックグラウンド領域に属する旨を 設定して、 処理は終了する。
ステップ S 2 8 1において、 注目している画素が前景のオブジェク トの動き方 向の先端部に位置しないと判定された場合、 注目している画素が前景のオブジェ ク トの動き方向の後端部に位置するので、 識別部 2 8 1は、 ステップ S 2 8 3に 進み、 注目している画素がアンカパードバックグラウンド領域に属する旨を設定 して、 処理は終了する。
このように、 領域特定部 1 0 3は、 動きべクトルを基に、 混合領域に属する注 目している画素がカバードバックグラウンド領域に属するか、 またはアンカバー ドバックグラウンド領域に属するかを識別することができる。
図 4 6は、 混合比算出部 1 0 4の構成の一例を示すブロック図である。 推定混 合比処理部 4 0 1は、 入力画像を基に、 カバードバックグラウンド領域のモデル に対応する演算により、 画素毎に推定混合比を算出して、 算出した推定混合比を 混合比決定部 4 0 3に供給する。 '
推定混合比処理部 4 0 2は、 入力画像を基に、 アンカバードバックグラウンド 領域のモデルに対応する演算により、 画素毎に推定混合比を算出して、 算出した 推定混合比を混合比決定部 4 0 3に供給する。
前景に対応するォブジェクトがシャッタ時間内に等速で動いていると仮定でき るので、 混合領域に属する画素の混合比 は、 以下の性質を有する。 すなわち- 混合比 は、 画素の位置の変化に対応して、 直線的に変化する。 画素の位置の 変化を 1次元とすれば、 混合比 の変化は、 直線で表現することができ、 画素 の位置の変化を 2次元とすれば、 混合比 の変化は、 平面で表現することがで きる。
なお、 1フレームの期間は短いので、 前景に対応するオブジェクトが剛体であ り、 等速で移動していると仮定が成り立つ。
この場合、 混合比 の傾きは、 前景のシャツタ時間内での動き量 Vの逆比と なる。
理想的な混合比 Of の例を図 4 7に示す。 理想的な混合比 の混合領域におけ る傾き 1は、 動き量 Vの逆数として表すことができる。
図 4 7に示すように、 理想的な混合比ひは、 背景領域において、 1の値を有 し、 前景領域において、 0の値を有し、 混合領域において、 0を越え 1未満の値 を有する。
図 4 8の例において、 フレーム #nの左から 7番目の画素の画素値 C06は、 フ レーム - 1の左から 7番目の画素の画素値 P06を用いて、 式 (4 ) で表すこと ができる。
C06 = B06/V + B06/V + FOllv + F02lv
= P06/V + P06/V + FOllv + F02lv
= 2/νΡ06 +∑,ΓίΙν (4) 式 (4 ) において、 画素値 C06を混合領域の画素の画素値 Μと、 画素値 Ρ06 を背景領域の画素の画素値 Βと表現する。 すなわち、 混合領域の画素の画素値 Μ および背景領域の画素の画素値 Βは、 それぞれ、 式 (5 ) および式 (6 ) のよ うに表現することができる。
M=C06 ( 5 )
B=P06 ( 6 )
式 (4 ) 中の 2/vは、 混合比 に対応する。 動き量 Vが 4なので、 フレーム の左から 7番目の画素の混合比ひは、 0. 5となる。
以上のように、 注目しているフレーム #nの画素値 Cを混合領域の画素値と見 なし、 フレーム toの前のフレーム fc-1の画素値 Pを背景領域の画素値と見なす ことで、 混合比 を示す式 (3 ) は、 式 (7 ) のように書き換えられる。 C= - P+f ( 7 )
式 (7 ) の f は、 注目している画素に含まれる前景の成分の和 ∑iFi/vである。 式 (7 ) に含まれる変数は、 混合比 αおよび前景の成分の和 f の 2つである。 同様に、 アンカバードバックグラウンド領域における、 動き量 V が 4であり 時間方向の仮想分割数が 4である、 画素値を時間方向に展開したモデルを図 4 9 に示す。
アンカバードバックグラウンド領域において、 上述したカバードバックグラウ ンド領域における表現と同様に、 注目しているフレーム #nの画素値 Cを混合領 域の画素値と見なし、 フレーム の後のフレーム #n+lの画素値 Nを背景領域の 画素値と見なすことで、 混合比 を示す式 (3 ) は、 式 (8 ) のように表現す ることができる。
C= - N+f ( 8 )
なお、 背景のオブジェクトが静止しているとして説明したが、 背景のオブジェ ク トが動いている場合においても、 背景の動き量 Vに対応させた位置の画素の 画素値を利用することにより、 式 (4 ) 乃至式 (8 ) を適用することができる。 例えば、 図 4 8において、 背景に対応するオブジェク トの動き量 V が 2であり 仮想分割数が 2であるとき、 背景に対応するオブジェクトが図中の右側に動いて いるとき、 式 (6 ) における背景領域の画素の画素値 Bは、 画素値 P04とされ る。
式 (7 ) および式 (8 ) は、 それぞれ 2つの変数を含むので、 そのままでは混 合比 を求めることができない。 ここで、 画像は一般的に空間的に相関が強い ので近接する画素同士でほぼ同じ画素値となる。
そこで、 前景成分は、 空間的に相関が強いので、 前景の成分の和 f を前また は後のフレームから導き出せるように式を変形して、 混合比 を求める。
図 5 0のフレーム #nの左から 7番目の画素の画素値 Mcは、 式 (9 ) で表すこ とができる。
Figure imgf000068_0001
式 (9) の右辺第 1項の 2/vは、 混合比 に相当する。 式 (9) の右辺第 2項 は、 後のフレーム #n+lの画素値を利用して、 式 (10) のように表すこととす る。
Figure imgf000068_0002
ここで、 前景の成分の空間相関を利用して、 式 (1 1) が成立するとする。
F=F05=F06=F07=F08=F09=F10=F11=F12 (1 1) 式 (1 0) は、 式 (1 1) を利用して、 式 (1 2) のように置き換えることがで さる。
=6- -. ( 結果として、 βは、 式 (13) で表すことができる。
)3=2/4 (1 3)
一般的に、 式 (1 1) に示すように混合領域に関係する前景の成分が等しいと 仮定すると、 混合領域の全ての画素について、 内分比の関係から式 (14) が成 立する。
β=1-α (14)
式 (14) が成立するとすれば、 式 (7) は、 式 (1 5) に示すように展開す ることができる。
Figure imgf000068_0003
r+v-i
= *P+(i-a)'∑Filv
同様に、 式 (14) が成立するとすれば、 式 (8) は、 式 (16) に示すよう に展開することができる。
C = a'N+f
Figure imgf000069_0001
= a-N+(l-a)'P (16) 式 (1 5) および式 (1 6) において、 C, N、 および Pは、 既知の画素値な ので、 式 (1 5) および式 (1 6) に含まれる変数は、 混合比ひのみである。 式 ( 1 5) および式 (1 6) における、 C, N、 および P の関係を図 5 1に示す c Cは、 混合比 a を算出する、 フレーム #nの注目している画素の画素値である。 Nは、 注目している画素と空間方向の位置が対応する、 フレーム #n+lの画素の 画素値である。 Pは、 注目している画素と空間方向の位置が対応する、 フレーム #n-lの画素の画素値である。
従って、 式 (1 5) および式 (1 6) のそれぞれに 1つの変数が含まれること となるので、 3つのフレームの画素の画素値を利用して、 混合比 o を算出する ことができる。 式 (1 5) および式 (1 6) を解くことにより、 正しい混合比 が算出されるための条件は、 混合領域に関係する前景の成分が等しい、 すな わち、 前景のォブジェクトが静止しているとき撮像された前景の画像ォブジェク トにおいて、 前景のオブジェクトの動きの方向に対応する、 画像オブジェクトの 境界に位置する画素であって、 動き量 Vの 2倍の数の連続している画素の画素 値が、 一定であることである。
以上のように、 カバードバックグラウンド領域に属する画素の混合比 は、 式 (1 7) により算出され、 アンカパードバックグラウンド領域に属する画素の 混合比 は、 式 (1 8) により算出される。
Of = (C-N)/(P-N) (1 7)
a = (C-P)/(N-P) (1 8)
図 5 2は、 推定混合比処理部 40 1の構成を示すブロック図である。 フレーム メモリ 4 2 1は、 入力された画像をフレーム単位で記憶し、 入力画像として入力 されているフレームから 1つ後のフレームをフレームメモリ 4 2 2および混合比 演算部 4 2 3に供給する。
フレームメモリ 4 2 2は、 入力された画像をフレーム単位で記憶し、 フレーム メモリ 4 2 1から供給されているフレームから 1つ後のフレームを混合比演算部 4 2 3に供給する。
従って、 入力画像としてフレーム #n+lが混合比演算部 4 2 3に入力されてい るとき、 フレームメモリ 4 2 1は、 フレーム #n を混合比演算部 4 2 3に供給し- フレームメモリ 4 2 2は、 フレーム #n_lを混合比演算部 4 2 3に供給する。
混合比演算部 4 2 3は、 式 (1 7 ) に示す演算により、 フレーム toの注目し ている画素の画素値 c、 注目している画素と空間的位置が対応する、 フレーム #n+lの画素の画素値 N、 および注目している画素と空間的位置が対応する、 フ レーム #n- 1の画素の画素値 Pを基に、 注目している画素の推定混合比を算出し て、 算出した推定混合比を出力する。 例えば、 背景が静止しているとき、 混合比 演算部 4 2 3は、 フレーム #nの注目している画素の画素値 C、 注目している画 素とフレーム内の位置が同じ、 フレーム #n+lの画素の画素値 N、 および注目し ている画素とフレーム内の位置が同じ、 フレーム #n- 1 の画素の画素値 P を基に、 注目している画素の推定混合比を算出して、 算出した推定混合比を出力する。
このように、 推定混合比処理部 4 0 1は、 入力画像を基に、 推定混合比を算出 して、 混合比決定部 4 0 3に供給することができる。
なお、 推定混合比処理部 4 0 2は、 推定混合比処理部 4 0 1が式 (1 7 ) に示 す演算により、 注目している画素の推定混合比を算出するのに対して、 式 (1 8 ) に示す演算により、 注目している画素の推定混合比を算出する部分が異なる ことを除き、 推定混合比処理部 4 0 1と同様なので、 その説明は省略する。
図 5 3は、 推定混合比処理部 4 0 1により算出された推定混合比の例を示す図 である。 図 5 3に示す推定混合比は、 等速で動いているオブジェクトに対応する 前景の動き量 V が 1 1である場合の結果を、 1ラインに対して示すものである c 推定混合比は、 混合領域において、 図 4 7に示すように、 ほぼ直線的に変化し ていることがわかる。
図 4 6に戻り、 混合比決定部 4 0 3は、 領域特定部 1 0 3から供給された、 混 合比 の算出の対象となる画素が、 前景領域、 背景領域、 カバードバックダラ ゥンド領域、 またはアンカバードバックグラウンド領域のいずれかに属するかを 示す領域情報を基に、 混合比 Of を設定する。 混合比決定部 4 0 3は、 対象とな る画素が前景領域に属する場合、 0を混合比 に設定し、 対象となる画素が背 景領域に属する場合、 1を混合比 に設定し、 対象となる画素がカバードバッ クグラウンド領域に属する場合、 推定混合比処理部 4 0 1から供給された推定混 合比を混合比 に設定し、 対象となる画素がアンカバードバックグラウンド領 域に属する場合、 推定混合比処理部 4 0 2から供給された推定混合比を混合比 a に設定する。 混合比決定部 4 0 3は、 領域情報を基に設定した混合比 を出 力する。
図 5 4は、 混合比算出部 1 0 4の他の構成を示すプロック図である。 選択部 4 4 1は、 領域特定部 1 0 3から供給された領域情報を基に、 カバードバックグラ ゥンド領域に属する画素および、 これに対応する前および後のフレームの画素を 推定混合比処理部 4 4 2に供給する。 選択部 4 4 1は、 領域特定部 1 0 3から供 給された領域情報を基に、 アンカパードバックグラウンド領域に属する画素およ び、 これに対応する前および後のフレームの画素を推定混合比処理部 4 4 3に供 給する。
推定混合比処理部 4 4 2は、 選択部 4 4 1から入力された画素値を基に、 式 ( 1 7 ) に示す演算により、 カバードバックグラウンド領域に属する、 注目して いる画素の推定混合比を算出して、 算出した推定混合比を選択部 4 4 4に供給す る。
推定混合比処理部 4 4 3は、 選択部 4 4 1から入力された画素値を基に、 式 ( 1 8 ) に示す演算により、 アンカバードバックグラウンド領域に属する、 注目 している画素の推定混合比を算出して、 算出した推定混合比を選択部 4 4 4に供 給する。 選択部 4 4 4は、 領域特定部 1 0 3から供給された領域情報を基に、 対象とな る画素が前景領域に属する場合、 0である推定混合比を選択して、 混合比 に 設定し、 対象となる画素が背景領域に属する場合、 1である推定混合比を選択し て、 混合比 に設定する。 選択部 4 4 4は、 対象となる画素がカバードバック グラウンド領域に属する場合、 推定混合比処理部 4 4 2から供給された推定混合 比を選択して混合比 に設定し、 対象となる画素がアンカバードバックグラウ ンド領域に属する場合、 推定混合比処理部 4 4 3から供給された推定混合比を選 択して混合比 に設定する。 選択部 4 4 4は、 領域情報を基に選択して設定し た混合比 を出力する。
このように、 図 5 4に示す他の構成を有する混合比算出部 1 0 4は、 画像の含 まれる画素毎に混合比 を算出して、 算出した混合比 を出力することができ る。
図 5 5のフローチャートを参照して、 図 4 6に構成を示す混合比算出部 1 0 4 の混合比 の算出の処理を説明する。 ステップ S 4 0 1において、 混合比算出 部 1 0 4は、 領域特定部 1 0 3から供給された領域情報を取得する。 ステップ S
4 0 2において、 推定混合比処理部 4 0 1は、 カバードバックグラウンド領域に 対応するモデルにより推定混合比の演算の処理を実行し、 算出した推定混合比を 混合比決定部 4 0 3に供給する。 混合比推定の演算の処理の詳細は、 図 5 6のフ ローチャートを参照して、 後述する。 ステップ S 4 0 3において、 推定混合比処理部 4 0 2は、 アンカバードバック グラウンド領域に対応するモデルにより推定混合比の演算の処理を実行し、 算出 した推定混合比を混合比決定部 4 0 3に供給する。
ステップ S 4 0 4において、 混合比算出部 1 0 4は、 フレーム全体について、 混合比 を推定したか否かを判定し、 フレーム全体について、 混合比 を推定 していないと判定された場合、 ステップ S 4 0 2に戻り、 次の画素について混合 比 を推定する処理を実行する。
ステップ S 4 0 4において、 フレーム全体について、 混合比 を推定したと 判定された場合、 ステップ S 4 0 5に進み、 混合比決定部 4 0 3は、 画素が、 前 景領域、 背景領域、 カバードバックグラウンド領域、 またはアンカバードバック グラウンド領域のいずれかに属するかを示す、 領域特定部 1 0 3から供給された 領域情報を基に、 混合比 を設定する。 混合比決定部 4 0 3は、 対象となる画 素が前景領域に属する場合、 0を混合比ひ に設定し、 対象となる画素が背景領 域に属する場合、 1を混合比 に設定し、 対象となる画素がカバードバックグ ラウンド領域に属する場合、 推定混合比処理部 4 0 1から供給された推定混合比 を混合比 に設定し、 対象となる画素がアンカバードバックグラウンド領域に 属する場合、 推定混合比処理部 4 0 2から供給された推定混合比を混合比 aに 設定し、 処理は終了する。
このように、 混合比算出部 1 0 4は、 領域特定部 1 0 3から供給された領域情 報、 および入力画像を基に、 各画素に対応する特徴量である混合比 α を算出す ることができる。
図 5 4に構成を示す混合比算出部 1 0 4の混合比 の算出の処理は、 図 5 5 のフローチャートで説明した処理と同様なので、 その説明は省略する。
次に、 図 5 5のステップ S 4 0 2に対応する、 カバードバックグラウンド領域 に対応するモデルによる混合比推定の処理を図 5 6のフローチャートを参照して 説明する。
ステップ S 4 2 1において、 混合比演算部 4 2 3は、 フレームメモリ 4 2 1か ら、 フレーム #ηの注目画素の画素値 Cを取得する。
ステップ S 4 2 2において、 混合比演算部 4 2 3は、 フレームメモリ 4 2 2か ら、 注目画素に対応する、 フレーム #η-1の画素の画素値 Ρを取得する。
ステップ S 4 2 3において、 混合比演算部 4 2 3は、 入力画像に含まれる注目 画素に対応する、 フレーム #η+1の画素の画素値 Νを取得する。
ステップ S 4 2 4において、 混合比演算部 4 2 3は、 フレーム #ηの注目画素 の画素値 C、 フレーム - 1の画素の画素値 P、 およびフレーム #n+lの画素の画 素値 Nを基に、 推定混合比を演算する。 ステップ S 4 2 5において、 混合比演算部 4 2 3は、 フレーム全体について、 推定混合比を演算する処理を終了したか否かを判定し、 フレーム全体について、 推定混合比を演算する処理を終了していないと判定された場合、 ステップ S 4 2 1に戻り、 次の画素について推定混合比を算出する処理を繰り返す。
ステップ S 4 2 5において、 フレーム全体について、 推定混合比を演算する処 理を終了したと判定された場合、 処理は終了する。
このように、 推定混合比処理部 4 0 1は、 入力画像を基に、 推定混合比を演算 することができる。
図 5 5のステップ S 4 0 3におけるアンカバードバックグラウンド領城に対応 するモデルによる混合比推定の処理は、 アンカバードバックグラウンド領域のモ デルに対応する式を利用した、 図 5 6のフローチャートに示す処理と同様なので、 その説明は省略する。
なお、 図 5 4に示す推定混合比処理部 4 4 2および推定混合比処理部 4 4 3は、 図 5 6に示すフローチヤ一トと同様の処理を実行して推定混合比を演算するので、 その説明は省略する。
また、 背景に対応するオブジェクトが静止しているとして説明したが、 背景領 域に対応する画像が動きを含んでいても上述した混合比 を求める処理を適用 することができる。 例えば、 背景領域に対応する画像が一様に動いているとき、 推定混合比処理部 4 0 1は、 背景の動きに対応して画像全体をシフ トさせ、 背景 に対応するオブジェクトが静止している場合と同様に処理する。 また、 背景領域 に対応する画像が局所毎に異なる背景の動きを含んでいるとき、 推定混合比処理 部 4 0 1は、 混合領域に属する画素に対応する画素として、 背景の動きに対応し た画素を選択して、 上述の処理を実行する。
また、 混合比算出部 1 0 4は、 全ての画素について、 カバードバックグラウン ド領域に対応するモデルによる混合比推定の処理のみを実行して、 算出された推 定混合比を混合比 として出力するようにしてもよレ、。 この場合において、 混 合比 は、 カバードバックグラウンド領域に属する画素について、 背景の成分 の割合を示し、 アンカバードパックグラウンド領域に属する画素について、 前景 の成分の割合を示す。 アンカバードバックグラウンド領域に属する画素について、 このように算出された混合比 α と 1との差分の絶対値を算出して、 算出した絶 対値を混合比 に設定すれば、 信号処理装置は、 アンカバードバックグラウン ド領域に属する画素について、 背景の成分の割合を示す混合比 を求めること ができる。
なお、 同様に、 混合比算出部 1 0 4は、 全ての画素について、 アンカバードバ ックグラウンド領域に対応するモデルによる混合比推定の処理のみを実行して、 算出された推定混合比を混合比 として出力するようにしてもよい。
次に、 混合比ひが直線的に変化する性質を利用して混合比 αを算出する混合 比算出部 1 0 4について説明する。 '
上述したように、 式 (7 ) および式 (8 ) は、 それぞれ 2つの変数を含むので、 そのままでは混合比 を求めることができない。
そこで、 シャツタ時間内において、 前景に対応するオブジェクトが等速で動く ことによる、 画素の位置の変化に対応して、 混合比 が直線的に変化する性質 を利用して、 空間方向に、 混合比 と前景の成分の和 f とを近似した式を立て る。 混合領域に属する画素の画素値および背景領域に属する画素の画素値の組の 複数を利用して、 混合比 と前景の成分の和 f とを近似した式を解く。
混合比 の変化を、 直線として近似すると、 混合比ひは、 式 (1 9 ) で表さ れる。
Qf =il+P ( 1 9 )
式 (1 9 ) において、 iは、 注目している画素の位置を 0とした空間方向のイン デッタスである。 1は、 混合比 aの直線の傾きである。 pは、 混合比 の直線 の切片である共に、 注目している画素の混合比 である。 式 (1 9 ) において、 インデックス iは、 既知であるが、 傾き 1および切片 pは、 未知である。
インデックス i、 傾き および切片 pの関係を図 5 7に示す。 図 5 7におい て、 白丸は、 注目画素を示し、 黒丸は、 近傍画素を示す。 混合比ひを式 (1 9) のように近似することにより、 複数の画素に対して複 数の異なる混合比 は、 2つの変数で表現される。 図 5 7に示す例において、 5つの画素に対する 5つの混合比は、 2つの変数である傾き 1および切片 pに より表現される。
図 5 8に示す平面で混合比 α を近似すると、 画像の水平方向および垂直方向 の 2つの方向に対応する動き V を考慮したとき、 式 (1 9) を平面に拡張して、 混合比 は、 式 (2 0) で表される。 図 5 8において、 白丸は、 注目画素を示 す。
Qf^jm+kq+p (20)
式 (2 0) において、 jは、 注目している画素の位置を 0とした水平方向のイン デッタスであり、 kは、 垂直方向のインデックスである。 mは、 混合比 の面 の水平方向の傾きであり、 q は、 混合比 の面の垂直方向の傾きである。 p は、 混合比 の面の切片である。
例えば、 図 48に示すフレーム #nにおいて、 C05乃至 C07について、 それぞ れ、 式 (2 1) 乃至式 (2 3) が成立する。
C05= 05-B05/v+f05 (2 1)
C06=a06-B06/v+f06 (2 2)
Figure imgf000076_0001
前景の成分が近傍で一致する、 すなわち、 F01乃至 F03が等しいとして、 F01 乃至 F03を Fcに置き換えると式 (24) が成立する。
f (χ) = (ΐ-α (x)) · Fc (24)
式 (24) において、 xは、 空間方向の位置を表す。
01 ( X ) を式 (2 0) で置き換えると、 式 (24) は、 式 (2 5) として表す ことができる。
f (x) = (l-(jm+kq+p)) · Fc
=j · (- m · Fc) +k · (- q · Fc) +((l-p) ■ Fc)
=js+kt+u (2 5) 式 (2 5 ) において、 (- m . Fc) 、 (― q · Fc) 、 および(l_p) · Fcは、 式
( 2 6) 乃至式 (2 8 ) に示すように置き換えられている。
s= - m · Fc 6 )
t=-q · Fc ( 2 7)
u=(l-p) ■ Fc ( 2 8)
式 (2 5 ) において、 jは、 注目している画素の位置を 0とした水平方向のィ ンデッタスであり、 kは、 垂直方向のインデックスである。
このように、 前景に対応するォブジェク トがシャツタ時間内において等速に移 動し、 前景に対応する成分が近傍において一定であるという仮定が成立するので、 前景の成分の和は、 式 (2 5) で近似される。
なお、 混合比 αを直線で近似する場合、 前景の成分の和は、 式 (2 9) で表 すことができる。
f (x)=is+u ( 2 9)
式 (9) の混合比 おょぴ前景成分の和を、 式 (2 0) および式 (2 5) を 利用して置き換えると、 画素値 Mは、 式 (3 0) で表される。
M=(jm+kq+p) · B+js+kt+u
=j"B · m+kB · q+B , p+j ■ s+k · t+u ( 3 0)
式 (3 0) において、 未知の変数は、 混合比 の面の水平方向の傾き m、 混 合比 の面の垂直方向の傾き q、 混合比 の面の切片 p、 s、 t、 および uの 6 つである。
注目している画素の近傍の画素に対応させて、 式 (3 0) に示す正規方程式に- 画素値 Mまたは画素値 Bを設定し、 画素値 Mまたは画素値 Bが設定された複数 の正規方程式を最小自乗法で解いて、 混合比 を算出する。
例えば、 注目している画素の水平方向のインデックス jを 0とし、 垂直方向 のィンデッタス k を 0とし、 注目している画素の近傍の 3 X 3の画素について. 式 (3 0) に示す正規方程式に画素値 Mまたは画素値 Bを設定すると、 式 (3 1 ) 乃至式 (3 9) を得る。 M—
Figure imgf000078_0001
· p+ 1) · s+(— 1) - +u ( 3 1 ) 0i_1=(0) · B0>— . m+(-l) · Bo,.! . q+Bo,.! . p+(0) . s+(-l) - t+u ( 3 2)
M^.^i+l) ■ Β+1ι_! · ra+(-l) · B+1,— i · q+B+ i ■ p+(+l) · s+ (- 1) - t+u ( 3 3) M.li0=(-1) ■ B_li0 · m+(0) · B.li0 · q+B_li0 · p+ (- 1) · s+(0) - t+u ( 3 4) M0,0=(0) ■ B0i0 ■ m+(0) ■ B0,0 · q+B0,0 - p+ (0) - s+(0) - t+u ( 3 5)
M+li0=(+l) · B+1,0■ m+(0) ■ B+1,0 · q+B+li0 · p+(+l) · s+ (0) - t+u ( 3 6)
Μ_1ι+1=(-1) · B_li+1 · m+ (+1) · B.1>+1 · q+B.li+1 · p+ 1) ■ s+(+l) - t+u ( 3 7) M0i+1=(0) · B0(+1 . ra+(+l) . B0+1 · q+B0, · p+(0) . s+(+l) - t+u ( 3 8)
M+1,+1=(+l) · B+1,+1 · m+(+l) ■ B+1>+1 · q+B+1>+1 ■ p+(+l) · s+(+l) - t+u ( 3 9 ) 注目している画素の水平方向のインデックス jが 0であり、 垂直方向のイン デックス kが 0であるので、 注目している画素の混合比 は、 式 (2 0 ) より j=0および k=0のときの値、 すなわち、 切片 pに等しい。
従って、 式 (3 1 ) 乃至式 (3 9) の 9つの式を基に、 最小自乗法により、 水 平方向の傾き m、 垂直方向の傾き q、 切片 p s t、 および uのそれぞれの値を 算出し、 切片 pを混合比 として出力すればよい。
次に、 最小自乗法を適用して混合比 を算出するより具体的な手順を説明す る。
ィンデックス i およびインデックス k を 1つのィンデックス Xで表現すると インデックス i、 インデックス およびインデックス Xの関係は、 式 (4 0) で表される。
X二(j+1) · 3+(k+l) (4 0)
水平方向の傾き m、 垂直方向の傾き q、 切片 p s t、 および uをそれぞれ変 数 w0 wl w2, w3 w4、 およぴ W5と表現し、 jB, kB B, j k、 および 1をそれぞれ a0 al, a2, a3, a4、 および a5と表現する。 誤差 exを考慮すると、 式 (3 1 ) 乃 至式 (3 9 ) は、 式 (4 1 ) に書き換えることができる。
Mx =∑avWy +€x (41)
V = 0 式 (4 1) において、 xは、 0乃至 8の整数のいずれかの値である。
式 (4 1) から、 式 (4 2) を導くことができる。
Figure imgf000079_0001
ここで、 最小自乗法を適用するため、 誤差の自乗和 Eを式 (4 3) に示すよ うに定義する。
S
E=∑ex2 (43)
x = 0
誤差が最小になるためには、 誤差の自乗和 Eに対する、 変数 の偏微分が 0 になればよい。 ここで、 Vは、 0乃至 5の整数のいずれかの値である。 従って、 式 (44) を満たすように wyを求める。
dex
x = o
S
= 2'∑ex- = Q (44)
x = o
式 (44) に式 (4 2) を代入すると、 式 (4 5) を得る。
Figure imgf000079_0002
式 (4 5) の vに 0乃至 5の整数のいずれか 1つを代入して得られる 6つの 式に、 例えば、 掃き出し法 (Gauss- Jordanの消去法) などを適用して、 wyを算 出する。 上述したように、 w0は水平方向の傾き raであり、 は垂直方向の傾き qであり、 w2は切片 pであり、 w3は sであり、 w4は tであり、 w5は uである, 以上のように、 画素値 Mおよび画素値 Bを設定した式に、 最小自乗法を適用 することにより、 水平方向の傾き m、 垂直方向の傾き q、 切片 p、 s、 t、 および uを求めることができる。
式 (3 1) 乃至式 (3 9) に対応する説明において、 混合領域に含まれる画素 の画素値を Mとし、 背景領域に含まれる画素の画素値を Bとして説明したが、 注目している画素が、 カバードバックグラウンド領域に含まれる場合、 またはァ ンカバードバックグラウンド領域に含まれる場合のそれぞれに対して、 正規方程 式を立てる必要がある。
例えば、 図 4 8に示す、 フレーム #nのカバードバックグラウンド領域に含ま れる画素の混合比 を求める場合、 フレーム #nの画素の C04乃至 C08、 および フレーム #n- 1の画素の画素値 P04乃至 P08が、 正規方程式に設定される。
図 4 9に示す、 フレーム #nのアンカバードバックグラウンド領域に含まれる 画素の混合比 を求める場合、 フレ^ム #nの画素の C28乃至 C32、 およびフレ ーム #η+1の画素の画素値 Ν28乃至 Ν32力 正規方程式に設定される。
また、 例えば、 図 5 9に示す、 カバードバックグラウンド領域に含まれる画素 の混合比 を算出するとき、 以下の式 (4 6) 乃至式 (54) が立てられる。 図 5 9において、 白丸は、 背景と見なす画素を示し、 黒丸は、 混合領域の画素と 見なす画素を示す。 混合比 を算出する画素の画素値は、 Mc5である。
Mcl=(-1) ■ Bel · ra+(- 1) ■ Bel · q+Bcl · p+(-l) · s+ (- 1) . t+u (4 6)
Mc2=(0) - Bc2 - m+(-l) ■ Bc2 ■ q+Bc2 ■ p+(0) · s+ (- 1) ■ t+u (4 7) Mc3=(+1) - Bc3 ■ ra+(_l) · Bc3 - q+Bc3 , p+(+l) - s+(-l) - t+u (4 8)
Mc4= (-1) - Bc4■ m+(0) - Bc4 · q+Bc4 - p+(-l) - s+(0) - t+u (4 9)
Mc5= (0) - Bc5 · m+ (0) ■ Bc5 , q+Bc5 · p+ (0) · s+ (0) - t+u (5 0) Mc6= (+1) · Bc6 - m+(0) - Bc6 - q+Bc6 - p+(+l) - s+(0) - t+u (5 1) Mc7= (-1) - Bc7 · m+ (+1) · Bc7 · q+Bc7 - p+ (-1) - s+ (+1) - t+u (5 2) Mc8=(0) - Bc8 · m+(+l) · Bc8 · q+Bc8 - p+ (0) - s+(+l) - t+u (5 3) Mc9=(+1) ■ Bc9 · m+(+l) · Bc9 · q+Bc9 - p+(+l) · s+(+l) - t+u (54)
フレーム #nのカバードバックグラウンド領域に含まれる画素の混合比 を算 出するとき、 式 (46) 乃至式 (54) において、 フレーム #nの画素に対応す る、 フレーム #n- 1の画素の背景領域の画素の画素値 Bel乃至 Bc9が使用される, 図 5 9に示す、 アンカバードバックグラウンド領域に含まれる画素の混合比 を算出するとき、 以下の式 (5 5) 乃至式 (6 3) が立てられる。 混合比 を算出する画素の画素値は、 Mu5である。 Mul= (-1) - Bui - m+ (-1) - Bui - q+Bul - p+ (-1) - s+ (-1) - t+u (5 5) Mu2=(0) · Bu2 · ra+ (- 1) · Bu2 - q+Bu2 - p+(0) · s+ (- 1) - t+u (5 6) u3=(+1) ■ Bu3■ m+ (- 1) - Bu3 · q+Bu3 · p+(+l) · s+ (- 1) - t+u (5 7)
Mu4=(-1) - Bu4 - m+(0) - Bu4 - q+Bu4 - p+ (- 1) - s+ (O) - t+u (5 8) u5=(0) ■ Bu5 · m+(0) · Bu5 - q+Bu5 - p+ (0) - s+(0) - t+u (5 9) Mu6=(+1) - Bu6 · m+(0) · Bu6■ q+Bu6 · p+(+l) - s+(0) - t+u (6 0)
Mu7=(-1) - Bu7 - m+(+l) · Bu7 - q+Bu7 · p+(- 1) - s+(+l) - t+u (6 1) Mu8=(0) · Bu8 - m+(+l) - Bu8 · q+Bu8 - p+ (0) - s+(+l) - t+u (6 2)
Mu9=(+1) · Bu9-- m+ (+1) · Bu9 · q+Bu9 · p+(+l) ■ s+(+l) - t+u (6 3) フレーム #nのアンカバードバックグラウンド領域に含まれる画素の混合比 を算出するとき、 式 (5 5) 乃至式 (6 3) において、 フレーム #ηの画素に対 応する、 フレーム #η+1の画素の背景領域の画素の画素値 Bui乃至 Bu9が使用さ れる。
図 6 0は、 推定混合比処理部 40 1の構成を示すプロック図である。 推定混合 比処理部 4 0 1に入力された画像は、 遅延回路 5 0 1および足し込み部 5 0 2に 供給される。
遅延回路 5 0 1は、 入力画像を 1フレーム遅延させ、 足し込み部 5 0 2に供給 する。 足し込み部 5 0 2に、 入力画像としてフレーム #n が入力されているとき 遅延回路 5 0 1は、 フレーム - 1を足し込み部 5 0 2に供給する。
足し込み部 5 0 2は、 混合比 aを算出する画素の近傍の画素の画素値、 およ びフレーム #n- 1の画素値を、 正規方程式に設定する。 例えば、 足し込み部 5 0 2は、 式 (4 6) 乃至式 (54) に基づいて、 正規方程式に画素値 Mcl乃至 Mc9 および画素値 Bel乃至 Bc9を設定する。 足し込み部 5 0 2は、 画素値が設定さ れた正規方程式を演算部 5 0 3に供給する。
演算部 5 0 3は、 足し込み部 5 0 2から供給された正規方程式を掃き出し法な どにより解いて推定混合比を求め、 求められた推定混合比を出力する。
このように、 推定混合比処理部 40 1は、 入力画像を基に、 推定混合比を算出 して、 混合比決定部 4 0 3に供給することができる。
なお、 推定混合比処理部 4 0 2は、 推定混合比処理部 4 0 1と同様の構成を有 するので、 その説明は省略する。
図 6 1は、 推定混合比処理部 4 0 1により算出された推定混合比の例を示す図 である。 図 6 1に示す推定混合比は、 等速で動いているォブジ-タトに対応する 前景の動き Vが 1 1であり、 7 X 7画素のブロックを単位として方程式を生成 して算出された結果を、 1ラインに対して示すものである。
推定混合比は、 混合領域において、 図 6 0に示すように、 ほぼ直線的に変化し ていることがわかる。
次に、 図 6 0に構成を示す推定混合比処理部 4 0 1による、 カバードバックグ ラウンド領域に対応するモデルによる混合比推定の処理を図 6 2のフローチヤ一 トを参照して説明する。
ステップ S 5 2 1において、 足し込み部 5 0 2は、 入力された画像に含まれる 画素値、 および遅延回路 5 0 1から供給される画像に含まれる画素値を、 カバー ドバックグラウンド領域のモデルに対応する正規方程式に設定する。
ステップ S 5 2 2において、 推定混合比処理部 4 0 1は、 対象となる画素につ いての設定が終了したか否かを判定し、 対象となる画素についての設定が終了し ていないと判定された場合、 ステップ S 5 2 1に戻り、 正規方程式への画素値の 設定の処理を繰り返す。
ステップ S 5 2 2において、 対象となる画素についての画素値の設定が終了し たと判定された場合、 ステップ S 5 2 3に進み、 演算部 5 0 3は、 画素値が設定 された正規方程式を基に、 推定混合比を演算して、 求められた推定混合比を出力 する。
このように、 図 6 0に構成を示す推定混合比処理部 4 0 1は、 入力画像を基に 推定混合比を演算することができる。
アンカバードバックグラウンド領域に対応するモデルによる混合比推定の処理 は、 アンカバードバックグラウンド領域のモデルに対応する正規方程式を利用し た、 図 6 2のフローチャートに示す処理と同様なので.、 その説明は省略する。
なお、 背景に対応するオブジェクトが静止しているとして説明したが、 背景領 域に対応する画像が動きを含んでいても上述した混合比を求める処理を適用する ことができる。 例えば、 背景領域に対応する画像が一様に動いているとき、 推定 混合比処理部 4 0 1は、 この動きに対応して画像全体をシフトさせ、 背景に対応 するオブジェク トが静止している場合と同様に処理する。 また、 背景領域に対応 する画像が局所毎に異なる動きを含んでいるとき、 推定混合比処理部 4 0 1は、 混合領域に属する画素に対応する画素として、 動きに対応した画素を選択して、 上述の処理を実行する。
このように、 混合比算出部 1 0 2は、 領域特定部 1 0 1から供給された領域情 報、 および入力画像を基に、 各画素に対応する特徴量である混合比 を算出す ることができる。
混合比 を利用することにより、 動いているオブジェクトに対応する画像に 含まれる動きボケの情報を残したままで、 画素値に含まれる前景の成分と背景の 成分とを分離することが可能になる。
また、 混合比 に基づいて画像を合成すれば、 実世界を実際に撮影し直した ような動いているオブジェクトのスピードに合わせた正しい動きボケを含む画像 を作ることが可能になる。
次に、 前景背景分離部 1 0 5について説明する。 図 6 3は、 前景背景分離部 1 0 5の構成の一例を示すプロック図である。 前景背景分離部 1 0 5に供給された 入力画像は、 分離部 6 0 1、 スィッチ 6 0 2、 およびスィッチ 6 0 4に供給され る。 カバードバックグラウンド領域を示す情報、 およびアンカバードバックダラ ゥンド領域を示す、 領域特定部 1 0 3から供給された領域情報は、 分離部 6 0 1 に供給される。 前景領域を示す領域情報は、 スィッチ 6 0 2に供給される。 背景 領域を示す領域情報は、 スィツチ 6 0 4に供給される。
混合比算出部 1 0 4から供給された混合比 は、 分離部 6 0 1に供給される, 分離部 6 0 1は、 カバードバックグラウンド領域を示す領域情報、 アンカパー ドバックグラウンド領域を示す領域情報、 および混合比 を基に、 入力画像か ら前景の成分を分離して、 分離した前景の成分を合成部 6 0 3に供給するととも に、 入力画像から背景の成分を分離して、 分離した背景の成分を合成部 6 0 5に 供給する。
スィツチ 6 0 2は、 前景領域を示す領域情報を基に、 前景に対応する画素が入 力されたとき、 閉じられ、 入力画像に含まれる前景に対応する画素のみを合成部 6 0 3に供給する。
スィッチ 6 0 4は、 背景領域を示す領域情報を基に、 背景に対応する画素が入 力されたとき、 閉じられ、 入力画像に含まれる背景に対応する画素のみを合成部 6 0 5に供給する。
合成部 6 0 3は、 分離部 6 0 1から供給された前景に対応する成分、 スィッチ 6 0 2から供給された前景に対応する画素を基に、 前景成分画像を合成し、 合成 した前景成分画像を出力する。 前景領域と混合領域とは重複しないので、 合成部 6 0 3は、 例えば、 前景に対応する成分と、 前景に対応する画素とに論理和の演 算を適用して、 前景成分画像を合成する。
合成部 6 0 3は、 前景成分画像の合成の処理の最初に実行される初期化の処理 において、 内蔵しているフレームメモリに全ての画素値が 0である画像を格納し- 前景成分画像の合成の処理において、 前景成分画像を格納 (上書き) する。 従つ て、 合成部 6 0 3が出力する前景成分画像の内、 背景領域に対応する画素には、 画素値として 0が格納されている。
合成部 6 0 5は、 分離部 6 0 1から供給された背景に対応する成分、 スィッチ 6 0 4から供給された背景に対応する画素を基に、 背景成分画像を合成して、 合 成した背景成分画像を出力する。 背景領域と混合領域とは重複しないので、 合成 部 6 0 5は、 例えば、 背景に対応する成分と、 背景に対応する画素とに論理和の 演算を適用して、 背景成分画像を合成する。
合成部 6 0 5は、 背景成分画像の合成の処理の最初に実行される初期化の処理 において、 内蔵しているフレームメモリに全ての画素値が 0である画像を格納し- 背景成分画像の合成の処理において、 背景成分画像を格納 (上書き) する。 従つ て、 合成部 6 0 5が出力する背景成分画像の内、 前景領域に対応する画素には、 画素値として 0が格納されている。
図 6 4 Aは、 前景背景分離部 1 0 5に入力される入力画像、 並びに前景背景分 離部 1 0 5から出力される前景成分画像および背景成分画像を示す図である。 図 6 4 Bは、 前景背景分離部 1 0 5に入力される入力画像、 並びに前景背景分離部 1 0 5から出力される前景成分画像および背景成分画像のモデルを示す図である, 図 6 4 Aは、 表示される画像の模式図であり、 図 6 4 Bは、 図 6 4 Aに対応す る前景領域に属する画素、 背景領域に属する画素、 および混合領域に属する画素 を含む 1ラインの画素を時間方向に展開したモデル図を示す。
図 6 4 Aおよび図 6 4 Bに示すように、 前景背景分離部 1 0 5から出力される 背景成分画像は、 背景領域に属する画素、 および混合領域の画素に含まれる背景 の成分から構成される。
図 6 4 Aおよび図 6 4 Bに示すように、 前景背景分離部 1 0 5から出力される 前景成分画像は、 前景領域に属する画素、 および混合領域の画素に含まれる前景 の成分から構成される。
混合領域の画素の画素値は、 前景背景分離部 1 0 5により、 背景の成分と、 前 景の成分とに分離される。 分離された背景の成分は、 背景領域に属する画素と共 に、 背景成分画像を構成する。 分離された前景の成分は、 前景領域に属する画素 と共に、 前景成分画像を構成する。
このように、 前景成分画像は、 背景領域に対応する画素の画素値が 0とされ、 前景領域に対応する画素および混合領域に対応する画素に意味のある画素値が設 定される。 同様に、 背景成分画像は、 前景領域に対応する画素の画素値が 0とさ れ、 背景領域に対応する画素および混合領域に対応する画素に意味のある画素値 が設定される。
次に、 分離部 6 0 1が実行する、 混合領域に属する画素から前景の成分、 およ び背景の成分を分離する処理について説明する。 図 6 5は、 図中の左から右に移動するオブジェクトに対応する前景を含む、 2 つのフレームの前景の成分および背景の成分を示す画像のモデルである。 図 6 5 に示す画像のモデルにおいて、 前景の動き量 Vは 4であり、 仮想分割数は、 4 とされている。
フレーム toにおいて、 最も左の画素、 および左から 1 4番目乃至 1 8番目の 画素は、 背景の成分のみから成り、 背景領域に属する。 フレーム #nにおいて、 左から 2番目乃至 4番目の画素は、 背景の成分および前景の成分を含み、 アンカ バードバックグラウンド領域に属する。 フレーム ί|ηにおいて、 左から 1 1番目 乃至 1 3番目の画素は、 背景の成分および前景の成分を含み、 カバードバックグ ラウンド領域に属する。 フレーム toにおいて、 左から 5番目乃至 1 0番目の画 素は、 前景の成分のみから成り、 前景領域に属する。
フレーム #n+lにおいて、 左から 1番目乃至 5番目の画素、 および左から 1 8 番目の画素は、 背景の成分のみから成り、 背景領域に属する。 フレーム #n+lに おいて、 左から 6番目乃至 8番目の画素は、 背景の成分おょぴ前景の成分を含み、 アンカバードバックグラウンド領域に属する。 フレーム #n+lにおいて、 左から 1 5番目乃至 1 7番目の画素は、 背景の成分および前景の成分を含み、 カバード バックグラウンド領域に属する。 フレーム #n+lにおいて、 左から 9番目乃至 1 4番目の画素は、 前景の成分のみから成り、 前景領域に属する。
図 6 6は、 カバードパックグラウンド領域に属する画素から前景の成分を分離 する処理を説明する図である。 図 6 6において、 1乃至 Of 1 8は、 フレーム #nにおける画素のぞれぞれに対応する混合比である。 図 6 6において、 左から 1 5番目乃至 1 7番目の画素は、 カバードバックグラウンド領域に属する。
フレーム #n の左から 1 5番目の画素の画素値 C15 は、 式 (6 4 ) で表される c C15=B15/v+F09/v+F08/v+F07/v
=ひ 15 ' B15+F09/v+F08/v+F07/v
= Of 15 - P15+F09/v+F08/v+F07/v ( 6 4 )
ここで、 15 は、 フレーム #n の左から 1 5番目の画素の混合比である。 P 15 は、 フレーム #n_lの左から 1 5番目の画素の画素値である。
式 (6 4) を基に、 フレーム #nの左から 1 5番目の画素の前景の成分の和 fl5は、 式 (6 5) で表される。
fl5=F09/v+F08/v+F07/v
=C15- 15·Ρ15 (6 5)
同様に、 フレーム #ηの左から 1 6番目の画素の前景の成分の和 f 16は、 式 (6 6) で表され、 フレーム #nの左から 1 7番目の画素の前景の成分の和 fl7 は、 式 (6 7) で表される。
fl6=C16-Qf 16-P16 (6 6)
fl7=C17 - 17·Ρ17 (6 7)
このように、 カバードバックグラウンド領域に属する画素の画素値 Cに含ま れる前景の成分 fcは、 式 (6 8) で計算される。
fc=C- ·Ρ (6 8)
Ρは、 1つ前のフ I ^一ムの、 対応する画素の画素 である。
図 6 7は、 アンカバードバックグラウンド領域に属する画素から前景の成分を 分離する処理を説明する図である。 図 6 7において、 1乃至 1 8は、 フレ ーム #ηにおける画素のそれぞれに対応する混合比である。 図 6 7において、 左 から 2番目乃至 4番目の画素は、 アンカバードバックグラウンド領域に属する。 フレーム #ηの左から 2番目の画素の画素値 C02は、 式 (6 9) で表される。
C02=B02/v+B02/v+B02/v+F01/v
= 2-B02+F01/v
= 2-N02+F01/v (6 9)
ここで、 2は、 フレーム toの左から 2番目の画素の混合比である。 N02は、 フ レーム #n+lの左から 2番目の画素の画素値である。
式 (6 9) を基に、 フレーム #nの左から 2番目の画素の前景の成分の和 f 02 は、 式 (70) で表される。
f02=F01/v =C02-Qf2-N02 (7 0) 同様に、 フレーム #nの左から 3番目の画 の前景の成分の和 f03は、 式 (7 1) で表され、 フレーム #nの左から 4番目の画素の前景の成分の和 f 04は、 式 (7 2) で表される。
f03=C03- 3-N03 (7 1)
f04=C04-Qi4-N04 (7 2)
このように、 アンカバードバックグラウンド領域に属する画素の画素値 Cに 含まれる前景の成分 fuは、 式 (7 3) で計算される。
fu=C-ひ ·Ν (7 3)
Νは、 1つ後のフレームの、 対応する画素の画素値である。
このように、 分離部 6 0 1は、 領域情報に含まれる、 カバードバックグラウン ド領域を示す情報、 およぴァンカバードバックグラウンド領域を示す情報、 並び に画素毎の混合比 を基に、 混合領域に属する画素から前景の成分、 および背 景の成分を分離することができる。
図 6 8は、 以上で説明した処理を実行する分離部 6 0 1の構成の一例を示すブ ロック図である。 分離部 6 0 1に入力された画像は、 フレームメモリ 6 2 1に供 給され、 混合比算出部 1 04から供給されたカバードバックグラウンド領域およ びァンカバードバックダラゥンド領域を示す領域情報、 並びに混合比ひは、 分 離処理ブロック 6 2 2に入力される。
フレームメモリ 6 2 1は、 入力された画像をフレーム単位で記憶する。 フレー ムメモリ 6 2 1は、 処理の対象がフレーム #ηであるとき、 フレーム #ηの 1つ前 のフレームであるフレーム #η- 1、 フレーム #η、 およびフレーム #ηの 1つ後のフ レームであるフレーム #η+1を記憶する。
フレームメモリ 6 2 1は、 フレーム fci- 1、 フレーム 、 およびフレーム #n+l の対応する画素を分離処理プロック 6 2 2に供給する。
分離処理ブロック 6 2 2は、 カバードパックグラウンド領域およびアンカバー ドバックグラウンド領域を示す領域情報、 並びに混合比 を基に、 フレームメ モリ 6 2 1から供給されたフレーム #n - 1、 フレ ム #n、 およびフレーム #n+lの 対応する画素の画素値に図 6 6およぴ図 6 7を参照して説明した演算を適用して. フレーム の混合領域に属する画素から前景の成分および背景の成分を分離し て、 フレームメモリ 6 2 3に供給する。
分離処理プロック 6 2 2は、 ァンカバード領域処理部 6 3 1、 カバード領域処 理部 6 3 2、 合成部 6 3 3、 および合成部 6 3 4で構成されている。
アンカバード領域処理部 6 3 1の乗算器 6 4 1は、 混合比ひ を、 フレームメ モリ 6 2 1から供給されたフレーム #n+lの画素の画素値に乗じて、 スィツチ 6 4 2に出力する。 スィッチ 6 4 2は、 フレームメモリ 6 2 1から供給されたフレ ーム #nの画素 (フレーム #n+lの画素に対応する) がアンカバードバックグラウ ンド領域であるとき、 閉じられ、 乗算器 6 4 1から供給された混合比 を乗じ た画素値を演算器 6 4 3および合成部 6 3 4に供給する。 スィッチ 6 4 2から出 力されるフレーム #n+lの画素の画素値に混合比 を乗じた値は、 フレーム #η の対応する画素の画素値の背景の成分に等しい。
演算器 6 4 3は、 フレームメモリ 6 2 1から供給されたフレーム #nの画素の 画素値から、 スィッチ 6 4 2から供給された背景の成分を減じて、 前景の成分を 求める。 演算器 6 4 3は、 アンカバードバックグラウンド領域に属する、 フレー ム thの画素の前景の成分を合成部 6 3 3に供給する。
カバード領域処理部 6 3 2の乗算器 6 5 1は、 混合比 を、 フレームメモリ 6 2 1から供給されたフ ^一ム - 1の画素の画素値に乗じて、 スィッチ 6 5 2 に出力する。 スィッチ 6 5 2は、 フレームメモリ 6 2 1から供給されたフレーム #nの画素 (フレーム #n-lの画素に対応する) がカバードバックグラウンド領域 であるとき、 閉じられ、 乗算器 6 5 1から供給された混合比 を乗じた画素値 を演算器 6 5 3および合成部 6 3 4に供給する。 スィッチ 6 5 2から出力される フレーム #n- 1の画素の画素値に混合比 を乗じた値は、 フレーム #nの対応す る画素の画素値の背景の成分に等しい。
演算器 6 5 3は、 フレームメモリ 6 2 1から供給されたフレーム #nの画素の 画素値から、 スィッチ 6 5 2から供給された背景の成分を減じて、 前景の成分を 求める。 演算器 6 5 3は、 カバードバックグラウンド領域に属する、 フレーム #nの画素の前景の成分を合成部 6 3 3に供給する。
合成部 6 3 3は、 フレーム^の、 演算器 6 4 3から供給された、 アンカバ^" ドバックグラウンド領域に属する画素の前景の成分、 および演算器 6 5 3から供 給された、 カバードバックグラウンド領域に属する画素の前景の成分を合成して. フレームメモリ 6 2 3に供給する。
合成部 6 3 4は、 フレームでの、 スィッチ 6 4 2から供給された、 アンカバ ードバックグラウンド領域に属する画素の背景の成分、 およびスィッチ 6 5 2力 ら供給された、 カバードバックグラウンド領域に属する画素の背景の成分を合成 して、 フレームメモリ 6 2 3に供給する。
フレームメモリ 6 2 3は、 分離処理ブロック 6 2 2から供給された、 フレーム #nの混合領域の画素の前景の成分と、 背景の成分とをそれぞれに記憶する。
フレームメモリ 6 2 3は、 記憶しているフレーム #nの混合領域の画素の前景 の成分、 および記憶しているフレーム #nの混合領域の画素の背景の成分を出力 する。
特徴量である混合比 を利用することにより、 画素値に含まれる前景の成分 と背景の成分とを完全に分離することが可能になる。
合成部 6 0 3は、 分離部 6 0 1から出力された、 フレーム #nの混合領域の画 素の前景の成分と、 前景領域に属する画素とを合成して前景成分画像を生成する ( 合成部 6 0 5は、 分離部 6 0 1から出力された、 フレーム #nの混合領域の画素 の背景の成分と、 背景領域に属する画素とを合成して背景成分画像を生成する。 図 6 9 Aは、 図 6 5のフレーム #nに対応する、 前景成分画像の例を示す。 最 も左の画素、 および左から 1 4番目の画素は、 前景と背景が分離される前におい て、 背景の成分のみから成っていたので、 画素値が 0とされる。
左から 2番目乃至 4番目の画素は、 前景と背景とが分離される前において、 ァ ンカバードバックグラウンド領域に属し、 背景の成分が 0とされ、 前景の成分が そのまま残されている。 左から 1 1番目乃至 1 3番目の画素は、 前景と背景とが 分離される前において、 カバードバックグラウンド領域に属し、 背景の成分が 0 とされ、 前景の成分がそのまま残されている。 左から 5番目乃至 1 0番目の画素 は、 前景の成分のみから成るので、 そのまま残される。
図 6 9 Bは、 図 6 5のフレーム ίίηに対応する、 背景成分画像の例を示す。 最 も左の画素、 および左から 1 4番目の画素は、 前景と背景とが分離される前にお いて、 背景の成分のみから成っていたので、 そのまま残される。
左から 2番目乃至 4番目の画素は、 前景と背景とが分離される前において、 ァ ンカバードバックグラウンド領域に属し、 前景の成分が 0とされ、 背景の成分が そのまま残されている。 左から 1 1番目乃至 1 3番目の画素は、 前景と背景とが 分離される前において、 カバードバックグラウンド領域に属し、 前景の成分が 0 とされ、 背景の成分がそのまま残されている。 左から 5番目乃至 1 0番目の画素 は、 前景と背景とが分離される前において、 前景の成分のみから成っていたので. 画素値が 0とされる。
次に、 図 7 0に示すフローチャートを参照して、 前景背景分離部 1 0 5による 前景と背景との分離の処理を説明する。 ステップ S 6 0 1において、 分離部 6 0 1のフレームメモリ 6 2 1は、 入力画像を取得し、 前景と背景との分離の対象と なるフレーム #ηを、 その前のフレーム #η 1およびその後のフレーム #η+1と共に 記憶する。
ステップ S 6 0 2において、 分離部 6 0 1の分離処理ブロック 6 2 2は、 混合 比算出部 1 0 4から供給された領域情報を取得する。 ステップ S 6 0 3において、 分離部 6 0 1の分離処理プロック 6 2 2は、 混合比算出部 1 0 4から供給された 混合比 を取得する。
ステップ S 6 0 4において、 アンカバード領域処理部 6 3 1は、 領域情報およ び混合比 を基に、 フレームメモリ 6 2 1から供給された、 アンカバードバッ クグラウンド領域に属する画素の画素値から、 背景の成分を抽出する。
ステップ S 6 0 5において、 アンカパード領域処理部 6 3 1は、 領域情報およ ぴ混合比 を基に、 フレームメモリ 6 2 1から供給された、 アンカバードバッ クグラウンド領域に属する画素の画素値から、 前景の成分を抽出する。
ステップ S 6 0 6において、 カバード領域処理部 6 3 2は、 領域情報および混 合比 を基に、 フレームメモリ 6 2 1から供給された、 カバードバックグラウ ンド領域に属する画素の画素値から、 背景の成分を抽出する。
ステップ S 6 0 7において、 カバード領域処理部 6 3 2は、 領域情報および混 合比 を基に、 フレームメモリ 6 2 1から供給された、 カバードバックグラウ ンド領域に属する画素の画素値から、 前景の成分を抽出する。
ステップ S 6 0 8において、 合成部 6 3 3は、 ステップ S 6 0 5の処理で抽出 されたアンカバードバックグラウンド領域に属する画素の前景の成分と、 ステツ プ S 6 0 7の処理で抽出されたカバードバックグラウンド領域に属する画素の前 景の成分とを合成する。 合成された前景の成分は、 合成部 6 0 3に供給される。 更に、 合成部 6 0 3は、 スィッチ 6 0 2を介して供給された前景領域に属する画 素と、 分離部 6 0 1から供給された前景の成分とを合成して、 前景成分画像を生 成する。
ステップ S 6 0 9において、 合成部 6 3 4は、 ステップ S 6 0 4の処理で抽出 されたアンカバードバックグラウンド領域に属する画素の背景の成分と、 ステツ プ S 6 0 6の処理で抽出されたカバードバックグラウンド領域に属する画素の背 景の成分とを合成する。 合成された背景の成分は、 合成部 6 0 5に供給される。 更に、 合成部 6 0 5は、 スィッチ 6 0 4を介して供給された背景領域に属する画 素と、 分離部 6 0 1から供給された背景の成分とを合成して、 背景成分画像を生 成する。
ステップ S 6 1 0において、 合成部 6 0 3は、 前景成分画像を出力する。 ステ ップ S 6 1 1において、 合成部 6 0 5は、 背景成分画像を出力し、 処理は終了す る。
このように、 前景背景分離部 1 0 5は、 領域情報および混合比 を基に、 入 力画像から前景の成分と、 背景の成分とを分離し、 前景の成分のみから成る前景 成分画像、 および背景の成分のみから成る背景成分画像を出力することができる, 次に、 前景成分画像からの動きボケの量の調整について説明する。
図 7 1は、 動きボケ調整部 1 0 6の構成の一例を示すプロック図である。 動き 検出部 1 0 2から供給された動きべク トルとその位置情報、 および領域特定部 1 0 3から供給された領域情報は、 処理単位決定部 8 0 1およびモデル化部 8 0 2 に供給される。 前景背景分離部 1 0 5から供給された前景成分画像は、 足し込み 部 8 0 4に供給される。
処理単位決定部 8 0 1は、 動きべクトルとその位置情報、 および領域情報を基 に、 動きべクトルと共に、 生成した処理単位をモデル化部 8 0 2に供給する。 処 理単位決定部 8 0 1は、 生成した処理単位を足し込み部 8 0 4に供給する。
処理単位決定部 8 0 1が生成する処理単位は、 図 7 2において Aで例を示すよ うに、 前景成分画像のカバードバックグラウンド領域に対応する画素から始まり アンカバードバックグラウンド領域に対応する画素までの動き方向に並ぶ連続す る画素、 またはアンカバードバックグラウンド領域に対応する画素から始まり、 カバードバックグラウンド領域に対応する画素までの動き方向に並ぶ連続する画 素を示す。 処理単位は、 例えば、 左上点 (処理単位で指定される画素であって、 画像上で最も左または最も上に位置する画素の位置) および右下点の 2つのデー タから成る。
モデル化部 8 0 2は、 動きべクトルおよび入力された処理単位を基に、 モデル 化を実行する。 より具体的には、 例えば、 モデル化部 8 0 2は、 処理単位に含ま れる画素の数、 画素値の時間方向の仮想分割数、 および画素毎の前景の成分の数 に対応する複数のモデルを予め記憶しておき、 処理単位、 および画素値の時間方 向の仮想分割数を基に、 図 7 3に示すような、 画素値と前景の成分との対応を指 定するモデルを選択するようにしても良い。
例えば、 処理単位に対応する画素の数が 1 2でありシャツタ時間内の動き量 V が 5であるときにおいては、 モデル化部 8 0 2は、 仮想分割数を 5とし、 最も左 に位置する画素が 1つの前景の成分を含み、 左から 2番目の画素が 2つの前景の 成分を含み、 左から 3番目の画素が 3つの前景の成分を含み、 左から 4番目の画 素が 4つの前景の成分を含み、 左から 5番目の画素が 5つの前景の成分を含み、 左から 6番目の画素が 5つの前景の成分を含み、 左から 7番目の画素が 5つの前 景の成分を含み、 左から 8番目の画素が 5つの前景の成分を含み、 左から 9番目 の画素が 4つの前景の成分を含み、 左から 1 0番目の画素が 3つの前景の成分を 含み、 左から 1 1番目の画素が 2つの前景の成分を含み、 左から 1 2番目の画素 が 1つの前景の成分を含み、 全体として 8つの前景の成分から成るモデルを選択 する。
なお、 モデル化部 8 0 2は、 予め記憶してあるモデルから選択するのではなく 動きべクトル、 および処理単位が供給されたとき、 動きべク トル、 および処理単 位を基に、 モデルを生成するようにしてもよい。
モデル化部 8 0 2は、 選択したモデルを方程式生成部 8 0 3に供給する。
方程式生成部 8 0 3は、 モデル化部 8 0 2から供給されたモデルを基に、 方程 式を生成する。 図 7 3に示す前景成分画像のモデルを参照して、 前景の成分の数 が 8であり、 処理単位に対応する画素の数が 1 2であり、 動き量 V が 5であり 仮想分割数が 5であるときの、 方程式生成部 8 0 3が生成する方程式について説 明する。
前景成分画像に含まれるシャッタ時間/ Vに対応する前景成分が FO l/v乃至 F08/vであるとき、 FO l/v乃至 F08/vと画素値 C01乃至 C12との関係は、 式 (7 4 ) 乃至式 (8 5 ) で表される。
C01=F01/v ( 7 4 )
C02=F02/v+F01/v ( 7 5 )
C03=F03/v+F02/v+F01/v ( 7 6 )
C04=F04/v+F03/v+F02/v+F01/v ( 7 7 ) C05=F05/v+F04/v+F03/v+F02/v+F01/v ( 7 8 )
C06=F06/v+F05/v+F04/v+F03/v+F02/v ( 7 9 )
C07=F07/v+F06/v+F05/v+F04/v+F03/v ( 8 0 ) C08=F08/v+F07/v+F06/v+F05/v+F04/v (8 1)
C09=F08/v+F07/v+F06/v+F05/v (8 2)
C10=F08/v+F07/v+F06/v (8 3)
Cll=F08/v+F07/v (8 4)
C12=F08/v (8 5) 方程式生成部 8 0 3は、 生成した方程式を変形して方程式を生成する。 方程式 生成部 8 0 3が生成する方程式を、 式 (8 6) 乃至式 (9 7) に示す。
C01=l · FOl/v+0 ■ F02/v+0 - F03/v+0 - F04/v+0 · F05/v
+0 - F06/v+0 · F07/V+0 · F08/v (8 6) C02=l ■ FOl/v+1 ■ F02/v+0 · F03/v+0 ■ F04/v+0 · F05/v
+0 - F06/v+0 - F07/v+0 - F08/v (8 7) C03=l · FOl/v+1 ■ F02/v+l - F03/v+0 - F04/v+0 · F05/v
+0 · F06/v+0 - F07/v+0 - F08/v (8 8) C04=l - FOl/v+1 ■ F02/v+l - F03/v+l - F04/v+0 · F05/v
+0 · F06/v+0 - F07/v+0 - F08/v (8 9)
C05=l · FOl/v+1 - F02/v+l ■ F03/v+l - F04/v+l · F05/v
+0 - F06/v+0 - F07/v+0 - F08/v (9 0)
C06=0 - FOl/v+1 - F02/v+l - F03/v+l - F04/v+l · F05/v
+1 - F06/v+0 - F07/v+0 · F08/v (9 1) C07=0 - FOl/v+0 · F02/v+l · F03/v+l · F04/v+l · F05/v
+1 - F06/v+l · F07/v+0 - F08/v (9 2)
C08=0 - FOl/v+0 · F02/v+0 · F03/v+l · F04/v+l · F05/v
+1 - F06/v+l - F07/v+l - F08/v (9 3) C09=0 - FOl/v+0■ F02/v+0 - F03/v+0 - F04/v+l ■ F05/v
+1 - F06/v+l - F07/v+l ■ F08/v (9 4)
C10=0 ■ FOl/v+0 · F02/v+0 - F03/v+0 - F04/v+0 - F05/v
+1 - F06/v+l - F07/v+l - F08/v (9 5) C11=0 - FOl/v+0 - F02/v+0 - F03/v+0 - F04/v+0 - F05/v
+0 - F06/v+l - F07/v+l · F08/v (96)
C12=0 · FOl/v+0■ F02/v+0■ F03/v+0 · F04/v+0■ F05/v
+0 · F06/v+0 · F07/v+l - F08/v (9 7) 式 (86) 乃至式 (9 7) は、 式 (98) として表すこともできる。
Figure imgf000096_0001
式 (98) において、 jは、 画素の位置を示す。 この例において、 jは、 1乃至 1 2のいずれか 1つの値を有する。 また、 iは、 前景値の位置を示す。 この例に おいて、 iは、 1乃至 8のいずれか 1つの値を有する。 aijは、 iおよび jの値 に対応して、 0または 1の値を有する。
誤差を考慮して表現すると、 式 (98) は、 式 (99) のように表すことがで きる。
Figure imgf000096_0002
式 (9 9) において、 ejは、 注目画素 Cjに含まれる誤差である。
式 (9 9) は、 式 (1 00) に書き換えることができる。
Figure imgf000096_0003
ここで、 最小自乗法を適用するため、 誤差の自乗和 Eを式 (10 1) に示す ように定義する。
E =∑ej2 (loi) 誤差が最小になるためには、 誤差の自乗和 Eに対する、 変数 Fkによる偏微分 の値が 0になればよい。 式 (102) を満たすように Fkを求める。 12 dej
dFk j^i J ~dFk
n S
= 2-∑{(Cj -∑aij'Fi/v)'(- kj ) = o (102)
-01
式 (1 0 2) において、 動き量 vは固定値であるから、 式 (1 0 3) を導く -とができる。
12 08
∑ akj · (Cj -∑jaij、FHv)二 ο (103)
j=01 =01
式 (1 0 3) を展開して、 移項すると、 式 (1 04) を得る,
12 08 12
∑ (akj'^a Uiijj''FFii)) == vV ·· akj · Cj (104)
3=01 ii==0011
式 (1 04) の kに 1乃至 8の整数のいずれか 1つを代入して得られる 8つ の式に展開する。 得られた 8つの式を、 行列により 1つの式により表すことがで きる。 この式を正規方程式と呼ぶ。
このような最小自乗法に基づく、 方程式生成部 8 0 3が生成する正規方程式の 例を式 (1 0 5) に示す。
Figure imgf000097_0001
式 (1 0 5) を A'F=v'Cと表すと、 C,ん Vが既知であり、 Fは未知である。 ま た、 Α,νは、 モデル化の時点で既知だが、 Cは、 足し込み動作において画素値を 入力することで既知となる。 最小自乗法に基づく正規方程式により前景成分を算出することにより、 画素 C に含まれている誤差を分散させることができる。
方程式生成部 8 0 3は、 このように生成された正規方程式を足し込み部 8 0 4 に供給する。
足し込み部 8 0 4は、 処理単位決定部 8 0 1から供給された処理単位を基に、 前景成分画像に含まれる画素値 Cを、 方程式生成部 8 0 3から供給された行列 の式に設定する。 足し込み部 8 0 4は、 画素値 Cを設定した行列を演算部 8 0 5に供給する。
演算部 8 0 5は、 掃き出し法 (Gauss- Jordanの消去法) などの解法に基づく 処理により、 動きボケが除去された前景成分 Fi/vを算出して、 動きボケが除去 された前景の画素値である、 0乃至 8の整数のいずれかの iに対応する Fiを算 出して、 図 7 4に例を示す、 動きボケが除去された画素値である Fiから成る、 動きボケが除去された前景成分画像を動きボケ付加部 8 0 6および選択部 8 0 7 に出力する。
なお、 図 7 4に示す動きボケが除去された前景成分画像において、 C03乃至 C10のそれぞれに F01乃至 F08のそれぞれが設定されているのは、 画面に対する 前景成分画像の位置を変化させないためであり、 任意の位置に対応させることが できる。
動きボケ付加部 8 0 6は、 動き量 Vとは異なる値の動きボケ調整量 v'、 例え ば、 動き量 Vの半分の値の動きボケ調整量 v'や、 動き量 Vと無関係の値の動き ボケ調整量 v'を与えることで、 動きボケの量を調整することができる。 例えば、 図 7 5に示すように、 動きボケ付加部 8 0 6は、 動きボケが除去された前景の画 素値 Fiを動きボケ調整量 v'で除すことにより、 前景成分 Fi/v'を算出して、 前 景成分 Fi/v'の和を算出して、 動きボケの量が調整された画素値を生成する。 例 えば、 動きボケ調整量 v'が 3のとき、 画素値 C02は、 (F01) /v,とされ、 画素 値 CO3は、 (F01+F02) Iヾとされ、 画素値 C04は、 (F01+F02+F03) /v,とされ、 画素値 C05は、 (F02+F03+F04) /v'とされる。 動きボケ付加部 8 0 6は、 動きボケの量を調整した前景成分画像を選択部 8 0 7に供給する。
選択部 8 0 7は、 例えば使用者の選択に対応した選択信号を基に、 演算部 8 0 5から供給された動きボケが除去された前景成分画像、 およぴ動きボケ付加部 8 0 6から供給された動きボケの量が調整された前景成分画像のいずれか一方を選 択して、 選択した前景成分画像を出力する。
このように、 動きボケ調整部 1 0 6は、 選択信号および動きボケ調整量 v'を 基に、 動きボケの量を調整することができる。
また、 例えば、 図 7 6に示すように、 処理単位に対応する画素の数が 8であり 動き量 Vが 4であるとき、 動きボケ調整部 1 0 6は、 式 (1 0 6 ) に示す行列 の式を生成する。
Figure imgf000099_0001
動きボケ調整部 1 0 6は、 このように処理単位の長さに対応した数の式を立て て、 動きボケの量が調整された画素値である Fiを算出する。 同様に、 例えば、 処理単位に含まれる画素の数が 1 0 0あるとき、 1 0 0個の画素に対応する式を 生成して、 Fiを算出する。
図 7 7は、 動きボケ調整部 1 0 6の他の構成を示す図である。 図 7 1に示す場 合と同様の部分には同一の番号を付してあり、 その説明は省略する。
選択部 8 2 1は、 選択信号を基に、 入力された動きべクトルとその位置信号を そのまま処理単位決定部 8 0 1およびモデル化部 8 0 2に供給す.るカ または動 きべクトルの大きさを動きボケ調整量 v'に置き換えて、 その大きさが動きボケ 調整量 v'に置き換えられた動きべク トルとその位置信号を処理単位決定部 8 0 1およびモデル化部 8 0 2に供給する。
このようにすることで、 図 7 7の動きボケ調整部 1 0 6の処理単位決定部 8 0 1乃至演算部 8 0 5は、 動き量 Vと動きボケ調整量 v'との値に対応して、 動き ボケの量を調整することができる。 例えば、 動き量 Vが 5であり、 動きボケ調 整量 v'が 3であるとき、 図 7 7の動きボケ調整部 1 0 6の処理単位決定部 8 0 1乃至演算部 8 0 5は、 図 7 3に示す動き量 Vが 5である前景成分画像に対し て、 3である動きボケ調整量 v'対応する図 7 5に示すようなモデルに従って、 演算を実行し、 (動き量 V) I (動きボケ調整量 ν' ) = 5/3、 すなわちほぼ 1. 7 の動き量 Vに応じた動きボケを含む画像を算出する。 なお、 この場合、 算出さ れる画像は、 3である動き量 Vに対応した動きボケを含むのではないので、 動き ボケ付加部 8 0 6の結果とは動き量 Vと動きボケ調整量 v'の関係の意味合いが 異なる点に注意が必要である。
以上のように、 動きボケ調整部 1 0 6は、 動き量 Vおよび処理単位に対応し て、 式を生成し、 生成した式に前景成分画像の画素値を設定して、 動きボケの量 が調整された前景成分画像を算出する。
次に、 図 7 8のフローチャートを参照して、 動きボケ調整部 1 0 6による前景 成分画像に含まれる動きボケの量の調整の処理を説明する。
ステップ S 8 0 1において、 動きボケ調整部 1 0 6の処理単位決定部 8 0 1は、 動きべクトルおよび領域情報を基に、 処理単位を生成し、 生成した処理単位をモ デル化部 8 0 2に供給する。
ステップ S 8 0 2において、 動きボケ調整部 1 0 6のモデル化部 8 0 2は、 動 き量 Vおよび処理単位に対応して、 モデルの選択や生成を行う。 ステップ S 8 0 3において、 方程式生成部 8 0 3は、 選択されたモデルを基に、 正規方程式を 作成する。
ステップ S 8 0 4において、 足し込み部 8 0 4は、 作成された正規方程式に前 景成分画像の画素値を設定する。 ステップ S 8 0 5において、 足し込み部 8 0 4 は、 処理単位に対応する全ての画素の画素値の設定を行ったか否かを判定し、 処 理単位に対応する全ての画素の画素値の設定を行っていないと判定された場合、 ステップ S 8 0 4に戻り、 正規方程式への画素値の設定の処理を繰り返す。 ステップ S 8 0 5において、 処理単位の全ての画素の画素値の設定を行ったと 判定された場合、 ステップ S 8 0 6に進み、 演算部 8 0 5は、 足し込み部 8 0 4 から供給された画素値が設定された正規方程式を基に、 動きボケの量を調整した 前景の画素値を算出して、 処理は終了する。
このように、 動きボケ調整部 1 0 6は、 動きべクトルおよび領域情報を基に、 動きボケを含む前景画像から動きボケの量を調整することができる。
すなわち、 サンプルデータである画素値に含まれる動きボケの量を調整するこ とができる。
以上のように、 図 2に構成を示す信号処理装置は、 入力画像に含まれる動きポ ケの量を調整することができる。 図 2に構成を示す信号処理装置は、 埋もれた情 報である混合比 を算出して、 算出した混合比 を出力することができる。 図 7 9は、 動きボケ調整部 1 0 6の構成の他の一例を示すブロック図である。 動き検出部 1 0 2から供給された動きべクトルとその位置情報は、 処理単位決定 部 9 0 1および補正部 9 0 5に供給され、 領域特定部 1 0 3から供給された領域 情報は、 処理単位決定部 9 0 1に供給される。 前景背景分離部 1 0 5から供給さ れた前景成分画像は、 演算部 9 0 4に供給される。
処理単位決定部 9 0 1は、 動きべクトルとその位置情報、 および領域情報を基 に、 動きべクトルと共に、 生成した処理単位をモデル化部 9 0 2に供給する。 モデル化部 9 0 2は、 動きベク トルおよび入力された処理単位を基に、 モデル 化を実行する。 より具体的には、 例えば、 モデル化部 9 0 2は、 処理単位に含ま れる画素の数、 画素値の時間方向の仮想分割数、 および画素毎の前景の成分の数 に対応する複数のモデルを予め記憶しておき、 処理単位、 および画素値の時間方 向の仮想分割数を基に、 図 8 0に示すような、 画素値と前景の成分との対応を指 定するモデルを選択するようにしても良い。
例えば、 処理単位に対応する画素の数が 1 2であり動き量 Vが 5であるとき においては、 モデル化部 9 0 2は、 仮想分割数を 5とし、 最も左に位置する画素 が 1つの前景の成分を含み、 左から 2番目の画素が 2つの前景の成分を含み、 左 から 3番目の画素が 3つの前景の成分を含み、 左から 4番目の画素が 4つの前景 の成分を含み、 左から 5番目の画素が 5つの前景の成分を含み、 左から 6番目の 画素が 5つの前景の成分を含み、 左から 7番目の画素が 5つの前景の成分を含み、 左から 8番目の画素が 5つの前景の成分を含み、 左から 9番目の画素が 4つの前 景の成分を含み、 左から 1 0番目の画素が 3つの前景の成分を含み、 左から 1 1 番目の画素が 2つの前景の成分を含み、 左から 1 2番目の画素が 1つの前景の成 分を含み、 全体として 8つの前景の成分から成るモデルを選択する。
なお、 モデル化部 9 0 2は、 予め記憶してあるモデルから選択するのではなく、 動きベク トル、 および処理単位が供給されたとき、 動きベク トル、 および処理単 位を基に、 モデルを生成するようにしてもよい。
方程式生成部 9 0 3は、 モデル化部 9 0 2から供給されたモデルを基に、 方程 式を生成する。
図 8 0乃至図 8 2に示す前景成分画像のモデルを参照して、 前景の成分の数が 8であり、 処理単位に対応する画素の数が 1 2であり、 動き量 Vが 5であると きの、 方程式生成部 9 0 3が生成する方程式の例について説明する。
前景成分画像に含まれるシャッタ時間/ Vに対応する前景成分が FO l/v乃至 F08/Vであるとき、 FO l/v乃至 F08/vと画素値 C01乃至 C12との関係は、 上述し たように、 式 (7 4 ) 乃至式 (8 5 ) で表される。
画素値 C12および C11に注目すると、 画素値 C12は、 式 (1 0 7 ) に示すよ うに、 前景の成分 F08/Vのみを含み、 画素値 C11は、 前景の成分 F08/vおよび 前景の成分 F07/vの積和から成る。 従って、 前景の成分 F07/Vは、 式 (1 0 8 ) で求めることができる。
F08/v=C12 ( 1 0 7 )
F07/v=Cl l-C12 ( 1 0 8 )
同様に、 画素値 C10乃至 C01に含まれる前景の成分を考慮すると、 前景の成 分 F06/v乃至 FOl/vは、 式 (1 0 9) 乃至式 (1 1 4) により求めることがで きる。
F06/v=C10-Cll (1 0 9)
F05/v=C09-C10 (1 1 0)
F04/v=C08-C09 (1 1 1)
F03/v=C07- C08+C12 (1 1 2)
F02/v=C06 - C07+C1ト C12 (1 1 3)
F01/v=C05-C06+C10-Cll (1 1 4)
方程式生成部 9 0 3は、 式 (1 0 7) 乃至式 (1 1 4) に例を示す、 画素値の 差により前景の成分を算出するための方程式を生成する。 方程式生成部 9 0 3は、 生成した方程式を演算部 904に供給する。
演算部 9 0 4は、 方程式生成部 9 0 3から供給された方程式に前景成分画像の 画素値を設定して、 画素値を設定した方程式を基に、 前景の成分を算出する。 演 算部 9 04は、 例えば、 式 (1 0 7) 乃至式 (1 1 4) が方程式生成部 90 3力、 ら供給されたとき、 式 (1 0 7) 乃至式 (1 1 4) に画素値 C05乃至 C12を設 定する。
演算部 9 04は、 画素値が設定された式に基づき、 前景の成分を算出する。 例 えば、 演算部 9 04は、 画素値 C05乃至 C12が設定された式 (1 0 7) 乃至式 ( 1 1 4) に基づく演算により、 図 8 1に示すように、 前景の成分 FOl/v乃至 F08Zvを算出する。 演算部 904は、 前景の成分 FOl/ν乃至 F08/vを補正部 9 0 5に供給する。
補正部 9 0 5は、 演算部 9 04から供給された前景の成分に、 処理単位決定部 9 0 1から供給された動きべクトルに含まれる動き量 Vを乗じて、 動きボケを 除去した前景の画素値を算出する。 例えば、 補正部 9 0 5は、 演算部 9 04から 供給された前景の成分 FOl/v乃至 F08/vが供給されたとき、 前景の成分 F01/v 乃至 F08/vのそれぞれに、 5である動き量 Vを乗じることにより、 図 8 2に示 すように、 動きボケを除去した前景の画素値 F01乃至 F08を算出する。 補正部 9 0 5は、 以上のように算出された、 動きボケを除去した前景の画素値 から成る前景成分画像を動きボケ付加部 9 0 6および選択部 9 0 7に供給する。 動きボケ付加部 9 0 6は、 動き量 Vとは異なる値の動きボケ調整量 v 、 例え ば、 動き量 Vの半分の値の動きボケ調整量 v'、 動き量 Vと無関係の値の動きボ ケ調整量 v'で、 動きボケの量を調整することができる。 例えば、 図 7 5に示す ように、 動きボケ付加部 9 0 6は、 動きボケが除去された前景の画素値 Fiを動 きボケ調整量 v'で除すことにより、 前景成分 Fi/v'を算出して、 前景成分
Fi/v'の和を算出して、 動きボケの量が調整された画素値を生成する。 例えば、 動きボケ調整量 V,が 3のとき、 画素値 C02は、 (F01) /ν'とされ、 画素値 C03 は、 (F01+F02) /ν'とされ、 画素値 C04は、 (F01+F02+F03) /ν'とされ、 画素 値 C05は、 (F02+F03+F04) /ν'とされる。
動きボケ付加部 9 0 6は、 動きボケの量を調整した前景成分画像を選択部 9 0 7に供給する。
選択部 9 0 7は、 例えば使用者の選択に対応した選択信号を基に、 補正部 9 0 5から供給された動きボケが除去された前景成分画像、 および動きボケ付加部 9 0 6から供給された動きボケの量が調整された前景成分画像のいずれか一方を選 択して、 選択した前景成分画像を出力する。
このように、 動きボケ調整部 1 0 6は、 選択信号および動きボケ調整量 ν'を 基に、 動きボケの量を調整することができる。
次に、 図 7 9に構成を示す動きボケ調整部 1 0 6による前景の動きボケの量の 調整の処理を図 8 3のフローチャートを参照して説明する。
ステップ S 9 0 1において、 動きボケ調整部 1 0 6の処理単位決定部 9 0 1は、 動きベクトルおよび領域情報を基に、 処理単位を生成し、 生成した処理単位をモ デル化部 9 0 2および補正部 9 0 5に供給する。
ステップ S 9 0 2において、 動きボケ調整部 1 0 6のモデル化部 9 0 2は、 動 き量 Vおよび処理単位に対応して、 モデルの選択や生成を行う。 ステップ S 9 0 3において、 方程式生成部 9 0 3は、 選択または生成されたモデルを基に、 前 景成分画像の画素値の差により前景の成分を算出するための方程式を生成する。 ステップ S 9 0 4において、 演算部 9 0 4は、 作成された方程式に前景成分画 像の画素値を設定し、 画素値が設定された方程式を基に、 画素値の差分から前景 の成分を抽出する。 ステップ S 9 0 5において、 演算部 9 0 4は、 処理単位に対 応する全ての前景の成分を抽出したか否かを判定し、 処理単位に対応する全ての 前景の成分を抽出していないと判定された場合、 ステップ S 9 0 4に戻り、 前景 の成分を抽出の処理を繰り返す。
ステップ S 9 0 5において、 処理単位に対応する全ての前景の成分を抽出した と判定された場合、 ステップ S 9 0 6に進み、 補正部 9 0 5は、 動き量 Vを基 に、 演算部 9 0 4から供給された前景の成分 FOl/v乃至 F08/vのそれぞれを補 正して、 動きボケを除去した前景の画素値 F01乃至 F08を算出する。
ステップ S 9 0 7において、 動きボケ付加部 9 0 6は、 動きボケの量を調整し た前景の画素値を算出して、 選択部 9 0 7は、 動きボケが除去された画像または 動きボケの量が調整された画像のいずれかを選択して、 選択した画像を出力して、 処理は終了する。
このように、 図 7 9に構成を示す動きボケ調整部 1 0 6は、 より簡単な演算で、 より迅速に、 動きボケを含む前景画像から動きボケを調整することができる。
ウィナー · フィルタなど従来の動きボケを部分的に除去する手法が、 理想状態 では効果が認められるが、 量子化され、 ノイズを含んだ実際の画像に対して十分 な効果が得られないのに対し、 図 7 9に構成を示す動きボケ調整部 1 0 6におい ても、 量子化され、 ノイズを含んだ実際の画像に対しても十分な効果が認められ、 精度の良い動きボケの除去が可能となる。
図 8 4は、 信号処理装置の機能の他の構成を示すブロック図である。
図 2に示す部分と同様の部分には同一の番号を付してあり、 その説明は適宜省 略する。
領域特定部 1 0 3は、 領域情報を混合比算出部 1 0 4および合成部 1 0 0 1に 供給する。 ' 混合比算出部 1 0 4は、 混合比ひ を前景背景分離部 1 0 5および合成部 1 0 0 1に供給する。
前景背景分離部 1 0 5は、 前景成分画像を合成部 1 0 0 1に供給する。
合成部 1 0 0 1は、 混合比算出部 1 0 4から供給された混合比 、 領域特定 部 1 0 3から供給された領域情報を基に、 任意の背景画像と、 前景背景分離部 1 0 5から供給された前景成分画像とを合成して、 任意の背景画像と前景成分画像 とが合成された合成画像を出力する。
図 8 5は、 合成部 1 0 0 1の構成を示す図である。 背景成分生成部 1 0 2 1は、 混合比 αおよび任意の背景画像を基に、 背景成分画像を生成して、 混合領域画 像合成部 1 0 2 2に供給する。
混合領域画像合成部 1 0 2 2は、 背景成分生成部 1 0 2 1から供給された背景 成分画像と前景成分画像とを合成することにより、 混合領域合成画像を生成して、 生成した混合領域合成画像を画像合成部 1 0 2 3に供給する。
画像合成部 1 0 2 3は、 領域情報を基に、 前景成分画像、 混合領域画像合成部 1 0 2 2から供給された混合領域合成画像、 および任意の背景画像を合成して、 合成画像を生成して出力する。
このように、 合成部 1 0 0 1は、 前景成分画像を、 任意の背景画像に合成する ことができる。
特徴量である混合比 Of を基に前景成分画像を任意の背景画像と合成して得ら れた画像は、 単に画素を合成した画像に比較し、 より自然なものと成る。
図 8 6は、 動きボケの量を調整する信号処理装置の機能の更に他の構成を示す ブロック図である。 図 2に示す信号処理装置が領域特定と混合比 の算出を順 番に行うのに対して、 図 8 6に示す信号処理装置は、 領域特定と混合比 の算 出を並行して行う。
図 2のブロック図に示す機能と同様の部分には同一の番号を付してあり、 その 説明は省略する。
入力画像は、 混合比算出部 1 1 0 1、 前景背景分離部 1 1 0 2、 領域特定部 1 0 3、 およぴォブジェクト抽出部 1 0 1に供給される。
混合比算出部 1 1 0 1は、 入力画像を基に、 画素がカバードバックグラウンド 領域に属すると仮定した場合における推定混合比、 および画素がアンカバードバ ックグラウンド領域に属すると仮定した場合における推定混合比を、 入力画像に 含まれる画素のそれぞれに対して算出し、 算出した画素がカバードバックグラウ ンド領域に属すると仮定した場合における推定混合比、 および画素がアンカパー ドバックグラウンド領域に属すると仮定した場合における推定混合比を前景背景 分離部 1 1 0 2に供給する。
図 8 7は、 混合比算出部 1 1 0 1の構成の一例を示すブロック図である。
図 8 7に示す推定混合比処理部 4 0 1は、 図 4 6に示す推定混合比処理部 4 0 1と同じである。 図 8 7に示す推定混合比処理部 4 0 2は、 図 4 6に示す推定混 合比処理部 4 0 2と同じである。
推定混合比処理部 4 0 1は、 入力画像を基に、 カバードバックグラウンド領域 のモデルに対応する演算により、 画素毎に推定混合比を算出して、 算出した推定 混合比を出力する。
推定混合比処理部 4 0 2は、 入力画像を基に、 アンカバードバックグラウンド 領域のモデルに対応する演算により、 画素毎に推定混合比を算出して、 算出した 推定混合比を出力する。
前景背景分離部 1 1 0 2は、 混合比算出部 1 1 0 1から供給された、 画素が力 パードバックグラウンド領域に属すると仮定した場合における推定混合比、 およ び画素がアンカバードバックグラウンド領域に属すると仮定した場合における推 定混合比、 並びに領域特定部 1 0 3から供給された領域情報を基に、 入力画像か ら前景成分画像を生成し、 生成した前景成分画像を動きボケ調整部 1 0 6および 選択部 1 0 7に供給する。
図 8 8は、 前景背景分離部 1 1 0 2の構成の一例を示すブロック図である。 図 6 3に示す前景背景分離部 1 0 5と同様の部分には同一の番号を付してあり その説明は省略する。 選択部 1 1 2 1は、 領域特定部 1 0 3から供給された領域情報を基に、 混合比 算出部 1 1 0 1から供給された、 画素がカバードバックグラウンド領域に属する と仮定した場合における推定混合比、 および画素がアンカバードバックグラウン ド領域に属すると仮定した場合における推定混合比のいずれか一方を選択して、 選択した推定混合比を混合比 として分離部 6 0 1に供給する。
分離部 6 0 1は、 選択部 1 1 2 1から供給された混合比 および領域情報を 基に、 混合領域に属する画素の画素値から前景の成分および背景の成分を抽出し、 抽出した前景の成分を合成部 6 0 3に供給すると共に、 背景の成分を合成部 6 0 5に供給する。
分離部 6 0 1は、 図 6 8に示す構成と同じ構成とすることができる。
合成部 6 0 3は、 前景成分画像を合成して、 出力する。 合成部 6 0 5は、 背景 成分画像を合成して出力する。
図 8 6に示す動きボケ調整部 1 0 6は、 図 2に示す場合と同様の構成とするこ とができ、 領域情報および動きべクトルを基に、 前景背景分離部 1 1 0 2から供 給された前景成分画像に含まれる動きボケの量を調整して、 動きボケの量が調整 された前景成分画像を出力する。
図 8 6に示す選択部 1 0 7は、 例えば使用者の選択に対応した選択信号を基に、 前景背景分離部 1 1 0 2から供給された前景成分画像、 および動きボケ調整部 1 0 6から供給された動きボケの量が調整された前景成分画像のいずれか一方を選 択して、 選択した前景成分画像を出力する。
このように、 図 8 6に構成を示す信号処理装置は、 入力画像に含まれる前景の オブジェクトに対応する画像に対して、 その画像に含まれる動きボケの量を調整 して出力することができる。 図 8 6に構成を示す信号処理装置は、 第 1の実施例 と同様に、 埋もれた情報である混合比 を算出して、 算出した混合比 を出力 することができる。
図 8 9は、 前景成分画像を任意の背景画像と合成する信号処理装置の機能の他 の構成を示すプロック図である。 図 8 4に示す信号処理装置が領域特定と混合比 の算出をシリアルに行うのに対して、 図 8 9に示す信号処理装置は、 領域特 定と混合比 αの算出をパラレルに行う。
図 8 6のプロック図に示す機能と同様の部分には同一の番号を付してあり、 そ の説明は省略する。
図 8 9に示す混合比算出部 1 1 0 1は、 入力画像を基に、 画素がカバードバッ クグラウンド領域に属すると仮定した場合における推定混合比、 および画素がァ ンカバードバックグラウンド領域に属すると仮定した場合における推定混合比を、 入力画像に含まれる画素のそれぞれに対して算出し、 算出した画素がカバードパ ックグラウンド領域に属すると仮定した場合における推定混合比、 および画素が アンカバードバックグラウンド領域に属すると仮定した場合における推定混合比 を前景背景分離部 1 1 0 2および合成部 1 2 0 1に供給する。
図 8 9に示す前景背景分離部 1 1 0 2は、 混合比算出部 1 1 0 1から供給され た、 画素がカバードバックグラウンド領域に属すると仮定した場合における推定 混合比、 および画素がアンカバードバックグラウンド領域に属すると仮定した場 合における推定混合比、 並びに領域特定部 1 0 3から供給された領域情報を基に、 入力画像から前景成分画像を生成し、 生成した前景成分画像を合成部 1 2 0 1に 供給する。
合成部 1 2 0 1は、 混合比算出部 1 1 0 1から供給された、 画素がカバードバ ックグラウンド領域に属すると仮定した場合における推定混合比、 および画素が アンカバードバックグラウンド領域に属すると仮定した場合における推定混合比、 領域特定部 1 0 3から供給された領域情報を基に、 任意の背景画像と、 前景背景 分離部 1 1 0 2から供給された前景成分画像とを合成して、 任意の背景画像と前 景成分画像とが合成された合成画像を出力する。
図 9 0は、 合成部 1 2 0 1の構成を示す図である。 図 8 5のブロック図に示す 機能と同様の部分には同一の番号を付してあり、 その説明は省略する。
選択部 1 2 2 1は、 領域特定部 1 0 3から供給された領域情報を基に、 混合比 算出部 1 1 0 1から供給された、 画素がカバードバックグラウンド領域に属する と仮定した場合における推定混合比、 およぴ画素がアンカバードバックグラウン ド領域に属すると仮定した場合における推定混合比のいずれか一方を選択して、 選択した推定混合比を混合比 として背景成分生成部 1 0 2 1に供給する。 図 9 0に示す背景成分生成部 1 0 2 1は、 選択部 1 2 2 1から供給された混合 比 aおよび任意の背景画像を基に、 背景成分画像を生成して、 混合領域画像合 成部 1 0 2 2に供給する。
図 9 0に示す混合領域画像合成部 1 0 2 2は、 背景成分生成部 1 0 2 1から供 給された背景成分画像と前景成分画像とを合成することにより、 混合領域合成画 像を生成して、 生成した混合領域合成画像を画像合成部 1 0 2 3に供給する。 画像合成部 1 0 2 3は、 領域情報を基に、 前景成分画像、 混合領域画像合成部 1 0 2 2から供給された混合領域合成画像、 および任意の背景画像を合成して、 合成画像を生成して出力する。
このように、 合成部 1 2 0 1は、 前景成分画像を、 任意の背景画像に合成する ことができる。
なお、 混合比 は、 画素値に含まれる背景の成分の割合として説明したが、 画素値に含まれる前景の成分の割合としてもよい。
また、 前景となるオブジェクトの動きの方向は左から右として説明したが、 そ の方向に限定されないことは勿論である。
以上においては、 3次元空間と時間軸情報を有する現実空間の画像をビデオ力 メラを用いて 2次元空間と時間軸情報を有する時空間への射影を行った場合を例 としたが、 本発明は、 この例に限らず、 より多くの第 1の次元の第 1の情報を、 より少ない第 2の次元の第 2の情報に射影した場合に、 その射影によつて発生す る歪みを補正したり、 有意情報を抽出したり、 またはより自然に画像を合成する 場合に適応することが可能である。
なお、 センサは、 CCDに限らす、 固体撮像素子である、 例えば、 BBD (Bucket Brigaae Device) 、 CID (Charge Injection Device) 、 CPD (Charge Priming Device) 、 または CMOS (Complementary Mental Oxide Semiconductor) セン サでもよく、 また、 検出素子がマトリックス状に配置されているセンサに限らず、 検出素子が 1列に並んでいるセンサでもよい。
本発明の信号処理を行うプログラムを記録した記録媒体は、 図 1に示すように、 コンピュータとは別に、 ユーザにプログラムを提供するために配布される、 プロ グラムが記録されている磁気ディスク 5 1 (フロッピ (登録商標) ディスクを含 む) 、 光ディスク 5 2 (CD-ROM (Compact Di sc-Read Only Memory) ,
DVD (Di gital Versati le Di sc)を含む) 、 光磁気ディスク 5 3 (MD (Mini- Disc) (商標) を含む) 、 もしくは半導体メモリ 5 4などよりなるパッケージ メディアにより構成されるだけでなく、 コンピュータに予め組み込まれた状態で ユーザに提供される、 プログラムが記録されている R0M 2 2や、 記憶部 2 8に含 まれるハードディスクなどで構成される。
なお、 本明細書において、 記録媒体に記録されるプログラムを記述するステツ プは、 記載された順序に沿って時系列的に行われる処理はもちろん、 必ずしも時 系列的に処理されなくとも、 並列的あるいは個別に実行される処理をも含むもの である。 産業上の利用可能性
本発明によれば、 混ざり合いが生じている領域を検出することが可能となる。

Claims

請求の範囲
1 . 時間積分効果を有する所定数の画素を有する撮像素子によって取得された 所定数の画素データからなる画像データから、 現実世界における複数のオブジェ クトが混ざり合った前記画素データとして取得された混合領域を検出する画像処 理装置において、
前記画像データの各フレームを動き補償する動き補償手段と、
動き補償された各フレームの互いに対応する位置の前記画素データの差分に基 づいて、 前記混合領域を検出する領域検出手段と
を含むことを特徴とする画像処理装置。
2 . 前記領域検出手段は、 前記差分が閾値以上である場合、 少なくとも前記画 素データが属する前記混合領域を検出する
ことを特徴とする請求の範囲第 1項に記載の画像処理装置。
3 . 前記領域検出手段は、 検出された前記混合領域の時間変化に基づいて、 時 間の変化とともに前景となる前記オブジェクトの成分が增加するカバードバック グラウンド領域と、 時間の変化とともに背景となる前記オブジェクトの成分が増 加するアンカバードバックグラウンド領域とをさらに検出する
ことを特徴とする請求の範囲第 2項に記載の画像処理装置。
4 . 前記領域検出手段は、 各フレームの前記画素データに対応する動きべクト ルに基づいて、 時間の変化とともに前景となる前記オブジェクトの成分が増加す る力バードバックグラウンド領域と、 時間の変化とともに背景となる前記ォブジ エタトの成分が増加するアンカバ一ドバックグラウンド領域とをさらに検出する ことを特徴とする請求の範囲第 2項に記載の画像処理装置。
5 . 前記動きべク トルを検出する動きべクトル検出手段をさらに含む
ことを特徴とする請求の範囲第 4項に記載の画像処理装置
6 . 前記オブジェク トの前記画素データにおける混合状態を示す混合比を算出 する混合比算出手段をさらに含む
ことを特徴とする請求の範囲第 1項に記載の画像処理装置。
7 . 前記混合比を基に、 前記混合領域の前記画素データから少なくとも前景と なる前記オブジェクトの成分を分離する分離手段をさらに含む
ことを特徴とする請求の範囲第 6項に記載の画像処理装置。
8 . 分離された前景となる前記ォブジェクトの成分の動きボケの量を調整する 動きボケ調整手段をさらに含む
ことを特徴とする請求の範囲第 7項に記載の画像処理装置。
9 . 前記混合比を基に、 所望の他のオブジェクトと分離された前景となる前記 ォブジェクトの成分とを合成する合成手段をさらに含む
ことを特徴とする請求の範囲第 7項に記載の画像処理装置。
1 0 . 前記動き捕償手段は、 注目している注目フレームの前記複数のオブジェ タトのうちの背景オブジェクトと、 前記注目フレームの周辺の周辺フレームの前 記背景オブジェクトとの画素位置が同位置となるように、 前記周辺フレームをシ フトすることにより動き補償し、
前記領域検出手段は、 前記動き補償された前記周辺フレームと前記注目フレー ムとの差分に基づいて、 少なくとも前記混合領域を検出する
ことを特徴とする請求の範囲第 1項に記載の画像処理装置。
1 1 . 前記領域検出手段は、 動き補償された前記周辺フレームと前記注目フレ ームとの対応する画素位置の前記画素データ同士の差分に基づいて、 静動判定を 行う静動判定手段を含み、
前記領域検出手段は、 前記静動判定手段の判定結果に基づいて、 前記画素位置 に対して、 前記複数のオブジェクトのうちの前景ォブジェクトを構成する前景ォ ブジェクト成分のみからなる前景領域、 前記背景オブジェクトを構成する背景ォ ブジェクト成分のみからなる背景領域、 または前記混合領域を検出する
ことを特徴とする請求の範囲第 1 0項に記載の画像処理装置。
1 2 . 前記領域検出手段は、 前記静動判定手段の判定結果に基づいて、 前記混 合領域における前記前景オブジェクトの動き方向後端側に形成されるアンカバー ドバックグラウンド領域を特定すると共に、 前記前景オブジェクトの動き方向先 端側に形成されるカバードバックグラウンド領域を特定する
ことを特徴とする請求の範囲第 1 1項に記載の画像処理装置。
1 3 . 時間積分効果を有する所定数の画素を有する撮像素子によって取得され た所定数の画素データからなる画像データから、 現実世界における複数のォブジ エタ トが混ざり合った前記画素データとして取得された混合領域を検出する画像 処理方法において、
前記画像データの各フレームを動き補償する動き補償ステップと、
動き補償された各フレームの互いに対応する位置の前記画素データの差分に基 づいて、 前記混合領域を検出する領域検出ステップと
を含むことを特徴とする画像処理方法。
1 4 . 前記領域検出ステップにおいて、 前記差分が閾値以上である場合、 少な くとも前記画素データが属する前記混合領域が検出される
ことを特徴とする請求の範囲第 1 3項に記載の画像処理方法。
1 5 . 前記領域検出ステップにおいて、 検出された前記混合領域の時間変化に 基づいて、 時間の変化とともに前景となる前記オブジェクトの成分が増加する力 バードバックグラウンド領域と、 時間の変化とともに背景となる前記オブジェク トの成分が増加するァンカバードバックグラウンド領域とがさらに検出される ことを特徴とする請求の範囲第 1 4項に記載の画像処理方法。
1 6 . 前記領域検出ステップにおいて、 各フレームの前記画素データに対応す る動きベクトルに基づいて、 時間の変化とともに前景となる前記オブジェクトの 成分が増加する力バードパックグラウンド領域と、 時間の変化とともに背景とな る前記オブジェクトの成分が増加するアンカバードバックグラウンド領域とがさ らに検出される
ことを特徴とする請求の範囲第 1 4項に記載の画像処理方法。
1 7 . 前記動きベク トルを検出する動きベク トル検出ステップをさらに含む ことを特徴とする請求の範囲第 1 6項に記載の画像処理方法
1 8 . 前記オブジェクトの前記画素データにおける混合状態を示す混合比を算 出する混合比算出ステップをさらに含む
ことを特徴とする請求の範囲第 1 3項に記載の画像処理方法。
1 9 . 前記混合比を基に、 前記混合領域の前記画素データから少なくとも前景 となる前記オブジェクトの成分を分離する分離ステップをさらに含む
ことを特徴とする請求の範囲第 1 8項に記載の画像処理方法。
2 0 . 分離された前景となる前記オブジェクトの成分の動きボケの量を調整す る動きボケ調整ステップをさらに含む
ことを特徴とする請求の範囲第 1 9項に記載の画像処理方法。
2 1 . 前記混合比を基に、 所望の他のオブジェクトと分離された前景となる前 記ォブジェクトの成分とを合成する合成ステップをさらに含む
ことを特徴とする請求の範囲第 1 9項に記載の画像処理方法。
2 2 . 前記動き補償ステップにおいて、 注目している注目フレームの前記複数 のォブジェクトのうちの背景オブジェクトと、 前記注目フレームの周辺の周辺フ レームの前記背景オブジェクトとの画素位置が同位置となるように、 前記周辺フ レームがシフトされることにより動き補償され、
前記領域検出ステップにおいて、 前記動き捕償された前記周辺フレームと前記 注目フレームとの差分に基づいて、 少なくとも前記混合領域が検出される ことを特徴とする請求の範囲第 1 3項に記載の画像処理方法。
2 3 . 前記領域検出ステップは、 動き補償された前記周辺フレームと前記注目 フレームとの対応する画素位置の.前記画素データ同士の差分に基づいて、 静動判 定を行う静動判定ステップを含み、
前記領域検出ステップにおいて、 前記静動判定手段の判定結果に基づいて、 前 記画素位置に対して、 前記複数のォブジェクトのうちの前景ォブジェクトを構成 する前景オブジェク ト成分のみからなる前景領域、 前記背景オブジェクトを構成 する背景オブジェク ト成分のみからなる背景領域、 または前記混合領域が検出さ れる
ことを特徴とする請求の範囲第 2 2項に記載の画像処理方法。
2 4 . 前記領域検出ステップにおいて、 前記静動判定手段の判定結果に基づい て、 前記混合領域における前記前景オブジェクトの動き方向後端側に形成される アンカバードバックグラウンド領域が特定されると共に、 前記前景ォプジェク ト の動き方向先端側に形成される力バードバックグラウンド領域が特定される ことを特徴とする請求の範囲第 2 3項に記載の画像処理方法。
2 5 . 時間積分効果を有する所定数の画素を有する撮像素子によって取得され た所定数の画素データからなる画像データから、 現実世界における複数のォプジ エタ トが混ざり合った前記画素データとして取得された混合領域を検出する画像 処理用のプログラムであって、
前記画像データの各フレームを動き補償する動き補償ステップと、
動き補償された各フレームの互いに対応する位置の前記画素データの差分に基 づいて、 前記混合領域を検出する領域検出ステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録され ている記録媒体。
2 6 . 前記領域検出ステップにおいて、 前記差分が閾値以上である場合、 少な くとも前記画素データが属する前記混合領域が検出される
ことを特徴とする請求の範囲第 2 5項に記載の記録媒体。
2 7 . 前記領域検出ステップにおいて、 検出された前記混合領域の時間変化に 基づいて、 時間の変化とともに前景となる前記ォブジェクトの成分が増加する力 バードバックグラウンド領域と、 時間の変化とともに背景となる前記オブジェク トの成分が増加するァンカバードパックグラウンド領域とがさらに検出される ことを特徴とする請求の範囲第 2 6項に記載の記録媒体。
2 8 . 前記領域検出ステップにおいて、 各フレームの前記画素データに対応す る動きべクトルに基づいて、 時間の変化とともに前景となる前記ォブジェクトの 成分が増加するカバードバックグラウンド領域と、 時間の変化とともに背景とな る前記オブジェクトの成分が増加するァンカバードバックグラウンド領域とがさ らに検出される ことを特徴とする請求の範囲第 2 6項に記載の記録媒体。
2 9 . 前記プログラムは、 前記動きべク トルを検出する動きべクトル検出ステ ップをさらに含む
ことを特徴とする請求の範囲第 2 8項に記載の記録媒体
3 0 . 前記プログラムは、 前記オブジェクトの前記画素データにおける混合状 態を示す混合比を算出する混合比算出ステップをさらに含む
ことを特徴とする請求の範囲第 2 5項に記載の記録媒体。
3 1 . 前記プログラムは、 前記混合比を基に、 前記混合領域の前記画素データ から少なくとも前景となる前記ォブジェクトの成分を分離する分離ステップをさ らに含む
ことを特徴とする請求の範囲第 3 0項に記載の記録媒体。
3 2 . 前記プログラムは、 分離された前景となる前記ォブジェクトの成分の動 きボケの量を調整する動きボケ調整ステップをさらに含む
ことを特徴とする請求の範囲第 3 1項に記載の記録媒体。
3 3 . 前記プログラムは、 前記混合比を基に、 所望の他のオブジェクトと分離 された前景となる前記オブジェクトの成分とを合成する合成ステップをさらに含 む
ことを特徴とする請求の範囲第 3 1項に記載の記録媒体。
3 4 . 前記動き補償ステップにおいて、 注目している注目フレームの前記複数 のォブジェク トのうちの背景オブジェク トと、 前記注目フレームの周辺の周辺フ レームの前記背景オブジェクトとの画素位置が同位置となるように、 前記周辺フ レームがシフトされることにより動き補償され、
前記領域検出ステップにおいて、 前記動き補償された前記周辺フレームと前記 注目フレームとの差分に基づいて、 少なくとも前記混合領域が検出される ことを特徴とする請求の範囲第 2 5項に記載の記録媒体。
3 5 . 前記領域検出ステップは、 動き補償された前記周辺フレームと前記注目 フレームとの対応する画素位置の前記画素データ同士の差分に基づいて、 静動判 定を行う静動判定ステップを含み、
前記領域検出ステップにおいて、 前記静動判定手段の判定結果に基づいて、 前 記画素位置に対して、 前記複数のオブジェクトのうちの前景ォブジェクトを構成 する前景オブジェクト成分のみからなる前景領域、 前記背景オブジェクトを構成 する背景オブジェクト成分のみからなる背景領域、 または前記混合領域が検出さ れる
ことを特徴とする請求の範囲第 3 4項に記載の記録媒体。
3 6 . 前記領域検出ステップにおいて、 前記静動判定手段の判定結果に基づい て、 前記混合領域における前記前景ォブジェク トの動き方向後端側に形成される アンカバードバックグラウンド領域が特定されると共に、 前記前景オブジェク ト の動き方向先端側に形成されるカバードバックグラウンド領域が特定される ことを特徴とする請求の範囲第 3 5項に記載の記録媒体。
3 7 . 時間積分効果を有する所定数の画素を有する撮像素子によって取得され た所定数の画素データからなる画像データから、 現実世界における複数のォプジ ェクトが混ざり合った前記画素データとして取得された混合領域を検出するコン ピュータに、
前記画像データの各フレームを動き捕償する動き補償ステップと、
動き補償された各フレームの互いに対応する位置の前記画素データの差分に基 づいて、 前記混合領域を検出する領域検出ステップと
を実行させるプログラム。
3 8 . 前記領域検出ステップにおいて、 前記差分が閾値以上である場合、 少な くとも前記画素データが属する前記混合領域が検出される
ことを特徴とする請求の範囲第 3 7項に記載のプログラム。
3 9 . 前記領域検出ステップにおいて、 検出された前記混合領域の時間変化に 基づいて、 時間の変化とともに前景となる前記オブジェクトの成分が増加する力 バードバックグラウンド領域と、 時間の変化とともに背景となる前記オブジェク トの成分が増加するアンカバードバックグラウンド領域とがさらに検出される ことを特徴とする請求の範囲第 3 8項に記載のプログラム。
4 0 . 前記領域検出ステップにおいて、 各フレームの前記画素データに対応す る動きべク トルに基づいて、 時間の変化とともに前景となる前記オブジェクトの 成分が増加するカバードバックグラウンド領域と、 時間の変化とともに背景とな る前記ォブジェク トの成分が増加するアンカバードバックグラウンド領域とがさ らに検出される
ことを特徴とする請求の範囲第 3 8項に記載のプログラム。
4 1 . 前記動きべクトルを検出する動きべクトル検出ステップをさらに含む ことを特徴とする請求の範囲第 4 0項に記載のプログラム
4 2 . 前記ォブジェクトの前記画素データにおける混合状態を示す混合比を算 出する混合比算出ステップをさらに含む
ことを特徴とする請求の範囲第 3 7項に記載のプログラム。
4 3 . 前記混合比を基に、 前記混合領域の前記画素データから少なくとも前景 となる前記オブジェクトの成分を分離する分離ステツプをさらに含む
ことを特徴とする請求の範囲第 4 2項に記載のプログラム。
4 4 . 分離された前景となる前記オブジェクトの成分の動きボケの量を調整す る動きボケ調整ステップをさらに含む
ことを特徴とする請求の範囲第 4 3項に記載のプログラム。
4 5 . 前記混合比を基に、 所望の他のオブジェクトと分離された前景となる前 記ォブジェク トの成分とを合成する合成ステップをさらに含む
ことを特徴とする請求の範囲第 4 3項に記載のプログラム。
4 6 . 前記動き補償ステップにおいて、 注目している注目フレームの前記複数 のォブジェクトのうちの背景オブジェク トと、 前記注目フレームの周辺の周辺フ レームの前記背景オブジェクトとの画素位置が同位置となるように、 前記周辺フ レームがシフトされることにより動き補償され、
前記領域検出ステップにおいて、 前記動き補償された前記周辺フレームと前記 注目フレームとの差分に基づいて、 少なくとも前記混合領域が検出される ことを特徴とする請求の範囲第 3 7項に記載のプログラム。
4 7 . 前記領域検出ステップは、 動き補償された前記周辺フレームと前記注目 フレームとの対応する画素位置の前記画素データ同士の差分に基づいて、 静動判 定を行う静動判定ステツプを含み、
前記領域検出ステップにおいて、 前記静動判定手段の判定結果に基づいて、 前 記画素位置に対して、 前記複数のォブジェクトのうちの前景オブジェクトを構成 する前景ォブジェクト成分のみからなる前景領域、 前記背景オブジェクトを構成 する背景オブジェクト成分のみからなる背景領域、 または前記混合領域が検出さ れる
ことを特徴とする請求の範囲第 4 6項に記載のプログラム。
4 8 . 前記領域検出ステップにおいて、 前記静動判定手段の判定結果に基づい て、 前記混合領域における前記前景オブジェクトの動き方向後端側に形成される アンカバードバックグラウンド領域が特定されると共に、 前記前景オブジェクト の動き方向先端側に形成されるカバードバックグラウンド領域が特定される ことを特徴とする請求の範囲第 4 7項に記載のプログラム。
4 9 . 時間積分効果を有する所定数の画素を有する撮像素子によって撮像され た被写体画像を、 所定数の画素データからなる画像データとして出力する撮像手 段と、
前記画像データの各フレームを動き補償する動き補償手段と、
動き補償された各フレームの互いに対応する位置の前記画素データの差分に基 づいて、 前記画像データから現実世界における複数のォブジェク トが混ざり合つ て前記画素データとして取得された混合領域を検出する領域検出手段と
を含むことを特徴とする撮像装置。
5 0 . 前記領域検出手段は、 前記差分が閾値以上である場合、 少なくとも前記 画素データが属する前記混合領域を検出する
ことを特徴とする請求の範囲第 4 9項に記載の撮像装置。
5 1 . 前記領域検出手段は、 検出された前記混合領域の時間変化に基づいて、 時間の変化とともに前景となる前記オブジェク トの成分が增加する力バードバッ クグラウンド領域と、 時間の変化とともに背景となる前記オブジェク トの成分が 増加するァンカバードバックグラウンド領域とをさらに検出する
ことを特徴とする請求の範囲第 5 0項に記載の撮像装置。
5 2 . 前記領域検出手段は、 各フレームの前記画素データに対応する動きべク トルに基づいて、 時間の変化とともに前景となる前記オブジェクトの成分が増加 するカバードバックグラウンド領域と、 時間の変化とともに背景となる前記ォブ ジェク トの成分が増加するアンカバードバックグラウンド領域とをさらに検出す る
ことを特徴とする請求の範囲第 5 0項に記載の撮像装置。
5 3 . 前記動きべクトルを検出する動きべクトル検出手段をさらに含む ことを特徴とする請求の範囲第 5 2項に記載の撮像装置
5 4 . 前記ォブジェクトの前記画素データにおける混合状態を示す混合比を算 出する混合比算出手段をさらに含む
ことを特徴とする請求の範囲第 4 9項に記載の撮像装置。
5 5 . 前記混合比を基に、 前記混合領域の前記画素データから少なくとも前景 となる前記オブジェクトの成分を分離する分離手段をさらに含む
ことを特徴とする請求の範囲第 5 4項に記載の撮像装置。
5 6 . 分離された前景となる前記オブジェクトの成分の動きボケの量を調整す る動きボケ調整手段をさらに含む
ことを特徴とする請求の範囲第 5 5項に記載の撮像装置。
5 7 . 前記混合比を基に、 所望の他のオブジェクトと分離された前景となる前 記ォブジェクトの成分とを合成する合成手段をさらに含む
ことを特徴とする請求の範囲第 5 5項に記載の撮像装置。
5 8 . 前記動き補償手段は、 注目している注目フレームの前記複数のオブジェ タトのうちの背景オブジェクトと、 前記注目フレームの周辺の周辺フレームの前 記背景オブジェクトとの画素位置が同位置となるように、 前記周辺フレームをシ フトすることにより動き補償し、
前記領域検出手段は、 前記動き補償された前記周辺フレームと前記注目フレー ムとの差分に基づいて、 少なくとも前記混合領域を検出する
ことを特徴とする請求の範囲第 4 9項に記載の撮像装置。
5 9 . 前記領域検出手段は、 動き補償された前記周辺フレームと前記注目フレ ームとの対応する画素位置の前記画素データ同士の差分に基づいて、 静動判定を 行う静動判定手段を含み、
前記領域検出手段は、 前記静動判定手段の判定結果に基づいて、 前記画素位置 に対して、 前記複数のオブジェクトのうちの前景ォブジェク トを構成する前景ォ ブジェクト成分のみからなる前景領域、 前記背景ォブジェク トを構成する背景ォ ブジェクト成分のみからなる背景領域、 または前記混合領域を検出する
ことを特徴とする請求の範囲第 5 8項に記載の撮像装置。
6 0 . 前記領域検出手段は、 前記静動判定手段の判定結果に基づいて、 前記混 合領域における前記前景オブジェクトの動き方向後端側に形成されるアンカバー ドバックグラウンド領域を特定すると共に、 前記前景ォブジェクトの動き方向先 端側に形成されるカバードバックダラゥンド領域を特定する
ことを特徴とする請求の範囲第 5 9項に記載の撮像装置。
PCT/JP2002/006088 2001-06-20 2002-06-19 Dispositif et procede de traitement d'images, et imageur WO2003001452A1 (fr)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020037002425A KR100864338B1 (ko) 2001-06-20 2002-06-19 화상 처리 장치 및 방법과 촬상 장치
EP02738760A EP1408451B1 (en) 2001-06-20 2002-06-19 Image processing device and method, and imager
US10/362,141 US7612909B2 (en) 2001-06-20 2002-06-19 Image processing apparatus and method, and image-capturing apparatus based on the difference between a signal detected by a sensor and the real world
CA2419670A CA2419670C (en) 2001-06-20 2002-06-19 Image processing device and method, and imager

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2001-186407 2001-06-20
JP2001186407A JP4596216B2 (ja) 2001-06-20 2001-06-20 画像処理装置および方法、記録媒体、並びにプログラム

Publications (1)

Publication Number Publication Date
WO2003001452A1 true WO2003001452A1 (fr) 2003-01-03

Family

ID=19025856

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2002/006088 WO2003001452A1 (fr) 2001-06-20 2002-06-19 Dispositif et procede de traitement d'images, et imageur

Country Status (7)

Country Link
US (1) US7612909B2 (ja)
EP (1) EP1408451B1 (ja)
JP (1) JP4596216B2 (ja)
KR (1) KR100864338B1 (ja)
CN (1) CN1313974C (ja)
CA (1) CA2419670C (ja)
WO (1) WO2003001452A1 (ja)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007066124A (ja) * 2005-09-01 2007-03-15 Hitachi Ltd 背景画像生成方法とその装置及び画像監視システム
CN100466699C (zh) * 2004-12-24 2009-03-04 三星电子株式会社 显示设备及其控制方法

Families Citing this family (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4432274B2 (ja) * 2001-04-12 2010-03-17 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4596219B2 (ja) * 2001-06-25 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4596220B2 (ja) * 2001-06-26 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
CA2420827C (en) * 2001-06-26 2010-03-23 Tetsujiro Kondo Image processing apparatus and method, and image pickup apparatus
JP4596225B2 (ja) * 2001-06-27 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
WO2005079061A1 (ja) * 2004-02-13 2005-08-25 Sony Corporation 画像処理装置と画像処理方法およびプログラム
KR101092287B1 (ko) * 2004-02-13 2011-12-13 소니 주식회사 화상 처리 장치 및 화상 처리 방법
JP4217174B2 (ja) * 2004-02-13 2009-01-28 パナソニック株式会社 動画符号化装置および動画符号化方法
US7483551B2 (en) * 2004-02-24 2009-01-27 Lockheed Martin Corporation Method and system for improved unresolved target detection using multiple frame association
US8331723B2 (en) 2004-03-25 2012-12-11 Ozluturk Fatih M Method and apparatus to correct digital image blur due to motion of subject or imaging device
US7561186B2 (en) 2004-04-19 2009-07-14 Seiko Epson Corporation Motion blur correction
JP2006092156A (ja) * 2004-09-22 2006-04-06 Namco Ltd プログラム、情報記憶媒体及び画像生成装置
US7750943B2 (en) * 2004-12-21 2010-07-06 Sony Corporation Image processing device that removes motion blur from an image and method of removing motion blur from an image
US7710461B2 (en) * 2004-12-21 2010-05-04 Sony Corporation Image processing device, image processing method, and image processing program
JP4872672B2 (ja) * 2004-12-21 2012-02-08 ソニー株式会社 学習装置と学習方法および学習プログラム
US8306336B2 (en) * 2006-05-17 2012-11-06 Qualcomm Incorporated Line or text-based image processing tools
JP4939890B2 (ja) * 2006-10-02 2012-05-30 株式会社東芝 映像符号化装置、映像復号化装置及び映像復号化方法
CN101184235B (zh) * 2007-06-21 2010-07-28 腾讯科技(深圳)有限公司 一种从运动图像中提取背景图像的实现方法及装置
JP4404116B2 (ja) * 2007-08-14 2010-01-27 セイコーエプソン株式会社 画像処理回路、表示装置及び印刷装置
JP4507129B2 (ja) * 2008-06-06 2010-07-21 ソニー株式会社 追尾点検出装置および方法、プログラム、並びに記録媒体
JP4613990B2 (ja) 2008-07-31 2011-01-19 ソニー株式会社 画像処理装置、画像処理方法、プログラム
TWI490819B (zh) * 2009-01-09 2015-07-01 Mstar Semiconductor Inc 影像處理方法及其裝置
CA2783588C (en) * 2009-12-22 2017-06-13 Thomson Licensing Method and apparatus for optimal motion reproduction in stereoscopic digital cinema
JP4915468B2 (ja) * 2010-08-30 2012-04-11 ソニー株式会社 画像処理装置、画像処理方法、プログラム
KR20150078275A (ko) * 2013-12-30 2015-07-08 삼성전자주식회사 움직이는 피사체 촬영 장치 및 방법
US9652833B2 (en) * 2014-03-18 2017-05-16 Honeywell International, Inc. Point spread function estimation for motion invariant images
CN105261032B (zh) * 2014-05-27 2019-05-07 诺基亚技术有限公司 用于处理视频文件中的视频帧的方法和装置
US10147218B2 (en) * 2016-09-29 2018-12-04 Sony Interactive Entertainment America, LLC System to identify and use markers for motion capture
KR101881391B1 (ko) * 2018-03-09 2018-07-25 한화에어로스페이스 주식회사 객체의 특성 정보를 반영하여 프라이버시 마스킹을 수행하는 영상 마스킹 장치
US11301966B2 (en) 2018-12-10 2022-04-12 Apple Inc. Per-pixel filter
US11080861B2 (en) * 2019-05-14 2021-08-03 Matterport, Inc. Scene segmentation using model subtraction
JP7446756B2 (ja) * 2019-10-02 2024-03-11 キヤノン株式会社 画像処理装置、画像処理方法、及びプログラム
CN113129227A (zh) * 2021-03-29 2021-07-16 影石创新科技股份有限公司 图像处理方法、装置、计算机设备和存储介质

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07336688A (ja) * 1994-06-06 1995-12-22 Nippon Hoso Kyokai <Nhk> アンカバー領域の検出方法
JPH10164436A (ja) * 1996-12-04 1998-06-19 Sony Corp 輪郭抽出装置、輪郭抽出方法、キー信号生成装置及びキー信号生成方法
WO1998036577A1 (en) * 1997-02-14 1998-08-20 Nippon Telegraph And Telephone Corporation Predictive coding method and decoding method for dynamic image
EP0933727A2 (en) 1998-01-29 1999-08-04 Canon Kabushiki Kaisha Image information processing apparatus and its method
JP2001181396A (ja) 1999-12-24 2001-07-03 Jsr Corp シロキサン変性重合体粒子およびその製造方法
JP2001181394A (ja) 1999-12-24 2001-07-03 Dainippon Ink & Chem Inc ポリアリーレンスルフィドの製造方法
JP2001250119A (ja) * 1999-12-28 2001-09-14 Sony Corp 信号処理装置および方法、並びに記録媒体
JP2002190016A (ja) * 2000-12-21 2002-07-05 Sony Corp 信号処理装置および方法、並びに記録媒体
JP2002190028A (ja) * 2000-12-21 2002-07-05 Sony Corp 信号処理装置および方法、並びに記録媒体
JP2002190015A (ja) * 2000-12-21 2002-07-05 Sony Corp 画像処理装置および方法、並びに記録媒体
EP1396819A1 (en) 2001-06-15 2004-03-10 Sony Corporation Image processing apparatus and method, and image pickup apparatus

Family Cites Families (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2231752B (en) * 1989-04-27 1993-08-04 Sony Corp Motion dependent video signal processing
EP0497586A3 (en) * 1991-01-31 1994-05-18 Sony Corp Motion detection circuit
JP3123130B2 (ja) * 1991-06-28 2001-01-09 ソニー株式会社 動きベクトル検出装置
JPH05153493A (ja) * 1991-11-27 1993-06-18 Matsushita Electric Ind Co Ltd 映像信号合成装置
JP3036287B2 (ja) * 1992-12-15 2000-04-24 富士ゼロックス株式会社 動画像シーン検出装置
US5499057A (en) * 1993-08-27 1996-03-12 Sony Corporation Apparatus for producing a noise-reducded image signal from an input image signal
KR100235344B1 (ko) * 1994-12-29 1999-12-15 전주범 영역 분할 부호화 방식의 전경/배경 화상 선택 장치
WO1996036168A1 (fr) * 1995-05-12 1996-11-14 Sony Corporation Dispositif generateur de signaux codes, dispositif de formation d'images, procede de generation de signaux codes et procede de formation d'images
JP2952226B2 (ja) * 1997-02-14 1999-09-20 日本電信電話株式会社 動画像の予測符号化方法および復号方法、動画像予測符号化または復号プログラムを記録した記録媒体、および、動画像予測符号化データを記録した記録媒体
JP2000030040A (ja) * 1998-07-14 2000-01-28 Canon Inc 画像処理装置及びコンピュータ読み取り可能な記憶媒体
JP2000331156A (ja) 1999-05-17 2000-11-30 Internatl Business Mach Corp <Ibm> 輪郭に沿うトラッカを自動的に決定するための方法、及び該方法を実施するプログラムを記憶した記憶媒体
CA2646789A1 (en) * 1999-12-28 2001-07-05 Sony Corporation Signal processing device and method, and recording medium
JP3603737B2 (ja) * 2000-03-30 2004-12-22 日本電気株式会社 移動体追尾方法及びその装置
JP4725001B2 (ja) * 2000-08-07 2011-07-13 ソニー株式会社 画像処理装置及び方法、並びに記録媒体
JP4106874B2 (ja) * 2001-02-05 2008-06-25 ソニー株式会社 画像処理装置および方法、並びに記録媒体
JP4596203B2 (ja) * 2001-02-19 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4596215B2 (ja) * 2001-06-19 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4596209B2 (ja) * 2001-06-05 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4660979B2 (ja) * 2001-06-15 2011-03-30 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4660980B2 (ja) * 2001-06-15 2011-03-30 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4596212B2 (ja) * 2001-06-15 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4596214B2 (ja) * 2001-06-15 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4596211B2 (ja) * 2001-06-15 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4596213B2 (ja) * 2001-06-15 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム
JP4596219B2 (ja) * 2001-06-25 2010-12-08 ソニー株式会社 画像処理装置および方法、記録媒体、並びにプログラム

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07336688A (ja) * 1994-06-06 1995-12-22 Nippon Hoso Kyokai <Nhk> アンカバー領域の検出方法
JPH10164436A (ja) * 1996-12-04 1998-06-19 Sony Corp 輪郭抽出装置、輪郭抽出方法、キー信号生成装置及びキー信号生成方法
WO1998036577A1 (en) * 1997-02-14 1998-08-20 Nippon Telegraph And Telephone Corporation Predictive coding method and decoding method for dynamic image
EP0961499A1 (en) 1997-02-14 1999-12-01 Nippon Telegraph and Telephone Corporation Predictive coding method and decoding method for dynamic image
EP0933727A2 (en) 1998-01-29 1999-08-04 Canon Kabushiki Kaisha Image information processing apparatus and its method
JP2001181396A (ja) 1999-12-24 2001-07-03 Jsr Corp シロキサン変性重合体粒子およびその製造方法
JP2001181394A (ja) 1999-12-24 2001-07-03 Dainippon Ink & Chem Inc ポリアリーレンスルフィドの製造方法
JP2001250119A (ja) * 1999-12-28 2001-09-14 Sony Corp 信号処理装置および方法、並びに記録媒体
JP2002190016A (ja) * 2000-12-21 2002-07-05 Sony Corp 信号処理装置および方法、並びに記録媒体
JP2002190028A (ja) * 2000-12-21 2002-07-05 Sony Corp 信号処理装置および方法、並びに記録媒体
JP2002190015A (ja) * 2000-12-21 2002-07-05 Sony Corp 画像処理装置および方法、並びに記録媒体
EP1396819A1 (en) 2001-06-15 2004-03-10 Sony Corporation Image processing apparatus and method, and image pickup apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP1408451A4

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466699C (zh) * 2004-12-24 2009-03-04 三星电子株式会社 显示设备及其控制方法
JP2007066124A (ja) * 2005-09-01 2007-03-15 Hitachi Ltd 背景画像生成方法とその装置及び画像監視システム
JP4618058B2 (ja) * 2005-09-01 2011-01-26 株式会社日立製作所 背景画像生成方法とその装置及び画像監視システム

Also Published As

Publication number Publication date
CA2419670C (en) 2013-04-02
EP1408451B1 (en) 2012-01-18
CN1471691A (zh) 2004-01-28
EP1408451A1 (en) 2004-04-14
CN1313974C (zh) 2007-05-02
JP4596216B2 (ja) 2010-12-08
KR20030028577A (ko) 2003-04-08
EP1408451A4 (en) 2010-11-17
US7612909B2 (en) 2009-11-03
KR100864338B1 (ko) 2008-10-17
US20040081335A1 (en) 2004-04-29
CA2419670A1 (en) 2003-01-03
JP2003006650A (ja) 2003-01-10

Similar Documents

Publication Publication Date Title
WO2003001452A1 (fr) Dispositif et procede de traitement d&#39;images, et imageur
EP1361542B1 (en) Image processing device
JP4596222B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP4596220B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP4596221B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP4507045B2 (ja) 信号処理装置および方法、並びに記録媒体
JP4106874B2 (ja) 画像処理装置および方法、並びに記録媒体
JP4479098B2 (ja) 信号処理装置および方法、並びに記録媒体
WO2002067200A1 (en) Image processing device
JP4596219B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP4596223B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP4840630B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP4596215B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP2002366949A (ja) 画像処理装置および方法、記録媒体、並びにプログラム
JP4596225B2 (ja) 画像処理装置および方法、記録媒体、並びにプログラム
WO2003001456A1 (fr) Appareil et procede de traitement de l&#39;image, et appareil de prise de vue

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): CA CN KR SG US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR

WWE Wipo information: entry into national phase

Ref document number: 2419670

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: 2002738760

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 1020037002425

Country of ref document: KR

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWP Wipo information: published in national office

Ref document number: 1020037002425

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 028027523

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 10362141

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2004106160

Country of ref document: RU

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2004106790

Country of ref document: RU

Kind code of ref document: A

WWP Wipo information: published in national office

Ref document number: 2002738760

Country of ref document: EP