The present invention relates to a video processing apparatus for performing a shading correction of an image signal.
As a technology for shading correction, there has been known a video processing apparatus which is shown in
The conventional video processing apparatus is adapted to calculate correction gains of pixels from correction data Pc of block Bk on amount of light on the basis of four-point linear interpolation method of performing, as shown in
patent document 1: Jpn. unexamined patent publication No. 2001-275029 (pages 11-14 and
The conventional video processing apparatus is adapted to perform the correction for light falloff at edges. However, the conventional video processing apparatus is not adapted to perform the correction for dark shading depending on characteristics of an imaging element.
The conventional video processing apparatus, however, encounters such a problem that the image tends to be deteriorated by boundary lines of blocks under the condition that the image is divided into relatively large blocks, resulting from the fact that the four-point linear interpolation method is inferior in accuracy. On the other hand, the amount of correction values of blocks is increased under the condition that the image is divided into relatively small blocks.
It is, therefore, an object of the present invention to provide a video processing apparatus which can perform separately two shading corrections including a dark shading correction of an image and a peripheral shading correction for light falloff at edges of the image, and can calculate, with accuracy, correction gains corresponding to respective pixels from the correction values of blocks through first and second interpolations without being increased in circuit size.
The video processing apparatus according to the present invention, comprises: an imaging element for producing an image of an object; a correction value storage unit having stored therein correction values of blocks each of which forms part of the image produced by the imaging element; a correction gain interpolating unit for calculating a correction gain of a designated pixel of the imaging element by performing an interpolation on the basis of correction values corresponding to blocks which are in the vicinity of the designated pixel; a dark shading correction unit for performing a dark shading correction of the image on the basis of the correction gain calculated by the correction gain interpolating unit; and a peripheral shading correction unit for performing a peripheral shading correction for light falloff at edges of the image on the basis of the correction gain calculated by the correction gain interpolating unit.
The video processing apparatus thus constructed as previously mentioned can reduce the amount of correction values by reason that the correction gain interpolating unit is adapted to calculate a correction gain of each pixel from the collection values of blocks by performing an interpolation on the basis of correction values of blocks, and perform separately two shading corrections by comprising two correction units for dark shading of image and light falloff at edges of image.
In the video processing apparatus according to the present invention, the correction gain interpolating means may have a first correction gain calculating function of calculating a first correction gain by performing four-point linear interpolation on the basis of four correction values including a correction value corresponding to a block including the designated pixel, and correction values corresponding to blocks which are in the vicinity of the block including the designated pixel, and a second correction gain calculating function of calculating a second correction gain by performing a second interpolation on the basis of the first correction gain.
The video processing apparatus thus constructed as previously mentioned can calculate, with accuracy, correction gains of pixels from the correction values of blocks in comparison with the conventional video processing apparatus without being affected by boundary lines between blocks by reason that the interpolated correction values are firstly calculated from the correction values of blocks through the four-point linear interpolation in the first stage, the correction gains of pixels are then calculated from the interpolated correction values through the second interpolation in the second stage.
In the video processing apparatus according to the present invention, the correction values of blocks stored in the correction value storage unit may include correction values for the dark shading correction and correction values for the peripheral shading correction.
The video processing apparatus thus constructed as previously mentioned can have correction values of blocks corresponding to each shadings by reason that the correction values of blocks for the dark shading correction and the correction values of blocks for the peripheral shading correction are separately stored in the correction value storage unit.
In the video processing apparatus according to the present invention, the correction values of blocks stored in the correction value storage unit may include correction values for the dark shading correction, and corresponding to the blocks of the image, and correction values for the peripheral shading correction.
The video processing apparatus thus constructed as previously mentioned can be improved in construction by reason that the correction gain interpolating unit is adapted to perform the interpolations on the basis of the correction values of blocks for the dark shading correction, and the interpolations on the basis of the correction values of blocks for the peripheral shading correction, the dark sharing and peripheral sharing correction units are adapted to share the correction gain interpolating unit.
In the video processing apparatus according to the present invention, the imaging element may have a plurality of color filters regularly arranged in a specific order, and corresponding to the respective pixels.
The video processing apparatus thus constructed as previously mentioned can perform the correction on the basis of the type of the color filter of each pixel by reason that the imaging element has a plurality of color filters regularly arranged in a specific order, and corresponding to the respective pixels.
In the video processing apparatus according to the present invention, the correction value storage unit may have correction values corresponding to primary colors of the color filters, and corresponding to the blocks.
The video processing apparatus thus constructed as previously mentioned can perform the correction on the basis of the correction values corresponding to primary colors of the color filters by reason that the correction value storage unit has correction values corresponding to primary colors of the color filters, and corresponding to the blocks.
In the video processing apparatus according to the present invention, the correction gain interpolating unit may be adapted to calculate a correction gain on the basis of the correction values corresponding to primary colors of the color filters.
The video processing apparatus thus constructed as previously mentioned can perform the interpolation on the basis of the correction values corresponding to primary colors of the color filters by reason that the correction gain interpolating unit is adapted to calculate a correction gain on the basis of the correction values corresponding to primary colors of the color filters.
In the video processing apparatus according to the present invention, the dark shading and peripheral shading correction units may be adapted to perform a color shading correction of the image on the basis of the correction values corresponding to primary colors of the color filters.
The video processing apparatus thus constructed as previously mentioned can perform the color shading correction on the basis of the correction values corresponding to primary colors of the color filters.
In the video processing apparatus according to the present invention, the correction value storage unit may have communication means for receiving latest correction values corresponding to the blocks from an external apparatus, and updating the previous correction values of blocks with the latest correction values of blocks.
The video processing apparatus thus constructed as previously mentioned can update the correction values of blocks if necessary, and perform, with accuracy, the shading corrections on the basis of the updated correction values by reason that the correction value storage unit has communication means for receiving latest correction values corresponding to the blocks from an external apparatus, and updating the previous correction values of blocks with the latest correction values of blocks.
In the video processing apparatus according to the present invention, the correction gain interpolating unit may be adapted to adjust in size the blocks on the basis of the size of the image to calculate correction values corresponding to the adjusted blocks, and to calculate a correction gain on the basis of correction values corresponding to the blocks adjusted in size.
The video processing apparatus thus constructed as previously mentioned can perform, with accuracy, the corrections without being affected by the size of the image produced by the imaging element, and without updating the correction values of blocks on the basis of the size of the image produced by the imaging element.
In the video processing apparatus according to the present invention, the correction gain interpolating unit may be adapted to calculate a correction gain by performing an interpolation on the basis of an interpolation method corresponding to arbitrarily defined blocks.
The video processing apparatus thus constructed as previously mentioned can selectively use the interpolation methods in each block.
In the video processing apparatus according to the present invention, the correction gain interpolating unit may be adapted to calculate a correction value of a block which is not stored in the correction value storage unit, on the basis of the correction values of blocks adjacent to the block corresponding to which is not stored in the correction value storage unit.
The video processing apparatus thus constructed as previously mentioned can reduce the amount of correction values stored in the correction value storage unit and the amount of the latest correction values to be received from the external apparatus.
In the video processing apparatus according to the present invention, the correction gain interpolating unit may be adapted to calculate a correction gain by performing an interpolation on the basis of the pixel skipping of the imaging element.
The video processing apparatus thus constructed as previously mentioned can reduce the amount of correction values stored in the correction value storage unit, without being affected by the pixel skipping of the imaging element, by performing an interpolation on the basis of the pixel skipping of the imaging element.
In the video processing apparatus according to the present invention, the correction gain interpolating unit may be adapted to adjust coordinates of each pixel of the imaging element by performing a displacement correction on the basis of a displacement of the imaging element to an optical axis, and to calculate an interpolated correction value from the correction values stored in the correction value storage unit by performing the interpolation on the basis of the adjusted coordinates of each pixel of the imaging element.
The video processing apparatus thus constructed as previously mentioned can calculate, with accuracy, a correction gain of a designated pixel, without having stored therein correction values for a displacement of the imaging element to an optical axis, by adjusting coordinates of each pixel of the imaging element on the basis of a displacement of the imaging element to an optical axis.
The present invention provides a video processing apparatus that can perform separately two shading corrections by comprising two correction units for dark shading of image and light falloff at edges of image, calculate, with accuracy, a correction gain of a designated pixel from correction values of blocks by performing two stage interpolations, and perform two or more shading corrections without being increased in circuit size.
The preferred embodiment of the video processing apparatus according to the present invention will be described hereinafter with reference to accompanying drawings.
Here, the imaging element 2 has a plurality of color filters corresponding to pixels. The following description will be directed to the case that signals of pixels are outputted in a specific order from the imaging element 2.
The imaging element 2 may be adapted to output the signals of all pixels, or adapted to assume a pixel skipping mode to selectively output the signals of the pixels. When, for example, the imaging element 2 is in the pixel skipping mode, the imaging element may be adapted to output the signal of pixels every a few lines as shown in
As shown in
The operation of the video processing apparatus thus constructed as previously mentioned according to the embodiment of the present invention will be then described hereinafter with reference to the drawings.
As shown in
The correction value storage unit 5c has communication means (not shown) for receiving latest correction values corresponding to the blocks from an external apparatus, and updating the previous correction values of blocks with the latest correction values of blocks. The correction values stored in the correction value storage unit 5c are updated by the communication means if necessary. The correction gain interpolating unit 5d judges whether or not the imaging element 2 is in the pixel skipping mode, and calculates a correction gain on the basis of the operation mode in which the imaging element 2 is.
The correction value storage unit 5c decides four blocks which are in the vicinity of the pixel indicated by the HV counter 5a, selects four correction values corresponding to four blocks from among 384 correction values, selects correction values 50 corresponding to dark shading correction of an image, and 48 correction values 51 corresponding to peripheral shading correction for light falloff at edges of the image, and selects correction values on the basis of the type of the color filter selected by the color filter selecting unit 5b. The correction value storage unit 5c selectively outputs the correction values 50 corresponding to dark shading correction of an image, and 48 correction values 51 corresponding to peripheral shading correction for light falloff at edges of the image. Here, the correction value storage unit 5c selects and outputs four correction values A, B, C, and D of blocks adjacent to each other to the correction value interpolating unit 5d.
The following description will be then directed to the first and second interpolations to be performed with the correction values A, B, C, and D of the blocks by the correction gain interpolating unit 5d.
As shown in
The conventional four-point linear interpolation method will be then described hereinafter with reference to
In general, the correction gains of the dark shading and peripheral shading corrections cannot be obtained at the same time without using two interpolation circuits corresponding to the dark shading and peripheral shading corrections.
The following description will be then directed to a four-point linear interpolation method for allowing the video processing apparatus to perform a linear interpolation of the correction value by using a difference value.
The correction gain interpolating unit 5d calculates the difference value HS of an interpolated correction value of a given point Hp(p, q) and an interpolated correction value of a point Hp+1(p+1, q) by using a following expression (3).
The correction gain interpolating unit 5d calculates the correction gain of the given point Hp(p, q) by using the interpolated correction value HS calculated from a following expression (4).
The dark shading and peripheral correction units share a circuit for performing interpolations by using the expressions (2) and (3) by reason that the correction value HO and the difference HS are calculated in each line of an area defined by corrections values A, B, C, and D of blocks. Further, an interpolating unit for performing a four-point linear interpolation by using the expressions (2), (3), and (4) is simple in construction in comparison with an interpolating unit for performing a four-point linear interpolation by using the expression (1) by reason that the number of multiplier and divider of the former is smaller than that of the latter. The video processing apparatus according to the present invention is improved in circuit size in comparison with the conventional video processing apparatus.
Then, the correction gain interpolating unit 5d performs the second interpolation by using the correction value H calculated in the first interpolation stage.
Although the image has a peripheral portion in which the interpolation cannot be performed in the second interpolation stage as shown in
When the imaging element 2 is in a pixel skipping mode, the correction gain interpolating unit 5d calculates the correction gains of pixels from the correction values of blocks by performing the interpolations on the basis of the pixel skipping mode of the imaging element 2. On the other hand, the correction gain interpolating unit 5d calculates the correction gains of pixels from the correction values of blocks on the basis of the size of the image produced by the imaging element 2.
Firstly, the adder/subtracter 500 performs the dark shading correction by adding (or subtracting) the correction gain for the dark shading of the image calculated by the correction gain interpolating unit 5d to the relevant pixel data from the A/D converter 4.
Then, the multiplier 501 multiples the pixel data corrected by the dark shading correction unit 5e with the correction gain for light falloff at edges of the image calculated by the peripheral shading correction unit 5f. The bit shifter 502 performs bit shift of the pixel data from the multiplier 501. The adder 503 performs the peripheral shading correction by adding the pixel data corrected by the dark shading correction unit 5e to the pixel data shifted by the bit shifter 502.
The following description will be then directed to a displacement of the imaging element to an optical axis. Even if the imaging element has a center axis axially aligned with the optical axis as shown in
From the foregoing description, it will be understood that the video processing apparatus according to the embodiment of the present invention can reduce the amount of correction values to be stored in the correction value storage unit by reason that the correction values correspond to respective blocks of an image, an correction gain of each pixel is calculated from the correction values of blocks through interpolation steps, and can perform separately two shading corrections by comprising two correction units for dark shading of image and light falloff at edges of image.
The video processing apparatus according to the embodiment of the present invention can calculate, with accuracy, correction gains of pixels from the correction values of blocks by reason that the interpolated correction values are firstly calculated from the correction values of blocks through the four-point linear interpolation in the first stage, the correction gains of pixels are then calculated from the interpolated correction values through the second interpolation in the second stage.
The video processing apparatus according to the embodiment of the present invention can be improved in construction, without comprising two different interpolating units for dark shading of image and light falloff at edges of image, by reason that the correction gain interpolating unit is adapted to calculate correction gains corresponding to the correction for dark shading of image and correction gains corresponding to the correction for light falloff at edges of image. The dark shading and peripheral correction units share the correction gain interpolating unit.
In this embodiment, the video processing apparatus performs the dark shading and peripheral shading corrections of the image divided into 48 blocks on the basis of correction values corresponding to 48 blocks. Needless to say, the present invention is not limited to the number of blocks. The imaging element 2 has four different color filters, however, the present invention is not limited to the type of color filter.
As will be seen from the foregoing description, the video processing apparatus can perform separately two shading corrections including a dark shading correction of an image and a peripheral shading correction for light falloff at edges of the image, and can calculate, with accuracy, correction gains of pixels from the correction values of blocks by performing two interpolations, and perform two or more shading corrections without being increased in circuit size.
Number | Date | Country | Kind |
---|---|---|---|
2004-331829 | Nov 2004 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2005/021050 | 11/16/2005 | WO | 00 | 5/15/2007 |