Image processing device, image processing method, and data structure of image file
Thresholds b 1 , b 2 , b 3 , and b 4 are set in the luminance of a raw image. In an image 84 a of the lowermost layer, the region in which the luminance is equal to or higher than b 1 is left. In an image 84 b over it, the region in which the luminance is equal to or higher than b 2 is left. In an image 84 c over it, the region in which the luminance is equal to or higher than b 3 is left. In an image 84 d of the uppermost layer, the region in which the luminance is equal to or higher than b 4 is left. In each of these images, the alpha value of the other region is set to 0. The images are integrated with the color information of the raw image to generate final slice images. A display image is generated by stacking the generated slice images sequentially from the lowermost layer at predetermined intervals and performing drawing according to the point of sight.
1. An image processing device for converting an input two-dimensional raw image to an image viewed with a stereoscopic effect, the image processing device comprising:
a making-region-transparent information generator that calculates a height from an image plane for an object represented in two-dimensions in an input two-dimensional raw image and identifies a region reaching a slice plane set about the height to generate information to make a region other than the region transparent
wherein the input two-dimensional raw image is an image in which pixels are arranged in a two-dimensional plane, with each pixel having associated color information; and
an image drawing section that displays a three-dimensional image obtained by giving a stereoscopic effect to the two-dimensional raw image by drawing, according to a position of a point of sight, a three-dimensional object made by stacking slice images in which part of the two-dimensional raw image is made transparent by using the information to make the region transparent over the raw image in a three-dimensional space according to the height of the slice plane that corresponds,
wherein the slice images are two-dimensional images obtained from the input two-dimensional raw image.
2. The image processing device according to claim 1 , wherein the making-region-transparent information generator indirectly decides the slice plane by setting a threshold in a predetermined parameter obtained from the input two-dimensional raw image in units of pixel.
3. The image processing device according to claim 2 , wherein the making-region-transparent information generator sets a threshold in luminance of each pixel of the input two-dimensional raw image.
4. The image processing device according to claim 2 , wherein the making-region-transparent information generator decides distribution of the threshold in association with a result obtained by tallying up the predetermined parameter and executing statistical processing.
5. The image processing device according to claim 2 , wherein the making-region-transparent information generator divides the input two-dimensional raw image into a plurality of blocks and then tallies up the predetermined parameter and executes statistical processing for each of the blocks, and the making-region-transparent information generator changes the threshold that is set depending on a position in the image plane in such a manner that the threshold corresponds to a result of the statistical processing.
6. The image processing device according to claim 5 , wherein the image drawing section changes an interval of stacking of the slice images depending on the position in the image plane in such a manner that the interval corresponds to the result of the statistical processing.
7. The image processing device according to claim 1 , wherein the image drawing section stacks the slice images after deploying the slice images on polygon meshes generated with setting of concavity and convexity based on information on height distribution obtained in association with the raw image.
8. The image processing device according to claim 1 , wherein the making-region-transparent information generator includes, in the information to make the region transparent, information to set a boundary region at a boundary between the region reaching the slice plane set about the height and the other region and change transparency in such a manner that the transparency is interpolated in the boundary region.
9. The image processing device according to claim 1 , wherein the making-region-transparent information generator changes transparency of the region reaching the slice plane set about the height according to the height.
10. An image processing device comprising:
an image data acquirer that acquires a two-dimensional raw image from a digital camera,
wherein the two-dimensional raw image is an image in which pixels are arranged in a two-dimensional plane, with each pixel having associated color information; and
a slice image generator that calculates height from an image plane for an object represented in two-dimensions in the two-dimensional raw image and identifies a region reaching a slice plane set about the height to generate slice images that are obtained by making a region other than the region transparent and are to display a three-dimensional image obtained by giving a stereoscopic effect to the two-dimensional raw image by being stacked over the two-dimensional raw image in a three-dimensional space according to height of the slice plane that corresponds to perform drawing according to a position of a point of sight,
wherein the slice images are two-dimensional images obtained from the two-dimensional raw image.
11. An image processing method comprising:
reading out data of a two-dimensional raw image from a storage device, and calculating a height from an image plane for an object represented in two-dimensions in the two-dimensional raw image, and identifying a region reaching a slice plane set about the height to generate information to make a region other than the region transparent,
wherein the two-dimensional raw image is an image in which pixels are arranged in a two-dimensional plane, with each pixel having associated color information; and
displaying a three-dimensional image obtained by giving a stereoscopic effect to the two-dimensional raw image on a display device by drawing, according to a position of a point of sight, a three-dimensional object made by stacking slice images in which part of the two-dimensional raw image is made transparent by using the information to make the region transparent over the raw image in a three-dimensional space according to height of the slice plane that corresponds,
wherein the slice images are two-dimensional images obtained from the input two-dimensional raw image.
12. A non-transitory computer-readable recording medium in which a computer program for a computer is recorded, the computer program comprising:
calculating a height from an image plane for an object represented in two-dimensions in an input two-dimensional raw image and identifying a region reaching a slice plane set about the height to generate information to make a region other than the region transparent,
wherein the input two-dimensional raw image is an image in which pixels are arranged in a two-dimensional plane, with each pixel having associated color information; and
displaying a three-dimensional image obtained by giving a stereoscopic effect to the input two-dimensional raw image by drawing, according to a position of a point of sight, a three-dimensional object made by stacking slice images in which part of the input two-dimensional raw image is made transparent by using the information to make the region transparent over the raw image in a three-dimensional space according to height of the slice plane that corresponds,
wherein the slice images are two-dimensional images obtained from the input two-dimensional raw image.