An image-data processing apparatus corrects flicker in each image-data frame. The apparatus includes a threshold generator that generates a threshold; an integrator that integrates values of extracted pixel data of a selected range in each frame on the basis of the threshold; a storage unit that stores integrated values of frames; an average calculator that calculates an average value of the image data on the basis of the integrated values; a gain calculator that divides the average value by an integrated value associated with a target frame, thereby calculating a reference correction gain; a comparator that checks whether pixel data in the target frame are in the selected range; a correction-gain output unit that outputs a correction gain on the basis of the comparison; and a corrector that corrects each piece of the pixel data in the selected range on the basis of the correction gain.
|
7. An image-data processing method for sequentially executing flicker correction on each frame of image data as a correction target frame, the image data being acquired through imaging by an imaging device, the image-data processing method comprising the steps of:
generating a threshold for pixel data;
extracting pixel data of a selected range in each frame of the image data on the basis of the threshold for pixel data, the pixel data in the selected range having either values greater than or equal to the threshold or values less than or equal to the threshold, and integrating values of the extracted pixel data;
storing integrated values of a plurality of frames in a storage medium;
calculating an average value of the image data on the basis of the integrated values of the plurality of frames, the integrated values being stored in the storage medium;
dividing the average value by an integrated value associated with the correction target frame among the integrated values of the plurality of frames, the integrated values being stored in the storage medium, thereby calculating a reference correction gain for the correction target frame;
checking whether individual pieces of pixel data in the correction target frame are pixel data in the selected range on the basis of the threshold for pixel data;
outputting a correction gain based on the reference correction gain, on the basis of a result of checking by the comparing, in association with each of the pieces of pixel data in the selected range of the correction target frame; and
correcting each of the pieces of pixel data in the selected range among the pieces of pixel data in the correction target frame on the basis of the output correction gain.
1. An image-data processing apparatus that sequentially executes flicker correction on each frame of image data as a correction target frame, the image data being acquired through imaging by an imaging device, the image-data processing apparatus comprising:
a threshold generator configured to generate a threshold for pixel data;
an integrator configured to extract pixel data of a selected range in each frame of the image data on the basis of the threshold generated by the threshold generator, the pixel data in the selected range having either values greater than or equal to the threshold or values less than or equal to the threshold, and to integrate values of the extracted pixel data;
a storage unit configured to store integrated values of a plurality of frames, the integrated values being obtained by the integrator;
an average calculator configured to calculate an average value of the image data on the basis of the integrated values of the plurality of frames, the integrated values being stored in the storage unit;
a gain calculator configured to divide the average value calculated by the average calculator by an integrated value associated with the correction target frame among the integrated values of the plurality of frames, the integrated values being stored in the storage unit, thereby calculating a reference correction gain for the correction target frame;
a comparator configured to check whether individual pieces of pixel data in the correction target frame are pixel data in the selected range on the basis of the threshold generated by the threshold generator;
a correction-gain output unit configured to output a correction gain based on the reference correction gain calculated by the gain calculator, on the basis of a result of checking by the comparator, in association with each of the pieces of pixel data in the selected range of the correction target frame; and
a corrector configured to correct each of the pieces of pixel data in the selected range among the pieces of pixel data in the correction target frame on the basis of the correction gain output from the correction-gain output unit.
8. An imaging system comprising:
an imaging device; and
an image-data processing apparatus that sequentially executes flicker correction on each frame of image data as a correction target frame, the image data being acquired through imaging by the imaging device;
wherein the image-data processing apparatus includes
a threshold generator configured to generate a threshold for pixel data;
an integrator configured to extract pixel data of a selected range in each frame of the image data on the basis of the threshold generated by the threshold generator, the pixel data in the selected range having either values greater than or equal to the threshold or values less than or equal to the threshold, and to integrate values of the extracted pixel data;
a storage unit configured to store integrated values of a plurality of frames, the integrated values being obtained by the integrator;
an average calculator configured to calculate an average value of the image data on the basis of the integrated values of the plurality of frames, the integrated values being stored in the storage unit;
a gain calculator configured to divide the average value calculated by the average calculator by an integrated value associated with the correction target frame among the integrated values of the plurality of frames, the integrated values being stored in the storage unit, thereby calculating a reference correction gain for the correction target frame;
a comparator configured to check whether individual pieces of pixel data in the correction target frame are pixel data in the selected range on the basis of the threshold generated by the threshold generator;
a correction-gain output unit configured to output a correction gain based on the reference correction gain calculated by the gain calculator, on the basis of a result of checking by the comparator, in association with each of the pieces of pixel data in the selected range of the correction target frame; and
a corrector configured to correct each of the pieces of pixel data in the selected range among the pieces of pixel data in the correction target frame on the basis of the correction gain output from the correction-gain output unit.
2. The image-data processing apparatus according to
3. The image-data processing apparatus according to
4. The image-data processing apparatus according to
5. The image-data processing apparatus according to
a user operation unit configured to allow a user to adjust a value of the threshold generated by the threshold generator.
6. The image-data processing apparatus according to
a user operation unit configured to allow a user to select either pixel data having values greater than or equal to the threshold or pixel data having values less than or equal to the threshold as pixel data in the selected range.
|
The present application claims priority from Japanese Patent Application No. JP 2006-242374, filed in the Japanese Patent Office on Sep. 7, 2006, the entire content of which is incorporated herein by reference.
1. Field of the Invention
The present invention relates to image-data processing apparatuses, image-data processing methods, and imaging systems with which frame flicker, which occurs, for example, in high-speed imaging, is corrected. More specifically, the present invention relates to an image-data processing apparatus, an image-data processing method, and an imaging system with which a correction gain for each frame is calculated on the basis of an integrated value of the frame, obtained by integrating pixel data in a selected range having either values greater than or equal to a threshold or values less than or equal to the threshold, and the values of the pixel data in the selected range of the frame are corrected on the basis of the correction gain, so that the load of processing for determining the correction gain can be reduced, and so that flicker in an image region corresponding to the pixel data in the selected range can be corrected appropriately.
2. Description of the Related Art
The problem of flicker is considered to be significant particularly in the case of a rolling-shutter (focal-plane-shutter) imaging device. However, also in the case of a global-shutter imaging device, light tends to flicker over the entire screen, i.e., frame flicker occurs, in high-speed imaging due to the imaging rate being faster than the ON/OFF period of illumination. In some cases, the frame flicker makes it difficult to correct individual regions in the screen due to difference in the phase or level of illumination among the individual region, for example, when a plurality of light sources exists in the image on the screen.
In an existing method of flicker correction, a region where flicker has occurred is detected and correction is executed in the region. With this method, detection is to be executed as to in which region flicker has occurred. However, the status of flicker varies depending on light sources or objects, so that processing for detecting a region becomes complex and the load increases in order to achieve accurate correction.
In another existing method of flicker correction, a correction gain is determined on the basis of an average value and an integrated value of a frame. With this method, if regions of different flicker states (e.g., regions where flicker has occurred and regions where flicker has not occurred) exist in the screen, when correction is executed in the regions where flicker has occurred, conversely, flicker newly occurs in the regions where flicker had not occurred.
In a first example of flicker correction, shown in
According to techniques proposed in Japanese Unexamined Patent Application Publication No. 2000-101909, a screen is divided into regions, flicker correction gains are calculated for the individual divided regions, and flicker correction is executed in the divided regions independently using their individual flicker correction gains.
According to the techniques described in Japanese Unexamined Patent Application Publication No. 2000-101909, an average luminance is detected and a flicker correction gain is calculated for each of the divided regions, so that the load of processing for determining correction gains is large. Furthermore, according to the techniques described in Japanese Unexamined Patent Application Publication No. 2000-101909, boundaries for dividing the screen are specified by a user, or automatically determined on the basis of a result of detection of a flicker region. Since the divided regions are rectangular regions defined by vertical and horizontal positions, when the flicker region has a non-rectangular complex shape, it is not possible to execute flicker correction appropriately. Although it is possible to a certain extent to deal with a flicker region with a complex shape by increasing the number of divided regions even if the divided regions are rectangular, the load of processing for determining correction gains increases.
It is desired that flicker in an image region corresponding to pixel data in a selected range can be corrected appropriately while reducing the load of processing for determining correction gains.
According to an embodiment of the present invention, there is provided an image-data processing apparatus that sequentially executes flicker correction on each frame of image data as a correction target frame, the image data being acquired through imaging by an imaging device. The image-data processing apparatus includes a threshold generator configured to generate a threshold for pixel data; an integrator configured to extract pixel data of a selected range in each frame of the image data on the basis of the threshold generated by the threshold generator, the pixel data in the selected range having either values greater than or equal to the threshold or values less than or equal to the threshold, and to integrate values of the extracted pixel data; a storage unit configured to store integrated values of a plurality of frames, the integrated values being obtained by the integrator; an average calculator configured to calculate an average value of the image data on the basis of the integrated values of the plurality of frames, the integrated values being stored in the storage unit; a gain calculator configured to divide the average value calculated by the average calculator by an integrated value associated with the correction target frame among the integrated values of the plurality of frames, the integrated values being stored in the storage unit, thereby calculating a reference correction gain for the correction target frame; a comparator configured to check whether individual pieces of pixel data in the correction target frame are pixel data in the selected range on the basis of the threshold generated by the threshold generator; a correction-gain output unit configured to output a correction gain based on the reference correction gain calculated by the gain calculator, on the basis of a result of checking by the comparator, in association with each of the pieces of pixel data in the selected range of the correction target frame; and a corrector configured to correct each of the pieces of pixel data in the selected range among the pieces of pixel data in the correction target frame on the basis of the correction gain output from the correction-gain output unit.
In the image-data processing apparatus, the threshold generator generates a threshold for pixel data. Furthermore, the integrator integrates pixel data of each frame. At this time, regarding each frame, pixel data having values greater than or equal to the threshold or pixel data having values less than or equal to the threshold is extracted and integrated as pixel data in a selected range.
The storage unit stores integrated values of a plurality of frames, obtained by the integrator. The phase relationship between the timing of imaging by the imaging device and flicker is periodical. For example, the integrated values of the plurality of frames, stored in the storage unit, are integrated values of a predetermined number of successive frames included in one period of the phase relationship between the timing of imaging by the imaging device and the flicker. Obviously, among the predetermined number of successive frames, the phase relationship between the timing of imaging by the imaging device and the flicker varies. In this case, only integrated values of frames used to calculate an average value of image data are stored in the storage unit. Thus, the capacity of the storage medium forming the storage unit can be saved.
The average calculator calculates an average value of image data on the basis of the integrated values of the plurality of frames, stored in the storage unit. At this time, for example, the average value of image data is calculated by averaging the integrated values of the predetermined number of frames included in one period of the phase relationship between the timing of imaging by the imaging device and the flicker.
The gain calculator divides the average value calculated by the average calculator by an integrated value associated with the correction target frame among the integrated values of the plurality of frames, stored in the storage unit, thereby calculating a reference correction gain for the correction target frame. As described earlier, since the phase relationship between the timing of imaging by the imaging device and the flicker is periodical. Thus, as the integrated value associated with the correction target frame, for example, it is possible to use an integrated value of a frame having the same phase relationship between the timing of imaging by the imaging device and the flicker and preceding the correction target frame. In this case, it is possible to allocate a longer time for the calculation.
The comparator checks whether individual pieces of pixel data in the correction target frame are pixel data in the selected range on the basis of the threshold generated by the threshold generator. The correction-gain output unit outputs a correction gain based on the reference correction gain calculated by the gain calculator, on the basis of a result of checking by the comparator, in association with each of the pieces of pixel data in the selected range of the correction target frame. The corrector corrects each of the pieces of pixel data in the selected range among the pieces of pixel data in the correction target frame on the basis of the correction gain output from the correction-gain output unit. By correcting the values of the pixel data in the selected range of the correction target frame, flicker that has occurred in an image region corresponding to the pixel data in the selected range is corrected.
In the flicker correction described above, it suffices to determine only one reference correction gain for each frame of the image data, so that the load of processing for determining correction gains can be reduced. Furthermore, in the flicker correction, a reference correction gain is determined using pixel data in a selected range, and the pixel data in the selected range is corrected on the basis of the reference correction gain. Thus, without affecting pixel data not in the selected range, it is possible to appropriately correct flicker that occurs in an image region corresponding to the pixel data in the selected range (an image region in which flicker correction is to be executed).
For example, regarding pixel data having a value in a range from the threshold to the average value among the pixel data in the selected range, the correction-gain output unit outputs a correction gain in a range from 1.0 to the reference correction gain in accordance with a difference between the value of the pixel data and the threshold. In this case, as the value of the pixel data becomes closer to the threshold, the value of the correction gain becomes closer to 1.0, so that the effect of correction becomes weaker. Thus, it is possible to prevent occurrence of an unnatural appearance at a boundary between the image region in which flicker correction has been executed (the image region corresponding to the pixel data in the selected range) and the other image region.
For example, the image-data processing apparatus may include a user operation unit configured to allow a user to adjust a value of the threshold generated by the threshold generator. In this case, by adjusting the value of the threshold via the user operation unit, the user can adjust as desired the image region in which flicker correction is to be executed.
As another example, the image-data processing apparatus may include a user operation unit configured to allow a user to select either pixel data having values greater than or equal to the threshold or pixel data having values less than or equal to the threshold as pixel data in the selected range. In this case, by selecting via the user operation unit either pixel data having values greater than or equal to the threshold or pixel data having values less than or equal to the threshold, the user can select either an image region corresponding to pixel data having values greater than or equal to the threshold or an image region corresponding to pixel data having values less than or equal to the threshold as desired as an image region in which flicker correction is to be executed.
According to this embodiment of the present invention, a correction gain for each frame is calculated on the basis of an integrated value of the frame, obtained by integrating pixel data in a selected range having either values greater than or equal to a threshold or values less than or equal to the threshold, and the values of the pixel data in the selected range of the frame are corrected on the basis of the correction gain, so that the load of processing for determining the correction gain can be reduced, and so that flicker in an image region corresponding to the pixel data in the selected range (an image region where flicker correction is to be executed) can be corrected appropriately.
Now, an embodiment of the present invention will be described with reference to the drawings.
The imaging device 101 captures an image of an object (not shown) and outputs image data corresponding to the object. The image data is composed of successive frames of image data. The imaging device 101 can execute high-speed imaging, for example, by reducing the frame period. In this case, what is called frame flicker occurs when the frame period becomes shorter than the ON/OFF period of illumination.
The threshold generator 102 generates a threshold Lth of pixel data. The value of the threshold Lth can be adjusted by an operation of the user operation unit 103 by a user. The user can adjust an image region in which flicker correction is to be executed by adjusting the threshold Lth. As will be described later, the image region in which flicker correction is to be executed is a region corresponding to pixel data having values greater than or equal to the threshold Lth or a region corresponding to pixel data having values less than or equal to the threshold Lth. It is possible to select either an image region corresponding to pixel data having values greater than or equal to the threshold Lth (hereinafter referred to as a “high-luminance region”) or an image region corresponding to pixel data having values less than or equal to the threshold Lth (hereinafter referred to as a “low-luminance region”) as an image region in which flicker correction is to be executed, as desired, by a user's operation of the user operation unit 103.
The reason that the user is allowed to select either a high-luminance region or a low-luminance region as an image region in which flicker correction is to be executed is that flicker can occur both in a high-luminance region and a low-luminance region. When flicker occurs in a high-luminance region, the user selects the high-luminance region as an image region in which flicker correction is to be executed. On the other hand, when flicker occurs in a low-luminance region, the user selects the low-luminance region as an image region in which flicker correction is to be executed.
The integrator 104 obtains an integrated value of each frame of image data output from the imaging device 101. More specifically, the integrator 104 extracts pixel data of a selected range (either pixel data having values greater than or equal to the threshold Lth or pixel data having values less than or equal to the threshold Lth) in each frame on the basis of the threshold Lth generated by the threshold generator 102, and integrates the values (levels) of the extracted pixel data to obtain an integrated value. As described earlier, when a high-luminance region is selected as an image region in which flicker correction is to be executed by an operation of the user operation unit 103 by the user, pixel data in the selected range has values greater than or equal to the threshold Lth. On the other hand, when a low-luminance region is selected as an image region in which flicker correction is to be executed by an operation of the user operation unit 103 by the user, pixel data in the selected range has values less than or equal to the threshold Lth.
In this embodiment, in order to facilitate calculation of an average value of image data in the average calculator 106 described later, in the integrator 104, the integrated value of extracted pixel data in each frame is divided by the number of pieces of the extracted pixel data (i.e., an average value of the values of the individual pieces of pixel data in the selected range is calculated). In this sense, the integrator 104 may be a pixel-data average calculator that calculates an average of the values of pixel data in a selected range for each frame of image data output from the imaging device 101.
The history storage unit 105 stores, for example, integrated values of a number of latest frames among the integrated values of individual frames, obtained by the integrator 104. The integrated values of a plurality of frames, stored in the history storage unit 105, are sequentially updated as frames proceed. The history storage unit 105 is implemented by a storage medium such as a semiconductor memory. The phase relationship between the timing of imaging by the imaging device 101 and flicker due to ON/OFF of illumination is periodical. That is, the timing of imaging and the flicker exhibit the same phase relationship at a cycle of a predetermined number of frames (the number is determined uniquely according to the frame period of imaging and the ON/OFF period of illumination).
For example, the integrated values of a plurality of frames, stored in the history storage unit 105, are integrated values of a predetermined number of successive frames (the number is determined uniquely according to the frame period of imaging and the ON/OFF period of illumination) included in one period of the phase relationship between the timing of imaging by the imaging device 101 and the flicker. Obviously, among the predetermined number of successive frames, the phase relationship between the timing of imaging by the imaging device 101 and the flicker varies. In this case, only integrated values of frames used to calculate an average value of image data are stored in the history storage unit 105. Thus, the capacity of the storage medium forming the history storage unit 105 can be saved.
The average calculator 106 calculates an average Lav of image data on the basis of the integrated values of the plurality of frames, stored in the history storage unit 105. In this case, for example, integrated values of the predetermined number of frames included in one period of the phase relationship between the timing of imaging by the imaging device 101 and the flicker are averaged to calculate the average Lav of image data.
The reference-correction-gain calculator 107 divides the average Lav of image data, calculated by the average calculator 106, by an integrated value associated with a correction target frame that is to be corrected by the corrector 110 as described later among the integrated values of the plurality of frames stored in the history storage unit 105, thereby calculating a reference correction gain G for the correction target frame. Obviously, it is possible to use an integrated value of the correction target frame itself as the integrated value associated with the correction target frame. In this embodiment, however, since the phase relationship between the timing of imaging by the imaging device 101 and the flicker is periodical as described earlier, as the integrated value associated with the correction target frame, for example, it is possible to use an integrated value of a frame having the same phase relationship between the timing of imaging by the imaging device 101 and the flicker as the correction target frame and preceding the correction target frame. In this case, since the integrated value of the frame preceding the correction target frame is used, a certain time is available before the correction target frame is actually corrected. Thus, it is possible to allocate a longer time for calculation of a reference correction gain.
On the basis of the threshold Lth generated by the threshold generator 102, the comparator 108 checks whether each piece of pixel data of the correction target frame is a piece of pixel data in the selected range (either pixel data having a value greater than or equal to the threshold Lth or pixel data having a value less than or equal to the threshold Lth). As described earlier, when a high-luminance region is selected by an operation of the user operation unit 103 by the user as an image region in which flicker correction is to be executed, the comparator 108 checks whether each, piece of pixel data has a value greater than or equal to the threshold Lth. On the other hand, when a low-luminance region is selected by an operation of the user operation unit 103 by the user as an image region in which flicker correction is to be executed, the comparator 108 checks whether each piece of pixel data has a value less than or equal to the threshold Lth.
On the basis of the result of checking by the comparator 108, the correction-gain determiner 109 outputs a correction gain Gc based on the reference correction gain G calculated by the reference-correction-gain calculator 107 in relation to the pixel data in the selected range of the correction target frame. The correction-gain determiner 109 functions as a correction-gain output unit.
In the correction-gain determiner 109, on the basis of the threshold Lth generated by the threshold generator 102, the average Lav calculated by the average calculator 106, the values (levels) Lin of the pixel data of the correction target frame, etc. as well as the result of checking by the comparator 108, a correction gain Gc that is to be output in association with each piece of pixel data of the correction target frame is determined according to the value Lin of the pixel data as follows.
First, a case where a high-luminance region is selected by an operation by the user as an image region in which flicker correction is to be executed as described earlier will be described with reference to
When the value Lin of pixel data is less than or equal to the threshold Lth, it is determined that the pixel data is not pixel data included in the image region in which correction is to be executed. Thus, the correction gain Gc is chosen to be 1.0, so that correction is substantially not executed on the pixel data.
When the value Lin of pixel data is greater than the threshold Lth and less than the average Lav, the correction gain Gc is chosen to be (G−1.0)/(Lav−Lth)*(Lin−Lth)+1.0. That is, in this case, the correction gain Gc varies in a range of 1.0 to the reference correction gain G in accordance with the difference between the value Lin of the pixel data and the threshold Lth. In this case, as the value Lin of the pixel data becomes closer to the threshold Lth, the value of the correction gain Gc becomes closer to 1.0, so that the effect of correction becomes weaker. Thus, it is possible to prevent occurrence of an unnatural appearance at a boundary between the image region in which flicker correction has been executed (the image region corresponding to pixel data having values greater than or equal to the threshold Lth) and the other image region.
When the value Lin of pixel data is greater than or equal to the average Lav, the correction gain Gc is chosen to be the reference correction gain G.
Next, a case where a low-luminance region is selected by an operation by the user as an image region in which flicker correction is to be executed will be described with reference to
When the value Lin of pixel data is greater than or equal to the threshold Lth, it is determined that the pixel data is not pixel data included in the image region in which correction is to be executed. Thus, the correction gain Gc is chosen to be 1.0, so that correction is substantially not executed on the pixel data.
When the value Lin of pixel data is less than the threshold Lth and greater than the average Lav, the correction gain Gc is chosen to be (1.0−G)/(Lth−Lav)*(Lth−Lin)+1.0. That is, in this case, the correction gain Gc varies in a range of 1.0 to the reference correction gain G in accordance with the difference between the value Lin of the pixel data and the threshold Lth. In this case, as the value Lin of the pixel data becomes closer to the threshold Lth, the value of the correction gain Gc becomes closer to 1.0, so that the effect of correction becomes weaker. Thus, it is possible to prevent occurrence of an unnatural appearance at a boundary between the image region in which flicker correction has been executed (the image region corresponding to pixel data having values less than or equal to the threshold Lth) and the other image region.
When the value Lin of pixel data is less than or equal to the average Lav, the correction gain Gc is chosen to be the reference correction gain G.
The corrector 110 corrects the pixel data in the selected range described earlier among the pixel data of the correction target frame, on the basis of the correction gains Gc output from the correction-gain determiner 109. In this case, the corrector 110 executes correction by multiplying each piece of pixel data of the correction target frame by the correction gain Gc output from the correction-gain determiner 109. As described earlier, the correction gain Gc of pixel data not included in the image region in which correction is to be executed is 1.0, so that correction is substantially not executed on the pixel data.
The monitor 111 displays an image based on the image data obtained through the flicker correction and output from the corrector 110. In this case, for example, by extending the frame period for displaying an image based on image data obtained by high-speed imaging by the imaging device 101, it is possible to display the image in slow motion. Although not shown, a recording device may be provided between the corrector 110 and the monitor 111 so that the image data obtained through the flicker correction by the corrector 110 is temporarily recorded by the recording device and then played back and supplied to the monitor 111. In this case, the frame period can be converted at the recording device so that the image can be displayed in slow motion as described above.
Now, an operation of the imaging system 100 shown in
The threshold generator 102 generates the threshold Lth for pixel data. The threshold Lth is supplied to components where the threshold Lth is used, such as the integrator 104, the comparator 108, and the correction-gain determiner 109.
Image data obtained through imaging by the imaging device 101 is supplied to components where the image data is used, such as the integrator 104, the comparator 108, the correction-gain determiner 109, and the corrector 110. The corrector 110 executes flicker correction sequentially on the frames of the image data as correction target frames.
The integrator 104 extracts pixel data in a selected range (pixel data having either values greater than or equal to the threshold Lth or values less than or equal to the threshold Lth) from each frame of the image data, and integrates the values to obtain an integrated value. The integrated value is supplied to the history storage unit 105. The history storage unit 105 stores the integrated values of a plurality of latest frames among the integrated values of the frames obtained by the integrator 104. For example, the history storage unit 105 stores integrated values of a predetermined number of successive frames (the number is determined uniquely according to the frame period of imaging and the ON/OFF period of illumination) included in one period of the phase relationship between the timing of imaging by the imaging device 101 and the flicker.
On the basis of the integrated values of the plurality of frames, stored in the history storage unit 105, the average calculator 106 calculates an average Lav of the image data. For example, the average Lav is calculated by averaging the predetermined number of successive frames included in one period of the phase relationship between the timing of imaging by the imaging device 101 and the flicker. The average Lav is supplied to the reference-correction-gain calculator 107 and the correction-gain determiner 109.
As described earlier, the corrector 110 executes flicker correction sequentially on the frames of the image data as correction target frames. The reference-correction-gain calculator 107 sequentially calculates reference correction gains G associated with the individual correction target frames. In this case, a reference correction gain G associated with a correction target frame that is to be corrected by the corrector 110 is calculated by dividing the average Lav of the image data, calculated by the average calculator 106, by the integrated value associated with the correction target frame among the integrated values of the plurality of frames, stored in the history storage, unit 105. The reference correction gains G are supplied to the correction-gain determiner 109.
The comparator 108 checks on the basis of the threshold Lth whether each piece of pixel data in the correction target frame is pixel data in the selected range (either pixel data having a value greater than or equal to the threshold Lth or pixel data having a value less than or equal to the threshold Lth). Since pixel data in the selected range corresponds to an image region in which flicker correction is to be executed, checking as to whether the pixel data is in the selected range is equivalent to checking whether the pixel data is to be corrected. The result of checking by the comparator 108 is supplied to the correction-gain determiner 109.
In relation to each piece of pixel data in the selected range of the correction target frame, the correction-gain determiner 109 outputs a correction gain Gc based on the reference correction gain G. In this case, of the pixel data in the selected range, regarding pixel data having values in a range of the threshold Lth to the average Lav, the correction gain Gc that is output takes on a value in a range of 1.0 to the reference correction gain G in accordance with the difference between the value Lin of the pixel data and the threshold Lth. The correction gains Gc are supplied to the corrector 110.
Among the pixel data in the correction target frames, the corrector 110 corrects the pixel data in the selected range on the basis of the correction gains Gc output from the correction-gain determiner 109. Since the correction gain Gc for pixel data not in the selected range is chosen to be 1.0, correction is substantially not executed.
The image data obtained through the flicker correction by the corrector 110 is supplied to the monitor 111. The monitor 111 displays an image based on the image data obtained through the flicker correction. In the image displayed on the monitor 111, the flicker is corrected appropriately in the image region where the flicker correction has been executed (the image region corresponding to the pixel data in the selected range).
When the value of the threshold Lth generated by the threshold generator 102 is adjusted by an operation by the user, the number of pieces of pixel data included in the selected range decreases or increases, so that the image region where flicker correction is to be executed changes accordingly. The user can adjust the value of the threshold Lth to an optimal value with reference to the image displayed on the monitor 111.
Furthermore, when a high-luminance region (an image region corresponding to pixel data having values greater than or equal to the threshold Lth) is selected by an operation by the user as an image region in which flicker correction is to be executed, the reference-correction-gain calculator 107 calculates a reference correction gain G on the basis of the pixel data corresponding to the high-luminance region, and the corrector 110 executes flicker correction on the pixel data corresponding to the high-luminance region on the basis of the correction gains Gc. On the other hand, when a low-luminance region (an image region corresponding to pixel data having values less than or equal to the threshold Lth) is selected by an operation by the user as an image region in which flicker correction is to be executed, the reference-correction-gain calculator 107 calculates a reference correction gain G on the basis of the pixel data corresponding to the low-luminance region, and the corrector 110 executes flicker correction on the pixel data corresponding to the low-luminance region on the basis of the correction gains Gc. With reference to the image displayed on the monitor 111, the user can select either a high-luminance region or a low-luminance region as an image region in which flicker correction is to be executed.
Next, flicker correction executed in the imaging system 100 shown in
In the following description, as an example, a case where flicker correction is executed on a correction target frame FL shown in
As described earlier, the image data obtained through imaging by the imaging device 101 is integrated by the integrator 104 on a frame-by-frame basis. At this time, the value of the threshold Lth generated by the threshold generator 102 is set in consideration of the values (levels) Lin of pixel data in the region where flicker has occurred. When the values (levels) Lin of the pieces of pixel data in the correction target frame FL is distributed as shown in
As described earlier, the user can adjust the value of the threshold Lth by an operation of the user operation unit 103. More specifically, the user can adjust the value of the threshold Lth with reference to an image displayed on the monitor 111 so that the flicker in the field region is corrected while the rear dark region will not be affected by the flicker correction. When the value of the threshold Lth is adjusted as described above, the user can set the value of the threshold Lth between Level B and Level A as shown in
In the correction target frame FL, since flicker has occurred in a bright field, a high-luminance region is selected by an operation by the user as an image region in which flicker correction is to be executed. Thus, the integrator 104 extracts pixel data having values greater than or equal to the threshold Lth as a selected range, i.e., extracts pixel data included in the portion of Level B while excluding pixel data included in the portion of Level A, and integrates the values of the extracted pixel data.
The phase relationship between the timing of imaging by the imaging device 101 and flicker due to ON/OFF of illumination is periodical. That is, the timing of imaging and the flicker exhibit the same phase relationship at a cycle of a predetermined period. The period of the phase relationship between the timing of imaging and the flicker is determined uniquely according to the frame period of imaging and the ON/OFF period of illumination. For example, when the timing of imaging and the flicker has a phase relationship shown in
In this example, as integrated values of a predetermined number of successive frames included in one period of the phase relationship between the timing of imaging by the imaging device 101 and the flicker, the history storage unit 105 stores integrated values (average values of the values of pieces of pixel data in the selected range) I(a), I(b), and I(c) of the frames Fa, Fb, and Fc. In
The average calculator 106 calculates an average value Lav of the image data by calculating an average of the integrated value of the frame corresponding to the imaging timings Ta, Tb, and Tc, stored in the history storage unit 105 as described above.
The reference-correction-gain calculator 107 calculates a reference correction gain G on the basis of the average Lav calculated by the average calculator 106 and the integrated value of a frame preceding a frame that is to be corrected next (a correction target frame) by one period. In the case of this example, when the frame Fd corresponding to the imaging timing Td is to be corrected, the frame preceding the frame Fd by one period is the frame Fa corresponding to the imaging timing Ta. Thus, a reference correction gain G(d) for the frame Fd is calculated by dividing the average Lav by the integrated value I(a) of the frame Fa.
Furthermore,
The reference correction gain G calculated by the reference-correction-gain calculator 107 is based on the pixel data used in the integrator 104 and the average calculator 106, not including the pixel data that is not in the selected range on the basis of the threshold Lth (pixel data having values less than the threshold Lth). Thus, if all the pixel data in the correction target frame is corrected using the reference correction gain G, since the reference correction gain G is not suitable for the excluded pixel data not in the selected range, flicker components are amplified instead of being reduced in an image region corresponding to the pixel data not in the selected range.
In order to avoid such an effect on the pixel data not in the selected range, the correction gain Gc for the pixel data not in the selected range is chosen to be 1.0, so that correction is substantially not executed. The comparator 108 checks on the basis of the threshold Lth whether each piece of pixel data in the correction target frame is pixel data in the selected range (pixel data having a value greater than or equal to the threshold Lth) or pixel data not in the selected range (pixel data having a value less than the threshold Lth).
On the basis of the result of checking by the comparator 108 and so forth, the correction-gain determiner 109 determines a correction gain Gc for each piece of pixel data in the correction target frame on the basis of the value Lin of the piece of pixel data (refer to
When the value Lin of pixel data is greater than the threshold Lth and less than the average Lav, the correction gain Gc is chosen to be closer to 1.0 as the value Lin of the pixel data becomes closer to the threshold Lth, so that the effect of correction is alleviated. Thus, unnaturalness at a boundary between the image region in which flicker correction has been executed (the image region corresponding to pixel data having values greater than or equal to the threshold Lth) and the other image region is alleviated.
The corrector 110 multiplies the correction gains Gc for the individual pieces of pixel data in the correction target frame, determined by the correction-gain determiner 109, by the associated pixels of pixel data. The corrector 110 outputs image data obtained through flicker correction, i.e., image data in which flicker correction has been executed on pixel data in the selected range of each correction target frame.
In the case of the correction target frame shown in
In the imaging system 100 shown in
Furthermore, in the imaging system 100 shown in
Furthermore, in the imaging system 100 shown in
Furthermore, in the imaging system 100 shown in
It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and alterations may occur depending on design requirements and other factors insofar as they are within the scope of the appended claims or the equivalents thereof.
Sato, Seiji, Kamiya, Koji, Sugeno, Kazuhiro
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
5585942, | Jun 20 1991 | Canon Kabushiki Kaisha | Image pickup apparatus |
6630953, | Jul 24 1998 | Matsushita Electric Industrial Co., Ltd. | Flicker control imaging apparatus |
6710818, | |||
7164439, | Dec 27 2001 | Sharp Kabushiki Kaisha | Flicker correction apparatus and flicker correction method, and recording medium storing flicker correction program |
7280135, | Oct 10 2002 | Intellectual Ventures II LLC | Pixel array, image sensor having the pixel array and method for removing flicker noise of the image sensor |
7397503, | Jul 28 2003 | Aptina Imaging Corporation | Systems and methods for reducing artifacts caused by illuminant flicker |
7420595, | Apr 27 2004 | Intellectual Ventures II LLC | Image sensor for detecting flicker noise and method thereof |
7489347, | Mar 17 2004 | SOCIONEXT INC | Method and circuit for detecting flicker noise |
7502054, | Dec 20 2004 | Pixim, Inc. | Automatic detection of fluorescent flicker in video images |
7598987, | Nov 29 2005 | STMicroelectronics Asia Pacific Pte. Ltd.; STMICROELECTRONICS ASIA PACIFIC PTE LTD | Flicker detection gain control circuit, digital imaging system, and method |
JP2000101909, | |||
JP2001061105, | |||
JP2002218319, | |||
JP2004241987, | |||
JP8256294, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jul 02 2007 | SUGENO, KAZUHIRO | Sony Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 021490 | /0643 | |
Jul 03 2007 | KAMIYA, KOJI | Sony Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 021490 | /0643 | |
Jul 03 2007 | SATO, SEIJI | Sony Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 021490 | /0643 | |
Sep 05 2007 | Sony Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
May 11 2010 | ASPN: Payor Number Assigned. |
Mar 18 2013 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Oct 30 2017 | REM: Maintenance Fee Reminder Mailed. |
Apr 16 2018 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Mar 16 2013 | 4 years fee payment window open |
Sep 16 2013 | 6 months grace period start (w surcharge) |
Mar 16 2014 | patent expiry (for year 4) |
Mar 16 2016 | 2 years to revive unintentionally abandoned end. (for year 4) |
Mar 16 2017 | 8 years fee payment window open |
Sep 16 2017 | 6 months grace period start (w surcharge) |
Mar 16 2018 | patent expiry (for year 8) |
Mar 16 2020 | 2 years to revive unintentionally abandoned end. (for year 8) |
Mar 16 2021 | 12 years fee payment window open |
Sep 16 2021 | 6 months grace period start (w surcharge) |
Mar 16 2022 | patent expiry (for year 12) |
Mar 16 2024 | 2 years to revive unintentionally abandoned end. (for year 12) |