Image processing method and image processing apparatus for obtaining overlaid image
AssigneeNippon Telegraph and Telephone Corporation
InventorsHiroto Matsuoka, Hidenori Sato, Hitoshi Kitazawa
Life of this patent
Estimating the term…
Abstract
Two images P1 and P2 having different backgrounds are input into a transparency calculation processing part AT. The transparency calculation processing part AT obtains a transparency image PT from P1 and P2. Next, noise is removed from the transparency image PT as necessary. A color calculation processing part AC generates a color image PC from P1 and P2. Next, a cutting processing part AR cuts unnecessary parts from the transparency image PT and the color image PC. Finally, an overlaying processing part AS overlays the object O on a background image PZ by using PT, PC and PZ.
Claims38
An image processing method used for an image processing apparatus to overlay an image of an object to another image, said method comprising:
- a step of receiving n images each of which includes said object, wherein n is an integer no less than two, and either or both of color and brightness are different for each of the n images;
- a transparency calculation step of obtaining, from said n images, a transparency image having a transparency value for each pixel;
- a color calculation step of obtaining a color image of said object from said n images;
- and
- an overlaying step of overlaying said object on said another image by using said transparency image and said color image,
- wherein a pixel value of an overlaid image is obtained by
- P
-
-
- S
-
- (
- x
- ,
- y
- )
- =
- P
-
-
- C
-
- (
- x
- ,
- y
- )
- ×
- P
-
-
- T
-
- (
- x
- ,
- y
- )
- +
- (
- 1
- -
- P
-
-
- T
-
- (
- x
- ,
- y
- )
- )
- ×
- 1
- (
- k
- +
- 1
- )
- 2
-
- ∑
- m
- =
- -
- k
- 2
- m
- =
- k
- 2
-
- ∑
- n
- =
- -
- k
- 2
- n
- =
- k
- 2
-
- P
-
-
- Z
-
- (
- x
- +
- m
- ,
- y
- +
- n
- )
- and k=K×PT(x, y), wherein PT(x, y) is a pixel value of said transparency image, PC(x, y) is a pixel value of said color image, and PZ(x, y) is a pixel value of said another image.
An image processing apparatus for overlaying an image of an object on another image, said image processing apparatus comprising:
- a part for receiving n images each of which includes said object, wherein n is an integer no less than two, and either or both of color and brightness are different for each of the n images;
- a part for obtaining, from said n images, a transparency image having a transparency value for each pixel;
- a part for obtaining a color image of said object from said n images;
- and
- a part for overlaying said object on said another image by using said transparency image and said color image,
- wherein a pixel value of an overlaid image is obtained by
- P
-
-
- S
-
- (
- x
- ,
- y
- )
- =
- P
-
-
- C
-
- (
- x
- ,
- y
- )
- ×
- P
-
-
- T
-
- (
- x
- ,
- y
- )
- +
- (
- 1
- -
- P
-
-
- T
-
- (
- x
- ,
- y
- )
- )
- ×
- 1
- (
- k
- +
- 1
- )
- 2
-
- ∑
- m
- =
- -
- k
- 2
- m
- =
- k
- 2
-
- ∑
- n
- =
- -
- k
- 2
- n
- =
- k
- 2
-
- P
-
-
- Z
-
- (
- x
- +
- m
- ,
- y
- +
- n
- )
- and k=K×PT(x, y), wherein PT(x, y) is a pixel value of said transparency image, PC(x, y) is a pixel value of said color image, and PZ(x, y) is a pixel value of said another image.
A computer readable medium storing program code for causing a computer to overlay an image of an object on another image, said computer readable medium comprising:
- program code means for receiving n images each of which includes said object, wherein n is an integer no less than two, and either or both of color and brightness are different for each of the n images;
- transparency calculation program code means for obtaining, from said n images, a transparency image having a transparency value for each pixel;
- color calculation program code means for obtaining a color image of said object from said n images;
- and
- overlaying program code means for overlaying said object on said another image by using said transparency image and said color image,
- wherein, in said overlaying program code means, a pixel value of an overlaid image is obtained by
- P
-
-
- S
-
- (
- x
- ,
- y
- )
- =
- P
-
-
- C
-
- (
- x
- ,
- y
- )
- ×
- P
-
-
- T
-
- (
- x
- ,
- y
- )
- +
- (
- 1
- -
- P
-
-
- T
-
- (
- x
- ,
- y
- )
- )
- ×
- 1
- (
- k
- +
- 1
- )
- 2
-
- ∑
- m
- =
- -
- k
- 2
- m
- =
- k
- 2
-
- ∑
- n
- =
- -
- k
- 2
- n
- =
- k
- 2
-
- P
-
-
- Z
-
- (
- x
- +
- m
- ,
- y
- +
- n
- )
- and k=K×PT(x, y), wherein PT(x, y) is a pixel value of said transparency image, PC(x, y) is a pixel value of said color image, and PZ(x, y) is a pixel value of said another image.
A computer program for causing a computer to overlay an image of an object on another image, said computer program comprising:
- program code means for receiving n images each of which includes said object, wherein n is an integer no less than two, and either or both of color and brightness are different for each of the n images;
- transparency calculation program code means for obtaining, from said n images, a transparency image having a transparency value for each pixel;
- color calculation program code means for obtaining a color image of said object from said n images;
- and
- overlaying program code means for overlaying said object on said another image by using said transparency image and said color image,
- wherein, in said overlaying program code means, a pixel value of an overlaid image is obtained by
- P
-
-
- S
-
- (
- x
- ,
- y
- )
- =
- P
-
-
- C
-
- (
- x
- ,
- y
- )
- ×
- P
-
-
- T
-
- (
- x
- ,
- y
- )
- +
- (
- 1
- -
- P
-
-
- T
-
- (
- x
- ,
- y
- )
- )
- ×
- 1
- (
- k
- +
- 1
- )
- 2
-
- ∑
- m
- =
- -
- k
- 2
- m
- =
- k
- 2
-
- ∑
- n
- =
- -
- k
- 2
- n
- =
- k
- 2
-
- P
-
-
- Z
-
- (
- x
- +
- m
- ,
- y
- +
- n
- )
- and k=K×PT(x, y), wherein PT(x, y) is a pixel value of said transparency image, PC(x, y) is a pixel value of said color image, and PZ(x, y) is a pixel value of said another image.
Dependencies are inferred from the claim text.