The present application claims priority to Japanese Patent Application No. 2004-200562 filed Jul. 7, 2004 which is hereby expressly incorporated by reference herein in its entirety.
1. Technical Field
The present invention relates to an image signal processing device, particularly to the one having a data conversion circuit.
2. Related Art
It has been common practice for color imaging devices to have an image signal processing device that conducts various kinds of signal processing of image signals captured by image sensors. The image signal processing device converts analog signals received from an image sensor to digital signals, and conducts a prescribed signal processing of the converted digital image signals, so that operations such as display of the captured image in a monitor would be conducted appropriately.
For colored images, a color filter is installed on image sensors. Therefore, the image signal processing device has first conducted a gamma conversion of raw pixel signal data, which is output from the imaging sensor, and subsequently, the data conversion processing of color interpolation has taken place (for example, refer to Japanese Unexamined Patent Publication No. 2002-369034). Moreover, in data conversion processing such as the gamma conversion, etc., the image signal provided with 10 bits, for example, still had 10 bits after the conversion.
In gamma conversion, the characteristics of each color filter are not considered in the conversion processing. More specifically, in case intensity of light received differs for each color due to the characteristics difference between color filters, there is a problem of the error size based on the difference in the light intensity being varied for each color. Therefore, the color interpolation processing, subsequent to the gamma conversion, is conducted on the data that includes the errors of each color that occurred during the gamma conversion. Hence, there has been a problem of the errors of each color, which occurred during the gamma conversion, worsening by the subsequent conversion processing.
Moreover, in case the conversion processing is conducted using table data in gamma conversion etc., the required memory capacity for storing the table data grows if there are many bits per image signal. Therefore, the circuit scale increases, leading to a higher cost of imaging devices. When degradation in image quality can be tolerated, a circuit can be organized in a way to either ignore the last bits of the table data, or round up the most significant bit in the last bits, so that the memory capacity required does not increase. However, in case losing some quality is not tolerated, such a method cannot be employed.
An advantage of the invention is to provide an image signal processing device, wherein the data conversion is conducted without including the errors caused by color difference, and the circuit scale does not increase even if the bit count of an image signal is large.
According to an aspect of the invention, an image signal processing device that conducts a signal processing of an image signal from an image sensor includes: a color interpolation circuit that conducts color interpolation of the image signal in unit of pixels from the image sensor; a data conversion circuit that conducts a prescribed data conversion of the image signal that is color-interpolated by the color interpolation circuit; wherein the data conversion circuit conducts a linear interpolation of digital data, which has a smaller bit count than the digital data of an image signal that is input, based on low-bit data of the digital data.
With such a structure, it is possible to implement the image signal processing device, wherein the data conversion is conducted without including the errors caused by color difference, and the circuit scale does not increase even if the bit count of the image signal is large.
It is preferable that the image signal processing device include: a memory chip where table data is stored, having the high-bit data as first input data and output-data that corresponds to the high-bit data; wherein the linear interpolation is conducted to the output data, based on the low-bit data.
With such a structure, the data conversion using the table data can be easily conducted.
It is preferable that the data conversion circuit in the image signal processing device include an input data generation circuit that generates the first input data, and the second input data whereby +1 is added to the first input data. It is also preferable that the data conversion circuit conduct the linear interpolation between two sets of output data, which correspond to two sets of input data generated by the input data generation circuit, based on the low-bit data.
With such a structure, the two sets of output data required for linear interpolation operation can be easily obtained.
It is preferable that the data conversion circuit in the image signal processing device include: a comparator circuit, which compares the two sets of output data, calculates an interpolated value based on the low-bit data, and adds the interpolated value to one of the two sets of output data based on a comparison result of the comparator circuit, where thereby the linear interpolation is conducted.
With such a structure, it is possible to easily determine, to which of the two sets of the output data, the interpolated value calculated based on the last bits, is added.
Moreover, according to the image signal processing device in the invention, it is desirable that the memory circuit be provided with a rewritable storage chip.
With such a structure, the conversion data corresponding to the characteristics of the display devices etc. can be easily determined.
The embodiment of the invention will now be described with reference to the drawings.
The output signal of the analog-to-digital converter 12, in other words, the digital image signal of each pixel, is input into a color interpolation circuit 13. The color interpolation circuit 13 generates image data for one output pixel, based on a plurality of, in this case, four pixels of digital image signals. The image data for one output pixel is composed of image signals representing three fundamental colors of RGB (red, green, and blue). The color interpolation circuit 13 outputs three image signals, in this case the RGB image signals, into a data conversion circuit 14. Here, the image signals for each color that are output from the color interpolation circuit 13 have a data length of m bits (where “m” is an integer hereafter). For example, m represents 10, and image signals for each color are 10 bits long.
R=R
G=(G1+G2)/2
B=B expression (1)
The data conversion circuit 14 has data conversion circuits 14R, 14G, and 14B that correspond to image signals for each color, so as to conduct data conversion processing of each three image signals. Here, the data conversion circuit used for a data conversion means is a gamma conversion circuit. That is to say, the signal R output from the color interpolation circuit 13 is input into the data conversion circuit 14R. The signal G output from the color interpolation circuit 13 is input into the data conversion circuit 14G. The signal B output from the color interpolation circuit 13 is input into the data conversion circuit 14B. Hence, the color interpolation circuit 13 undertakes the color interpolation of image signals per each pixel from the image sensor 11, and outputs 10-bit image signals for each color.
The color interpolation is conducted on each 10-bit image signal for each color. Subsequently, the gamma conversion is conducted in the data conversion circuit 14, and the signals are output to an output appliance, for example, a monitor, via an interface circuit 15. Here, the converted image data is output into the monitor. However, it may also be output to a conversion circuit that converts the data into other image data formats such as YUV etc., so that image file data is generated.
As shown in
The data conversion circuits 14R, 14G, and 14B shown in
Each of the data conversion circuits 14R, 14G, and 14B in the data conversion circuit 14 substantially has the same structure. Hence, hereafter, the structure of the data conversion circuit 14R will be mainly described, and the description of the structure and the operation for the other two data conversion circuits 14G and 14B will be omitted.
The address generation circuit 21R outputs the first n bits of data (where “n” is an integer hereafter), of the m-bit data that corresponds to the color red (R) from the color interpolation circuit 13, to the RAM 22R. The last 2-bit data is output into the linear interpolation circuit 24R. Here, the value of m is 10, and the value of n is 8. The RAM 22 R is provided with a write-in data input terminal DIN, an address data input terminal ADR, a chip select signal input terminal xEN, a read signal input terminal xRD, a write-in control signal input terminal xWR, and a data output terminal DOUT which the converted signal is output to. As described later, the address generation circuit 21R generates two sets of input data. One is the 8-bit data k, which is the first 8 bits of data in the 10-bit data that is input. The other is the input data (k+1), whose value is larger by +1 than that of the 8-bit data k. The address generation circuit 21R generates these two sets of output data, which enable to easily attain the data necessary for conducting the linear interpolation described later.
Table data for conducting prescribed data conversion of the input image signal is stored in the RAM 22R. More specifically, the table data stores the output data that corresponds to the input data later shown in
Here, the table data is stored in the RAM 22R, wherein the 8 bits of input data and the corresponding 8 bits of output data are arranged as a table of data. In other words, the RAM 22R conducts data conversion, by outputting the 8-bit image signal as output data that corresponds to the 8-bit image data input from the address generation circuit 21R. In the data conversion circuit 14R, the data conversion can be easily conducted since the table data is used for the data conversion. The image signal input into the data conversion circuit 14R is provided with the 10-bit data, while the first 8 bits are converted by the RAM 22R, which is less than the bit count of the image signal's digital data. The conversion precision declines because of those missing last 2 bits. However, as will be described later, the linear interpolation of the RAM 22R's output data is conducted based on the last 2-bit data. As described, the table data is provided with the high-bit data of the image signal, and the output data that corresponds to the high-bit data.
In
The comparator circuit 23R receives two 8-bit image signals from the RAM 22R, as will be described later. The comparator circuit 23R compares the size of two the image signals received, and outputs result information that shows the comparison result thereof, as well as the two 8-bit image signals, into the line interpolation circuit 24R.
The linear interpolation circuit 24R conducts a linear interpolation of the two sets of output data that correspond to the two sets of input data, using the two 8-bit image signals and comparison result information from the comparator circuit 23R, and the last 2-bit data from the address generation circuit 21R.
As shown in
The address generation circuit 21R provides the 8-bit data k that corresponds to the first 8 bits of the 10-bit image signal, and the input data (k+1) whose value is larger by +1 than that of the 8-bit data k, to the RAM 22R. At the same time, the address generation circuit 21R provides the read signal to the RAM 22R twice. The RAM 22R reads out the output data that corresponds to two sets of 8-bit input data k and k+1, and outputs it to the comparator circuit 23R. The comparator circuit 23R, latches the two sets of output data output from the RAM 22R to a register, and compares them. It thus outputs the data that shows the size relations between the two sets of output data, in other words, the comparison result information, to the linear interpolation circuit 24R.
The address generation circuit 21 generates input data “33”, whose value is larger by +1 than the input data “32” represented by the upper 8 bits, and provides it to the RAM 22R. Thus the RAM 22R also outputs “124” corresponding to “33”.
The comparator circuit 23R compares the two sets of output data “120” and “124”, and determines that the output data for input data “33” is larger than that of “32”. The linear interpolation circuit 24R calculates the interpolated value for the output data “120”, based on the comparison result information, whereby the larger data is determined, and on the lower 2 bits data. It subsequently adds the interpolated value to the output data. Consequently, the linear interpolation circuit 24R has a circuit that adds the interpolated value to the output data. The data corresponds to the input data (8-bit data k), if, when that input data is increased by +1, the input data (8-bit data k+1) which is increased by +1, is determined to be larger than the input data (8-bit data k).
If the last 2 bits are “00”, then the interpolated value is “0”. If the last 2 bits are “01”, then the interpolated value is “(124−120)*¼”, if the last 2 bits are “10”, then the interpolated value is “(124−120)* 2/4”, and if the last 2 bits are “11”, then the interpolated value is “(124−120)*¾”. As described, the linear interpolation circuit 24R calculates the interpolated value based on the last 2 bits of data, adds that interpolated value to the output data “120”, and performs interpolation so that the output data becomes smooth. An 8-bit linear interpolated red image signal (R′) is output from the linear interpolation circuit 24R.
As shown in
As shown in
If the last 2 bits are “11” then the interpolated value is “0”. If the last 2 bits are “01”, then the interpolated value is “(220−217)*¾”, if the last 2 bits are “10”, then the interpolated value is “(220−217)* 2/4”, and if the last 2 bits are “11”, then the interpolated value is “(220−217)*¼”. As described, the linear interpolation circuit 24R calculates the interpolated value based on the last 2 bits of data, adds that interpolated value to the output data “217”, and performs interpolation so that the output data becomes smooth.
If the interpolated value, attained by dividing the two data points to 2 sets of 8-bit output data, is not an integer but a decimal, then the linear interpolation circuit 24R rounds it off to a whole number. For example, the linear interpolation circuit 24R processes the value for “217+((220−217)*¾)+219.125” to “219”.
As described above, based on the comparison result information of the comparator circuit 23R, it is determined to which of the two sets of output data the interpolated value is added, and the interpolated value is added to one of the two. Consequently, if the parameter is set with a negative slope as shown in
As described, in the case of attaining 8 bits of converted image signal out of the 10-bit image signal, 10 bit*1024 words (10 k bits) of memory capacity was conventionally necessary, while in the embodiment, 8 bits*256 words (2 k bits) memory capacity is sufficient. Therefore, the circuit scale is decreased and the cost can be reduced. In comparison to the conventional case where only the upper 8 bits are used, the embodiment enables to attain the smooth converted image, thus the image quality is retained when displayed, for example, on the display device.
Consequently, with the image signal processing device in the embodiment, it is possible to implement the image signal processing device that does not enlarge the circuit scale, even if the bit count of image signal is large.
In the above description, the color interpolation method is explained using RGB color interpolation. However, in the invention, the color interpolation for complementary colors (Cy, Mg, Y) may also be employed.
Moreover, in the above description, the gamma conversion is used for the data conversion processing subsequent to the color interpolation. However, the data conversion processing that requires individual adjustments, such as lens shading correction or correction of chromatic aberration, may also be employed.
Still further, in the above, RAM is used in the example as a rewritable storage chip, while the flash ROM etc. may also be employed.
The invention shall not be limited to the above-mentioned embodiment, and it is intended that within the main scope of the invention, various other kinds of modifications and alternation etc., is possible.
Number | Date | Country | Kind |
---|---|---|---|
2004-200562 | Jul 2004 | JP | national |