Portable telephone, image converter, control method and program
View Patent ↗Simple pseudo gradation conversion technique suitable for implementation in portable devices such as mobile phones employing a relatively low-speed processor. Target image is represented with 2 Cn gradation levels for n kinds of color components (where Cn is a natural number for each color component, and n is a natural number) per pixel. Image information acquisition unit ( 51 ) acquires image information representing an original image subjected to conversion from camera front end ( 40 ) and modulation/demodulation unit ( 61 ). Color space conversion unit 55 converts luminance color difference information, if the original image is represented thereby, into color component information. Quantization unit ( 54 ) quantizes the color component information into (2 (Cn+1) −1) gradation values for each color component. Color determination unit ( 56 ) determines one-half of the quantized value as a target value, if the quantized value is an even number, and if an even number, one of the two integers preceding and following that half value is determined as a target value according to a pixel position so that those integers are arranged checkerwise.
1. An image conversion device for obtaining, based on an original image composed of a plurality of pixels, a target image composed of a same number of pixels as that of the original image and is represented by pseudo gradation,
where for colors assigned to the pixels in the target image, each of n kinds of color components is represented with 2 Cn gradation levels, the n being a natural number, and the Cn being a natural number for each of the color components,
the image conversion device comprising:
a quantization unit operable to quantize each of the color components for the original image into 2 (Cn+1) −1 gradation values; and
a color determination unit operable, for each of the pixels on a basis of a correspondence of the pixels in the original image to the pixels in the target image, to divide by two each of a quantized value resulting from the quantization and the quantized value plus one, in accordance with a position of each of the pixels, so as to obtain each quotient, and to set the quotient for each of the color components for the pixels in the target image.
2. The image conversion device of claim 1 , wherein
for the colors assigned to the pixels in the target image, each of the color components red, green, and blue are represented with 2 5 , 2 6 , and 2 5 gradation levels, respectively;
the quantization unit obtains quantized values R q , G q , and B q using formulae (i) in an order of appearance, assuming that the colors of the pixels in the target image are represented by eight-bit values R 8 , G 8 , and B 8 for the color components red, green, and blue, respectively,
(( R 8 <<6)− R 8 )>>8
(( G 8 <<7)− G 8 )>>8
(( B 8 <<6)− B 8 )>>8, (i)
where << represents a left-bit shift operation, >> represents a right-bit shift operation; and
the color determination unit obtains five-bit value R 5 , six-bit value G 6 , and five-bit value B 5 for red, green, and blue, respectively, of the pixels in the target image on the basis of the correspondence of the pixels, using a formula (ii), assuming that X and Y represent X and Y coordinate values, respectively, that indicate the position of each of the pixels,
( R q +(( X+Y )&0 x 01))>>1
( G q +(( X+Y )&0 x 01))>>1
( B q +(( X+Y )&0 x 01))>>1, (ii)
where >> represents the right-bit shift operation, and & a logical product.
3. The image conversion device of claim 2 , wherein
the quantization unit includes a color space conversion unit operable to obtain the color component values R 8 , G 8 , and B 8 for the color components red, green, and blue, respectively, using formulae (iii) in the order of appearance, assuming that colors assigned to the pixels in the original image are represented by Y, U, and V, which denote brightness, and two color differences, and U−128 is U 0 , and V−128 is V 0 ,
Y+ (( V 0 *357)>>8)
Y− (( U 0 *87)>>8)−(( V 0 *182)>>8)
Y+ (( U 0 *451)>>8), (iii)
where >> represents the right-bit shift operation, and
from the R 8 , G 8 , and B 8 values, the quantization unit obtains the quantized values R 5 , G 6 , and B 5 , respectively.
4. A mobile phone capable of displaying an image, comprising:
an image acquisition unit operable to acquire an original image;
the image conversion device of claim 1 for obtaining the target image based on the original image; and
a display unit operable to display the target image.
5. The mobile phone of claim 4 , further comprising:
an image capture unit, from which the image acquisition unit acquires the original image.
6. The mobile phone of claim 4 , wherein
the image conversion device is connected to the display unit using a bus for transferring data on a 16-bit basis, and the bus transfers the 16-bit data formed by sequencing the color component values for one pixel that are obtained by the image conversion device.
7. An image conversion method for obtaining, based on an original image composed of a plurality of pixels, a target image composed of a same number of pixels as that of the original image and is represented by pseudo gradation, wherein
for colors assigned to the pixels in the target image, each of n kinds of color components is represented with 2 Cn gradation levels, the Cn being a natural number for each of the color components, and the n being a natural number,
the image conversion method comprising the steps of:
quantizing each of the color components for the original image into 2 (Cn+1) −1 gradation values; and
for each of the pixels on a basis of a correspondence of the pixels in the original image to the pixels in the target image, determining, by a processing unit, each of the colors assigned to the pixels in the target image by dividing by two each of a quantized value resulting from the quantization and the quantized value plus one, in accordance with a position of each of the pixels, so as to obtain each quotient, and setting the quotient for each of the color components for the pixels in the target image.
8. The image conversion method of claim 7 , wherein
for the colors of the pixels in the target image, each of the color components red, green, and blue is represented with 2 5 , 2 6 , and 2 5 gradation levels, respectively,
the quantization step obtains quantized values R q , G q , and B q using formulae (iv) in an order of appearance, assuming that colors assigned to the pixels in the original image are represented by eight-bit values R 8 , G 8 , and B 8 for the color components red, green, and blue, respectively,
(( R 8 <<6)− R 8 )>>8
(( G 8 <<7)− G 8 )>>8
(( B 8 <<6)− B 8 )>>8, (iv)
where << represents a left-bit shift operation, and >> represents a right-bit shift operation; and
the color determination step obtains five-bit value R 5 , six-bit value G 6 , and five-bit value B 5 for red, green, and blue, respectively, of the pixels in the target image on the basis of the correspondence of the pixels, using formulae (v) in the order of appearance,
( R q +(( X+Y )&0 x 01))>>1
( G q +(( X+Y )&0 x 01))>>1
( B q +(( X+Y )&0 x 01))>>1, (v)
where >> represents the right-bit shift operation, and & the logical product.
9. The image conversion method of claim 8 , wherein
the quantization step includes a substep of converting a color space by obtaining the color component values R 8 , G 8 , and B 8 for the color components red, green, and blue, respectively, using formulae (vi) in the order of appearance, assuming that the colors of the pixels in the original image are represented by Y, U, and V, which denote brightness, and two color differences, and U−128 is U 0 , and V−128 is V 0 ,
Y+ (( V 0 *357)>>8)
Y− (( U 0 *87)>>8)−(( V 0 *182)>>8)
Y+ (( U 0 *451)>>8), (vi)
where >> represents the right-bit shift operation.
10. A control method for use in a mobile phone equipped with an image display function, comprising the steps of:
acquiring an original image;
converting the original image acquired into a target image using the image conversion method set forth in claim 7 ; and
displaying the target image.
11. The control method of claim 10 , wherein
the mobile phone includes an image capture function, and using the image capture function, the image acquisition step acquires the original image.
12. The control method of claim 10 , wherein
the mobile phone includes a display device that is connected to a bus for transferring data on a 16-bit basis,
the image conversion step generates, using the image conversion method, image data with which the target image is represented on a basis of 16 bits per pixel,
the control method further comprises a step of
transferring the image data to the display device on the basis of 16 bits per pixel via the bus, and
the display step displays the target image that is represented by the image data transferred.
13. A computer-readable medium storing instructions thereon for, when executed by a processor, converting an image, the instructions enabling the computer to execute each of the steps set forth in claim 7 .
14. A computer-readable medium storing instructions thereon for, when executed by a processor, controlling a mobile phone equipped with an image display function, the instructions enabling the computer to execute each of the steps set forth in claim 10 .
15. A mobile phone capable of displaying an image, comprising:
an image acquisition unit operable to acquire an original image;
the image conversion device of claim 2 for obtaining the target image based on the original image; and
a display unit operable to display the target image.
16. A mobile phone capable of displaying an image, comprising:
an image acquisition unit operable to acquire an original image;
the image conversion device of claim 3 for obtaining the target image based on the original image; and
a display unit operable to display the target image.
17. The mobile phone of claim 15 , further comprising:
an image capture unit, from which the image acquisition unit acquires the original image.
18. The mobile phone of claim 16 , further comprising:
an image capture unit, from which the image acquisition unit acquires the original image.
19. The mobile phone of claim 15 , wherein
the image conversion device is connected to the display unit using a bus for transferring data on a 16-bit basis, and
the bus transfers the 16-bit data formed by sequencing the color component values for one pixel that are obtained by the image conversion device.
20. The mobile phone of claim 16 , wherein
the image conversion device is connected to the display unit using a bus for transferring data on a 16-bit basis, and
the bus transfers the 16-bit data formed by sequencing the color component values for one pixel that are obtained by the image conversion device.
21. A control method for use in a mobile phone equipped with an image display function, comprising the steps of:
acquiring an original image;
converting the original image acquired into a target image using the image conversion method set forth in claim 8 ; and
displaying the target image.
22. A control method for use in a mobile phone equipped with an image display function, comprising the steps of:
acquiring an original image;
converting the original image acquired into a target image using the image conversion method set forth in claim 9 ; and
displaying the target image.
23. The control method of claim 21 , wherein
the mobile phone includes an image capture function, and using the image capture function, the image acquisition step acquires the original image.
24. The control method of claim 22 , wherein
the mobile phone includes an image capture function, and using the image capture function, the image acquisition step acquires the original image.
25. The control method of claim 21 , wherein
the mobile phone includes a display device that is connected to a bus for transferring data on a 16-bit basis,
the image conversion step generates, using the image conversion method, image data with which the target image is represented on a basis of 16 bits per pixel,
the control method further comprises a step of
transferring the image data to the display device on the basis of 16 bits per pixel via the bus, and
the display step displays the target image that is represented by the image data transferred.
26. The control method of claim 22 , wherein
the mobile phone includes a display device that is connected to a bus for transferring data on a 16-bit basis,
the image conversion step generates, using the image conversion method, image data with which the target image is represented on a basis of 16 bits per pixel,
the control method further comprises a step of
transferring the image data to the display device on the basis of 16 bits per pixel via the bus, and
the display step displays the target image that is represented by the image data transferred.
27. A computer-readable medium storing instructions thereon for, when executed by a processor, converting an image, the instructions enabling the computer to execute each of the steps set forth in claim 8 .
28. A computer-readable medium storing instructions thereon for, when executed by a processor, converting an image, the instructions enabling the computer to execute each of the steps set forth in claim 9 .
29. A computer-readable medium storing instructions thereon for, when executed by a processor, controlling a mobile phone equipped with an image display function, the instructions enabling the computer to execute each of the steps set forth in claim 21 .
30. A computer-readable medium storing instructions thereon for, when executed by a processor, controlling a mobile phone equipped with an image display function, the instructions enabling the computer to execute each of the steps set forth in claim 22 .