Image Processing Device
The image processing device optimizes memory access through multiple line buffers and synchronization management, addressing processing delays in sub-pixel precision image processing by enabling efficient data retrieval and interpolation.
Patent Information
- Application Number
- JP2020193975
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-24
- Publication Date
- 2024-10-03
- Estimated Expiration
- 2040-11-24
AI Technical Summary
Conventional distortion correction methods require excessive memory access, leading to processing delays during sub-pixel precision image processing, particularly in imaging devices using the YUV422 method.
The image processing device employs multiple line buffers and a line buffer control unit to manage synchronization signals, allowing for efficient storage and retrieval of pixel data, including luminance and chrominance components, using a data allocation structure that enables single memory access for pixel data acquisition.
This approach reduces processing delays caused by excessive memory access, enabling sub-pixel precision image processing without affecting the appearance of the final image.
Smart Images

Figure 0007560920000001 
Figure 0007560920000002 
Figure 0007560920000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing device that receives pixel data and a synchronization signal output from an imaging device and performs image processing based on this pixel data. [Background technology]
[0002] In an imaging device, due to the optical characteristics of the lenses that make up the imaging lens, distortion occurs in the subject image formed on the imaging element. This occurs due to distortion as a design value of the lens, manufacturing errors, individual differences, etc. For this reason, the image processing device is provided with a distortion processing section that performs distortion correction on the generated image data by signal processing.
[0003] For example, as described in Patent Document 1, there are known distortion correction methods, such as a method of measuring the amount of distortion in advance and correcting by referring to a LUT (Look Up Table) or a method of making an approximation using a high-order polynomial. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2014-165638 A Summary of the Invention [Problem to be solved by the invention]
[0005] According to the conventional distortion correction method, a line buffer of several lines is required to correct distortion in the sub-scanning direction. Then, the readout of the line buffer is controlled by specifying a pixel data address that is a reference for pixels to be moved by distortion correction, and an interpolation value (intermediate value of pixel data) for the amount of movement of the distortion correction amount less than a pixel unit is output to a pixel interpolation unit as an X correction amount in the horizontal direction of the image and a Y correction amount in the vertical direction of the image. Then, the pixel interpolation unit takes in the source 4-pixel data read out from the line buffer and the interpolation value for the amount of movement of less than a pixel from the distortion correction coordinate calculation unit, calculates the pixel value of the destination by bilinear interpolation, and executes pixel interpolation processing with sub-pixel accuracy.
[0006] By the way, the YUV422 method is known as one of the color representation methods, in which 4 samples of the luminance component (Y) are taken from the 4 pixels of a 2x2 matrix, 1 sample of the difference between the luminance and blue component (chrominance U) from the 2 pixels of the first line, and 1 sample of the difference between the luminance component and red component (chrominance V). According to this YUV422 method, when quantized at 8 bits, the data volume becomes 64 bits for 4 pixels, and 16 bits per pixel.
[0007] When colors are expressed using the above-mentioned YUV422 method, 12-bit data per pixel is output from the imaging device based on this YUV method. Conventionally, when handling a VGA image, for example, input pixel data (Y0, Y1, U0, V0,...) was sequentially stored in one memory 200 with a 1024 x 1024-bit configuration as shown in Fig. 4. For this reason, in order for the image processing device to read out the luminance and color difference components of four pixels, it is necessary to read out the data from one memory four times or at four times the clock speed, which causes a time loss due to excessive memory access and may cause a delay in pixel interpolation processing with sub-pixel accuracy.
[0008] The present invention has been made to solve the above-mentioned problems, and has an object to provide an image processing device which avoids the effect of time loss due to memory access on image processing, and in particular, which solves the processing delay caused by excessive memory access during subpiggle processing. [Means for solving the problem]
[0009] (1) In order to solve the above-mentioned problems, the present invention provides an image processing device that takes in pixel data and a synchronization signal output from an imaging device, and performs image processing based on the pixel data, the image processing device including a first line buffer that stores the pixel data in units of a line, a second line buffer that stores the pixel data in units of a line, a third line buffer that stores the pixel data in units of a line, and a fourth line buffer that stores the pixel data in units of a line, and takes in the synchronization signal based on an input clock, counts the taken in synchronization signal to generate an X-coordinate address and a Y-coordinate address, and calculates each line from the X-coordinate address and the Y-coordinate address. a line buffer control unit that generates a write address for an in-buffer, generates a write enable signal by referring to the least significant bit of each of the X coordinate address and the Y coordinate address to write the pixel data to the first line buffer, the second line buffer, the third line buffer, or the fourth line buffer, generates a read address based on a combination of the least significant bit of the X coordinate address and the Y coordinate address, and reads the pixel data from the first line buffer, the second line buffer, the third line buffer, and the fourth line buffer in synchronization with the clock.
[0010] (2) In the image processing device of the present invention, the pixel data includes a luminance component, a first color difference component, and a second color difference component, the first line buffer includes an even line buffer to which the luminance components of even pixels and the luminance components of odd pixels are independently assigned and written to even lines under the control of the line buffer control unit, and an odd line buffer to which the luminance components of even pixels and the luminance components of odd pixels are independently assigned and written to odd lines under the control of the line buffer control unit, and the second line buffer includes an odd line buffer to which the luminance components of even pixels and the luminance components of odd pixels are independently assigned and written to odd lines under the control of the line buffer control unit. and a second chrominance line buffer to which the second chrominance components of even pixels are assigned and written to the odd lines under control of the line buffer control unit, wherein the first chrominance components of odd pixels are assigned and written to the odd lines for each odd frame in the first chrominance line buffer, and the second chrominance line buffer to which the second chrominance components of odd pixels are assigned and written to the even lines for each odd frame in the second chrominance line buffer.
[0011] (3) In the image processing device of the present invention, the line buffer control unit, when the least significant bit of both the X coordinate address and the Y coordinate address are 0, uses 9 bits excluding the least significant bit for the X coordinate address and 6 bits excluding the least significant bit for the Y coordinate address as the read address, when the least significant bit of the Y coordinate address is 0 and the least significant bit of the X coordinate address is 1, uses the 9 bits excluding the least significant bit for the X coordinate address in the odd line buffer and updates the even line buffer by +1, and uses the 6 bits excluding the least significant bit for the Y coordinate address as the read address, when the least significant bit of the X coordinate address is 0 and the least significant bit of the Y coordinate address is 1 the odd line buffer uses 9 bits excluding the least significant bit for the Y coordinate address, and the odd line buffer uses 9 bits excluding the least significant bit for the Y coordinate address, and the even line buffer updates it by +1 before using it as the read address; when the least significant bits of the X coordinate address and the Y coordinate address are both 1, the odd line buffer uses 9 bits excluding the least significant bit for the X coordinate address, and the even line buffer updates it by +1 before using it; and the odd line buffer uses 9 bits excluding the least significant bit for the Y coordinate address, and the even line buffer updates it by +1 before using it as the read address; and the pixel data is read out from the even line buffer and the odd line buffer.
[0012] (4) An image processing device of the present invention is characterized by comprising: an output data register in which luminance component values I1, I2 of even pixels and odd pixels read out from said even line buffer and luminance component values I3, I4 of even pixels and odd pixels output from said odd line buffer are stored; and an interpolation calculation unit which calculates a luminance value with sub-pixel accuracy from said output data register by obtaining an equation expressed by I=I1*(1-a)*(1-b)+I2*a*(1-b)+13*(1-a)*b+I4*a*b using each of the luminance component values and the decimal point luminance component value (where a is the X correction amount and b is the Y correction amount). Effect of the Invention
[0013] According to the present invention, it is possible to provide an image processing apparatus which avoids the effect of time loss due to memory access on image processing, and in particular which solves the processing delay caused by excessive memory access during subpiggle processing. [Brief description of the drawings]
[0014] [Figure 1] 1 is a block diagram showing a configuration of an image processing device according to an embodiment of the present invention; [Diagram 2] 4 is a diagram showing an example of a data allocation structure of a line buffer when writing pixel data in the image processing device according to the embodiment of the present invention; FIG. [Diagram 3] 4 is a diagram showing an example of a data allocation structure of a line buffer when pixel data is read out in the image processing device according to the embodiment of the present invention; FIG. [Figure 4] FIG. 1 is a diagram showing an example of a data allocation structure of a line buffer when writing pixel data in a conventional image processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, an embodiment of the present invention (hereinafter, referred to as the present embodiment) will be described in detail with reference to the accompanying drawings. Note that the same elements are denoted by the same numbers or symbols throughout the description of the embodiment.
[0016] (Configuration of the embodiment) 1, an image processing device 2 according to this embodiment receives pixel data and a synchronization signal output from an imaging device 1, and performs image processing based on the pixel data. The synchronization signal includes a camera clock (CLK), a horizontal synchronization signal (HSYNC), and a vertical synchronization signal (VSYNC).
[0017] Although the internal structure of the imaging device 1 is not shown in the figure, incident light from a subject is collected on an image sensor consisting of a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor) through an optical system such as a lens, and is then converted into a digital image signal (pixel data) and output.
[0018] The pixel data output from the imaging device 1 is input together with a synchronization signal to an image processing device 2 configured with hardware such as an FPGA (Field Programmable Gate Array), and various types of image processing are performed by the image processing device 2. The image processing includes distortion correction processing for correcting distortion and manufacturing errors due to lens design values, optical distortion due to individual differences, relative positional deviation and rotational deviation between an image sensor and an optical system such as a lens, and deviation due to the relative positions between the cameras in a stereo camera device having multiple cameras. The image data that has been subjected to image processing is input to a microprocessor (not shown) and various types of processing such as image recognition processing are performed.
[0019] The FPGA constituting the image processing device 2 of this embodiment typically has configuration data stored in a non-volatile memory such as a ROM (Read Only Memory) not shown in the figure, and when power is supplied to the FPGA, an operation called configuration is immediately performed to configure the internal circuitry for executing the above-mentioned image processing.
[0020] The image processing device 2 includes a line buffer 20, a timing generator 21, a line buffer control unit 22, an output data register 23, and an interpolation calculation unit 24.
[0021] The line buffer 20 includes at least a line buffer #0 and a line buffer #1, the former (first line buffer) being assigned and used for storing luminance components, and the latter (second line buffer) being assigned and used for storing color difference components. The timing generator 21 counts the clocks when HSYNC output from the imaging device 1 is valid, counts the falling edges of HSYNC, and monitors the rising edges of the frame from VSYNC, outputting the result as a control signal to the line buffer control unit 22.
[0022] The line buffer control unit 22 generates an X-coordinate address and a Y-coordinate address based on various control signals output from the timing generator 21, and generates write addresses for each of the line buffers #0 and #1 from the X-coordinate address and the Y-coordinate address. It then generates a WE signal (write enable signal) by referring to the least significant bit of each of the X-coordinate address and the Y-coordinate address, and performs control to write pixel data output from the imaging device 1 to the line buffer #0 or the line buffer #1. The line buffer control unit 22 also generates a read address based on a combination of the least significant bits of the X-coordinate address and the Y-coordinate address, and performs control to read pixel data from the line buffers #0 and #1 in synchronization with the clock.
[0023] The output data register 23 holds the pixel data read out from the line buffers #0 and #1, respectively, and outputs the data to the interpolation calculation unit 24. Based on the pixel data held in the output data register 23, the interpolation calculation unit 24 performs image processing including distortion correction processing for correcting distortion due to lens design values, manufacturing errors, optical distortion due to individual differences, relative positional deviation and rotational deviation between the image sensor and optical system such as the lens, and deviation due to the relative positions between the cameras in a stereo camera device having multiple cameras.
[0024] (Operation of the embodiment) Hereinafter, the operation of the image processing device 2 according to this embodiment when pixel data output from the imaging device 1 is expressed according to the YUV422 format will be described in detail with reference to FIGS.
[0025] FIG. 2 shows an example of the data allocation structure of line buffers #1 and #2 when writing pixel data. FIG. 2(a) shows the data allocation structure of the luminance component, and FIG. 2(b) shows the data allocation structure of the chrominance component.
[0026] 2(a), the line buffer #0 is assigned a total of four buffer memories, two even-numbered line buffers 20y1 and 20y2 and two odd-numbered line buffers 20y3 and 20y4. The line buffer control unit 22 receives a synchronization signal including HSYNC and VSYNV from the imaging device 1 based on the input clock, counts the received synchronization signal, and generates an X- and Y-coordinate address. Then, it generates a write address for each of the line buffers #0 and #1 from the X- and Y-coordinate address, generates a WE signal by referring to the least significant bit of each of the X- and Y-coordinate addresses, and writes pixel data to the line buffer #0 or the line buffer #1.
[0027] As a result, the luminance components of even pixels and the luminance components of odd pixels are independently assigned to and written into the even lines in the sub-scanning direction in the even line buffers 20y1 and 20y2, and the luminance components of even pixels and the luminance components of odd pixels are independently assigned to and written into the odd line buffers 20y3 and 20y4, respectively.
[0028] As shown in FIG. 2(b), the line buffer #1 is assigned a U-only line buffer 20u (first chrominance line buffer) and a V-only line buffer 20v (second chrominance line buffer). Under the control of the line buffer control unit 22, the U-only line buffer 20u is assigned and written with the U components (first chrominance components) of even pixels to the even lines for each even frame. The V-only line buffer 20v (second chrominance line buffer) is assigned and written with the V components (first chrominance components) of even pixels to the odd lines. The U-only line buffer 20u is further assigned and written with the U components of odd pixels to the odd lines for each odd frame, and the V components of odd pixels to the even lines for each odd frame.
[0029] The operation of reading the luminance component of the pixel data written as described above will be described below. Figure 3 shows an example of the data allocation structure of line buffers #0 and #1 for reading pixel data. Figure 3(a) shows the data allocation structure of the luminance component, and Figure 3(b) shows the data allocation structure of the chrominance component.
[0030] The line buffer control unit 22 reads out luminance components (luminance values) of pixel data from the even line buffers 20y1, 20y2 and odd line buffers 20y3, 20y4 in synchronization with the clock, and reads out color components (color differences) of pixel data from the U-only line buffer 20u and V-only line buffer 20v.
[0031] For example, if the least significant bit of both the X and Y coordinate addresses is "0", the X coordinate address is generated as a read address using 9 bits excluding the least significant bit, and the Y coordinate address is generated as a read address using 6 bits excluding the least significant bit.
[0032] On the other hand, when the least significant bit of the Y coordinate address is 0 and the least significant bit of the X coordinate address is 1, the line buffer control unit 22 uses 9 bits excluding the least significant bit for the odd line buffers 20y3 and 20y4 for the X coordinate address and updates the even line buffers 20y1 and 20y2 by +1 to generate a read address using 6 bits excluding the least significant bit for the Y coordinate address. Then, pixel data is read from the even line buffers 20y1 and 20y2 and the odd line buffers 20y3 and 20y4, respectively, and stored in the output data register 23.
[0033] When the least significant bit of the X coordinate address is 0 and the least significant bit of the Y coordinate address is 1, the line buffer control unit 22 uses 9 bits excluding the least significant bit as the X coordinate address, and uses 9 bits excluding the least significant bit as the Y coordinate address for the odd line buffers 20y3 and 20y4, and updates the even line buffer by +1 to generate the read addresses. Then, pixel data is read from the even line buffers 20y1 and 20y2 and the odd line buffers 20y3 and 20y4, and stored in the output data register 23.
[0034] In addition, when the least significant bit of the X and Y coordinate addresses are both "1", the line buffer control unit 22 uses 9 bits excluding the least significant bit as the X coordinate address for the odd line buffers 20y3 and 20y4, and updates the even line buffers 20y1 and 20y2 by +1. In addition, the odd line buffers 20y3 and 20y4 use 9 bits excluding the least significant bit as the Y coordinate address, and updates the even line buffer by +1 to generate a read address. Then, pixel data is read from the even line buffers 20y1 and 20y2 and the odd line buffers 20y3 and 20y4, and stored in the output data register 23.
[0035] In this way, by reading out the luminance components from the even line buffers 20y1 and 20y2 and the odd line buffers 20y3 and 20y4, respectively, as shown in Fig. 3(a), for example, it becomes possible to read out the luminance components of the four surrounding pixels Y0, Y1, Y2, and Y3.
[0036] Next, the interpolation calculation unit 24 calculates a desired luminance value from the four read luminance values. That is, based on the luminance component values I1, I2 of the even pixels and odd pixels read from the even line buffers 20y1, 20y2 and held in the output data register 23, and the luminance component values I3, I4 of the even pixels and odd pixels read from the odd line buffers 20y3, 20y4 and held in the output data register 23, the interpolation calculation unit 24 calculates a luminance value with sub-pixel accuracy by calculating the formula I=I1*(1-a)*(1-b)+I2*a*(1-b)+13*(1-a)*b+I4*a*b from each luminance component value and the luminance component value after the decimal point (a is the X correction amount, b is the Y correction amount). Then, the final luminance value is calculated by dividing the total value by the resolution of the component in less than a pixel.
[0037] It should be noted that the chrominance components are read out in odd / even line units from the U-dedicated line buffer 20u and the V-dedicated line buffer 20v, respectively, and for the chrominance components that are not saved at the time of reading, they are interpolated using the chrominance components of the adjacent lines above and below, as indicated by the arrows in Figure 3(b), making it possible to express colors without affecting the appearance.
[0038] (Effects of the embodiment) As described above, according to the image processing device 2 of this embodiment, line buffers #0 and #1 (20) are provided to store pixel data in units of lines, and the line buffer control unit 22 captures a synchronous signal based on an input clock, counts the captured synchronous signal to generate an X, Y coordinate address, and generates a write address for line buffers #1 and #2 from the X, Y coordinate address. The line buffer control unit 22 then generates a write enable signal by referring to the least significant bit of each of the generated X, Y coordinate addresses, and writes pixel data to line buffer #0 or line buffer #1. Also, a read address is generated based on a combination of the least significant bits of the X, Y coordinate addresses, and pixel data is read from line buffer #0 and line buffer #1 in synchronization with the clock. With this configuration, necessary pixel data can be obtained in one memory access, and the effect of time loss due to memory access on image processing can be avoided.
[0039] According to the image processing device 2 of the present embodiment, when pixel data includes a luminance component and a color difference component, the line buffer control unit 22 assigns the even line buffers 20y1 and 20y2 and the odd line buffers 20y3 and 20y4 to the line buffer #0. Then, the even line buffers 20y1 and 20y2 are controlled to write the luminance components of even pixels and the luminance components of odd pixels to the even lines independently, and the odd line buffers 20y3 and 20y4 are controlled to assign and write the luminance components of even pixels and the luminance components of odd pixels to the odd lines independently.
[0040] The line buffer control unit 22 also allocates a U-only line buffer 20U (first chrominance line buffer) and a V-only line buffer 20v (second chrominance line buffer) to the line buffer #1. Then, the U-only line buffer 20U allocates and writes the U components (first chrominance components) of even pixels to the even lines for each even frame, and the V-only line buffer 20v allocates and writes the V components of even pixels to the odd lines. The U-only line buffer 20u further allocates and writes the U components of odd pixels to the odd lines for each odd frame, and the V-only line buffer 20v further allocates and writes the V components of odd pixels to the even lines.
[0041] When the least significant bit of both the X and Y coordinate addresses is 0, the line buffer control unit 22 generates a read address using 9 bits excluding the least significant bit for the X coordinate address and 6 bits excluding the least significant bit for the Y coordinate address. When the least significant bit of the Y coordinate address is 0 and the least significant bit of the X coordinate address is 1, the odd line buffers 20y3 and 20y4 use 9 bits excluding the least significant bit for the X coordinate address, and the even line buffers 20y1 and 20y2 use them after updating by +1, and the line buffer control unit 22 generates a read address using 6 bits excluding the least significant bit for the Y coordinate address. Then, the line buffer control unit 22 controls to read out luminance components from the even line buffers 20y1 and 20y2 and the odd line buffers 20y3 and 20y4.
[0042] Furthermore, when the least significant bit of the X coordinate address is 0 and the least significant bit of the Y coordinate address is 1, the line buffer control unit 22 uses 9 bits excluding the least significant bit for the X coordinate address, and for the Y coordinate address, the odd line buffers 20y3 and 20y4 use 9 bits excluding the least significant bit, and for the even line buffers 20y1 and 20y2, update by +1 to generate a read address. Furthermore, when the least significant bits of both the X and Y coordinate addresses are 1, the odd line buffers 20y3 and 20y4 use 9 bits excluding the least significant bit for the X coordinate address, and for the even line buffers 20y1 and 20y2, update by +1 to generate a read address. Then, control is performed to read out the luminance components of pixel data from the even line buffers 20y1 and 20y2 and the odd line buffers 20y3 and 20y4.
[0043] The luminance components of the even pixels and odd pixels read out from the even line buffers 20y1 and 20y2, and the luminance components of the even pixels and odd pixels read out from the odd line buffers 20y3 and 20y4 are held in the output data register 23. Then, based on the pixel data held in the output data register 23, the interpolation calculation unit 24 can calculate a luminance value with sub-pixel accuracy by performing an interpolation calculation using each luminance component value and the luminance component value after the decimal point in accordance with a known correction calculation formula.
[0044] According to the image processing device 2 of this embodiment, by adopting the above-mentioned data allocation structure (memory arrangement), the luminance components of the surrounding four pixels can be obtained with one memory access, so that delays in processing due to excessive memory access during sub-piggle processing can be avoided. In addition, the chrominance components are read out in odd / even line units from each of the U dedicated line buffer 20u and the V dedicated line buffer 20v, and the chrominance components that are not saved at the time of reading are interpolated with the chrominance components of the adjacent lines above and below, thereby enabling color expression that does not affect the appearance.
[0045] In addition, according to the image processing device of this embodiment, only the case where the YUV422 method is used as the color expression method of the pixel data output from the imaging device 1 has been described, but the present invention is not limited to the YUV422 method, and can be similarly applied to cases where colors are expressed by other YUV methods or RGB. Also, according to the image processing device 2 of this embodiment, only the case where the image processing device 2 is configured by an FPGA has been exemplified, but it may also be configured to be realized by an ASIC (Application Specific Integrated Circuit), DSP (Digital Signal Processor), etc.
[0046] Although the present invention has been described above using the embodiments, it goes without saying that the technical scope of the present invention is not limited to the scope described in the above embodiments. It is clear to those skilled in the art that various modifications and improvements can be made to the above embodiments. Furthermore, it is clear from the description of the claims that forms with such modifications or improvements can also be included in the technical scope of the present invention. [Explanation of symbols]
[0047] 1 imaging device, 2 image processing device, 20 line buffer (#0 first line buffer, #1 second line buffer), 20y1, 20y2 even line buffers, 20y3, 20y4 odd line buffers, 20u U dedicated line buffer (first color difference line buffer), 20v V dedicated line buffer (second color difference line buffer), 21 timing generator, 22 line buffer control unit, 23 output data register, 24 interpolation calculation unit
Claims
1. An image processing device that takes in pixel data and a synchronization signal output from an imaging device and performs image processing based on the pixel data, a first line buffer for storing the pixel data in units of a line; a second line buffer for storing the pixel data in units of a line; a line buffer control unit that captures the synchronous signal based on an input clock, counts the captured synchronous signal to generate an X-coordinate address and a Y-coordinate address, generates write addresses for each line buffer from the X-coordinate address and the Y-coordinate address, generates a write enable signal by referring to the least significant bit of each of the X-coordinate address and the Y-coordinate address, writes the pixel data to the first line buffer or the second line buffer, generates a read address based on a combination of the least significant bit of the X-coordinate address and the Y-coordinate address, and reads the pixel data from the first line buffer and the second line buffer in synchronization with the clock; An image processing device comprising:
2. The pixel data is a luminance component, a first chrominance component, and a second chrominance component; The first line buffer comprises: an even line buffer in which the luminance components of even pixels and the luminance components of odd pixels are independently assigned to and written into an even line under the control of the line buffer control unit; an odd-numbered line buffer in which the luminance components of even-numbered pixels and the luminance components of odd-numbered pixels are independently assigned to odd-numbered lines and written under the control of the line buffer control unit; The second line buffer comprises: a first chrominance line buffer in which the first chrominance components of even-numbered pixels are assigned to and written into the even-numbered lines for each even-numbered frame under control of the line buffer controller, and a second chrominance line buffer in which the second chrominance components of even-numbered pixels are assigned to and written into the odd-numbered lines under control of the line buffer controller, 2. The image processing device according to claim 1, further comprising: a first color difference component of an odd pixel allocated to the odd line for each odd frame and written to the first color difference line buffer; and a second color difference component of an odd pixel allocated to the even line for each odd frame and written to the second color difference line buffer.
3. The line buffer control unit When the least significant bits of the X coordinate address and the Y coordinate address are both 0, the 9 bits excluding the least significant bit of the X coordinate address and the 6 bits excluding the least significant bit of the Y coordinate address are used as the read address, when the least significant bit of the Y coordinate address is 0 and the least significant bit of the X coordinate address is 1, the odd line buffer uses 9 bits excluding the least significant bit of the X coordinate address, and the even line buffer uses the X coordinate address after updating it by +1, and the 6 bits excluding the least significant bit of the Y coordinate address are used as the read address; When the least significant bit of the X coordinate address is 0 and the least significant bit of the Y coordinate address is 1, the X coordinate address uses 9 bits excluding the least significant bit, and for the Y coordinate address, the odd line buffer uses 9 bits excluding the least significant bit and the even line buffer uses the address by updating it by +1, and uses the address as the read address; 3. The image processing device according to claim 2, wherein, when the least significant bits of the X coordinate address and the Y coordinate address are both 1, for the X coordinate address, the odd line buffer uses 9 bits excluding the least significant bit and the even line buffer updates the address by +1, and for the Y coordinate address, the odd line buffer uses 9 bits excluding the least significant bit and the even line buffer updates the address by +1 to use as the read address, and the pixel data is read out from the even line buffer and the odd line buffer.
4. 3. The image processing device according to claim 2, further comprising: an output data register in which luminance component values I1, I2 of even pixels and odd pixels read out from said even line buffer and luminance component values I3, I4 of even pixels and odd pixels output from said odd line buffer are stored; and an interpolation calculation unit that calculates a luminance value with sub-pixel accuracy from said output data register by obtaining an equation expressed by I=I1*(1-a)*(1-b)+I2*a*(1-b)+13*(1-a)*b+I4*a*b using each of the luminance component values and decimal luminance component values (a is the amount of X correction, b is the amount of Y correction).
Citation Information
Patent Citations
Data converter, data transfer system, and digital camera
JP2003348616A
Image pickup signal processor
JP2004356974A
Image signal processor and image signal processing method
JP2007088806A
Image processor and device connected to image processor
JP2007124212A
Image processing device, image pickup device, moving body control system, and program
JP2014165638A
