An imaging apparatus

Abstract: An imaging apparatus including an imaging device, an iris control circuit, and a gradation compensation circuit is disclosed with the iris control circuit operated with a priority to the gradation compensation circuit. That is, during generating the gradation control data for gradation compensation circuit, if the iris controlling is required, generating the gradation control data is stopped. Generating the gradation control data is started after completion of the iris controlling.

Description: This invention relates to an imaging apparatus for receiving an image and generating a video signal. An imaging apparatus for generating a video signal in response to a received image with automatic exposure controlling is known. Such a first prior art imaging apparatus is disclosed in Japanese patent application provisional publication No. 5-056377. In the first prior art imaging apparatus, automatic exposure controlling is made in accordance with three control parameters such as an iris, a shutter speed, and a gain. A second prior art imaging apparatus discloses a gradation correction circuit for rich gradation expression in Japanese patent application provisional publication No. 6-253176. Further prior art imaging apparatuses, relating to automatic exposure in conjunction with automatic iris control, are disclosed in US-A-4959727 and GB-A-2277656. The aim of the present invention is to provide a superior imaging apparatus. According to the present invention, imaging apparatuses are provided as defined in appended claims 1 to 9. The present invention also provided methods of controlling an imaging apparatus which are defined in appended claims 10 to 12. The aim and features of the present invention will become more readily apparent from the following detailed description of exemplary embodiments and the accompanying drawings in which: Fig. 1 is a block diagram of an imaging apparatus of a first embodiment; Fig. 2 is a timing chart of the first embodiment showing timings of operation of iris controlling and gradation characteristic detection; Fig. 3 is a block diagram of an imaging apparatus of a second embodiment; and Figs. 4 and 5 show flow charts of the second embodiment showing operation of the microprocessor in Fig. 3. The same or corresponding elements or parts are designated with like references throughout the drawings. Hereinbelow will be described a first embodiment of this invention. Fig. 1 is a block diagram of an imaging apparatus of the first embodiment. The imaging apparatus of the first embodiment comprises a lens unit 101, including a lens assembly 101a and an iris unit 101b, an imaging device 102 such as a CCD (charge coupled device) image sensor, a pre-processing circuit 103 for processing an output of the imaging device 102, an A/D converter 104 for converting an output of the pre-processing circuit 103 and outputs video data, a DSP (digital signal processor) 112 responsive to the video data for effecting a dynamic range expanding operation such as gradation compensation, a main signal processing circuit 108 for generating and outputting a video signal from an output of the DSP 112, a microprocessor 109 for generating gradation characteristic data and iris control data in accordance with outputs of the DSP 112, a D/A converter 110 for converting the iris control data into an iris control signal, an iris control amplifier 111 for driving the iris unit 101b in accordance with the iris control signal. The DSP includes a gradation control processing program 105 for compensating the gradation of an output of the A/D converter 104 and supplies a gradation compensated signal to the main signal processing circuit 108 and a histogram data generation program 107 for generating histogram data of the output of the A/D converter 104 supplied to the microprocessor 109, and a block mean value detection program 106 for detecting mean values of luminance data of the video data from the A/D converter 104 at respective divided screen areas of the video data. The microprocessor 109 includes a gradation characteristic detection program 125 for detecting a gradation characteristic from the histogram data and generating gradation control data supplied to the gradation compensation processing program 105, an iris control program 119, an observing program 126, and a control program 124. The iris control program 119 includes a brightness data generation program 120 for generating brightness data from the mean values from the block mean value detection program 106 every sampling timing, a difference detection program 121 for detecting a first difference between consecutive two brightness data, that is, the previous brightness data at one-sampling prior timing and the present brightness data and comparing the first difference with a first reference REF1 to detect a change in the brightness of the video data and detecting a second difference between the present brightness data and a target value and comparing the second difference with a second reference, and an iris control data generation program 122 for generating iris control data in accordance with the second difference when the first difference is higher than the first reference REF1 until the second difference is lower than the second reference. That is, the difference detection portion 121 judges a condition of the brightness data. The observing program 126 observes the operation condition of the iris control program 119. The control program 124 controls the gradation characteristic detection program 125 in accordance with the observed operation condition of the iris control program 119. The D/A converter 110 converts the iris control data into an iris control signal supplied via the iris control amplifier 111 to the iris unit 101b to control the brightness or exposure of the image focused on the imaging device 102. The lens assembly lOla focuses an image on the imaging device 102 with the brightness of the focused image on the imaging device 102 controlled by the iris unit 101b. An output of the imaging device 102 is supplied to the pre-processing circuit 103. The pre-processing circuit 103 effects a CDS (correlation double sampling) for sampling and connecting the sampled signal and effects automatic-gain controlling. The output of the pre-processing circuit 103 is supplied to the A/D converter 104 which supplies the video data to the DSP 112. The video data is supplied to the block mean value detection program 106. The block mean value detection program 106 divides a screen area of the video data into 48 blocks (horizontal eight blocks and vertical 6 blocks) and detects a mean value of each block. The brightness data generation program 120 weights mean values from the block mean value detection program 106 with respective coefficients and averages forty-eight weighted mean values and generates the brightness data to the difference detection program 121. The difference detection program 121 detects the first difference between consecutive two brightness data, that is, the previous brightness data at one-sampling prior timing and the present brightness data and compares the first difference with the first reference REF1 to detect the change in the brightness of the video data. The difference detection program 121 further detects the second difference between the present brightness data and a target value and compares the second difference with a second reference REF2. When the first difference is higher than the first reference REF1 and when the second difference is higher than the second reference REF2, the difference detection program 121 operates the iris control data generation program 122 and informs the observing program 126 that the iris controlling is being effected. The iris control data generation program 122 generates the iris control data in accordance with the second difference between the brightness data and the target value to output the iris control data. The D/A converter 110, the iris control amplifier 11, and the iris control unit 101b control exposure in accordance with the iris control data. When the second difference is lower than the second reference REF2, the difference detection program 121 informs the observing program 126 that the iris controlling has completed. The histogram data generation program 107 detects a histogram of the luminance data from the A/D converter 104 after completion of the iris controlling. The gradation characteristic detection program 125 detects the gradation characteristic from the detected histogram and generates the gradation control data and supplies and holds the gradation control data to the gradation compensation processing program 105. The observing program 126 observes the difference detection program 121 and when the difference detection program detects that the first difference is higher than the first reference REF1 and that the second difference is higher than the second reference REF2, the observing program 126 stops operation of the gradation characteristic detection program. In response to this, the gradation characteristic detection program 125 stops detecting the gradation characteristic and holds the gradation control data though the gradation characteristic detection program has been operating. When the difference detection program 121 detects the completion of the iris controlling, that is, the second difference is lower than the second reference REF2, the observing program 126 receives the information of the completion of the iris controlling. In response to this the control program 124 starts the histogram data generation by the histogram data generation program 107 and the gradation characteristic detection program 125. When the gradation characteristic detection program is stopped during operating, the observing program 126 re-starts the histogram data generation program 107 and the gradation characteristic detection program 125. The gradation compensation program 105 continuously compensates the gradation of the video data in accordance with the gradation control data from the gradation characteristic detection program 125. Fig. 2 is a timing chart of the first embodiment showing timings of operation of iris controlling and gradation characteristic detection. The iris controlling is started in response to a brightness change A which is detected by the difference detection program 121. That is, the difference detection program 121 detects the first difference between consecutive two brightness data. When the first difference is higher than the first reference REF1, the iris controlling is started. When the iris controlling has completed, the gradation characteristic detection is started. When a brightness change B is detected by the difference detection program 121 during the gradation characteristic detection, the observing program 126 and the control program 124 stops the gradation characteristic detection program 125 and re-starts the iris controlling. A second embodiment will be described. Fig. 3 is a block diagram of an imaging apparatus of the second embodiment. The imaging apparatus of the second embodiment comprises a lens unit 101, including a lens assembly 101a and an iris unit 101b, an imaging device 102 such as a CCD (charge coupled device) image sensor, a pre-processing circuit 103 for processing an output of the imaging device 102, an A/D converter 104 for converting an output of the pre-processing circuit 103 and outputs a video data, a DSP (digital signal processor) 112 responsive to the video data for effecting a dynamic range expanding operation such as gradation compensation, a main signal processing circuit 108 for generating and outputting a video signal from an output of the DSP 112, a microprocessor 130, having a RAM 103a, a ROM 130b, and a timer 130c, for generating gradation characteristic data and iris control data in accordance with outputs of the DSP 112, a D/A converter 110 for converting the iris control data into an iris control signal, an iris control amplifier 111 for driving the iris unit 101b in accordance with the iris control signal. The DSP 112 includes a gradation control processing program 105 for compensating a gradation of an output of the A/D converter 104 and supplies a gradation compensated signal to the main signal processing circuit 108 and a histogram data generation program 107 for generating histogram data of the output of the A/D converter 104 supplied to the microprocessor 130, and a block mean value detection program 106 for detecting mean values of luminance data of the video data from the A/D converter 104 at respective divided screen areas of the video data. Figs. 4 and 5 show flow charts of the second embodiment showing operation of the microprocessor 130 in Fig. 3. Fig. 4 shows a main routine including the gradation characteristic detection step and Fig. 5 shows a timer interruption processing. The microprocessor 130 repeatedly executes a timer interruption processing in response to interruption requested by a timer 130c provided therein. In step st1, the microprocessor 130 saves gradation operational data, that is, data used in the gradation characteristic detection operation. In step st2, the microprocessor 130 obtains the brightness data from the mean values from the block mean value detection program 106. In the following step st3, the microprocessor 130 stores the present brightness data and reads previously stored brightness data. Then, the microprocessor 130 calculates a first difference DIFF1 between the present brightness data and the previously detected and stored data in response to one sampling period prior timing. The microprocessor 130 compares the first difference DIFF 1 with a first reference REF 1 in step st4. When the first difference DIFF1 is higher than the first reference REF1, processing proceeds to step st5. In step st4, if the first reference REF1 is not higher than the first reference REF1, the microprocessor 130 judges whether a second difference between the present brightness data and a target data is higher than the second reference REF2 in step st25. If the second difference DIFF2 is not higher than the second reference REF2 in step st25, processing returns to the main routine and if the second difference DIFF2 is higher than the second reference REF2 in step st25, processing proceeds to step st5. In the following step st5 of the step st4 and the step st25, the microprocessor 130 generates the iris control data in step st5. That is, the microprocessor 130 generates the iris control data to reduce the second difference between the present brightness data and the target data. In the following step st6, the microprocessor 130 detects completion of the iris controlling by comparing the second difference between the present brightness data and the target data with the second reference REF2. If the second difference is lower than the second reference REF2, the completion of the iris controlling is detected and processing proceeds to step st7. If the completion is not detected processing loops step st6 until the completion is detected. In st7, the microprocessor 130 detects whether the timer interruption st0 is started during processing of gradation characteristic detection step stl3 by checking a return address. If the timer interruption st0 is started during processing of gradation characteristic detection step st13, the microprocessor 130 initializes the gradation operational data used for gradation characteristic detection and initializes the histogram data in step st8. Then, the microprocessor 130 sets a gradation operation flag in step st9 to re-start the histogram data generation program 107 and the gradation character detection step stl3. In step st7, if the timer interruption st0 is started not during processing of gradation characteristic detection step st13, processing directly proceed from step st7 to step st9 where the gradation operation flag is set. Then, processing returns to the prior processing, for example, the main routine. In the main routine, the microprocessor 130 checks whether the gradation operation flag is set in step st21. If the gradation operation flag is not set, processing loops step st21 until the gradation operation flag is set. If the gradation operation flag is set in step st21, the microprocessor 130 detects the gradation characteristic from the histogram data from the histogram data generation program 107 and generates the gradation control data in step st23. In the following step st24, the microprocessor 130 renews the gradation control data in the memory and holds the gradation control data until this step is executed in future. Then, processing returns to step st21. As mentioned, the iris controlling is effected when the difference between the previous brightness data and the present brightness data is higher than the first reference and when the difference between the present brightness data and the target data is higher than second reference. In other words, the iris controlling is effected in accordance with the condition of the brightness data. Moreover, if the iris controlling is executed though the gradation characteristic detection step st13 is being executed, the gradation characteristic detection step s13 is interrupted to execute the iris controlling. The gradation characteristic detection and generating the gradation control data are effected in response to the completion of the iris controlling. Moreover, processing of the gradation characteristic detection step st13 is stopped and re-started with initializing the histogram and operational data for gradation characteristic detection operation. As mentioned, the iris controlling is effected with a priority over the gradation compensation. That is, during generating the gradation control data for gradation compensation, if the iris controlling is required, generating the gradation control data is stopped. Generating the gradation control data is started after completion of the iris controlling.

Claims: An imaging apparatus comprising: a lens unit (101) having an iris unit (101b); an imaging device (102), for generating a video signal in response to an image formed on said imaging device by said lens unit (101), with the brightness of said image on said imaging device being controlled by said iris unit (101b); brightness data generation means (120) for repeatedly generating brightness data at regular intervals in accordance with a luminance signal of said video signal; brightness condition judging means (121,122) responsive to said brightness data generation means for judging a condition of said brightness data; iris control means (111) responsive to the judging result of said brightness condition judging means for controlling said iris unit in accordance with said brightness data; gradation characteristic detection means (125) for detecting a gradation characteristic from said video signal and generating gradation control data in accordance with the detected gradation characteristic; gradation compensation means (105) for compensating the gradation of said video signal in accordance with the gradation control data and outputting a gradation compensated video signal; and control means (124,126) responsive to the judging result from said brightness condition judging means for operating either said iris control means or said gradation characteristic detection means with the operation of the iris control means being given priority over the operation of the gradation characteristic detection means. An imaging apparatus, according to claim 1, further comprising observing means (126) for observing said brightness condition judging and detecting completion of operation of said iris control wherein said control means (124) operates said gradation characteristic detection means in response to said completion. An imaging apparatus according to claim 1 or 2, wherein said control means (124) stops operation of said gradation characteristic detection means (125) in response to said brightness condition judging means (121) causing an iris control operation. An imaging apparatus according to claim 3, further comprising: first difference detection means (121), having first storing means, for detecting a first difference between two consecutive ones of said brightness data; first comparing means (121) for comparing said first difference with a first reference (REF1); second difference detection means (121) for detecting a second difference between said brightness data with target data; and second comparing means (121) for comparing said second difference with a second reference (REF2), wherein said control means stops operation of said gradation characteristic detection means in response to the result of judging by said brightness condition judging means when said first difference is higher than said first reference and when said second difference is higher than said second reference. An imaging apparatus according to claim 4, wherein: said brightness condition judging means (121) has a first storing means (130a) for holding said brightness data and generates iris control data in accordance with said brightness data in response to said first and second comparing means to reduce said second difference when said first difference is higher than said first reference and when said second difference is higher than said second reference; wherein said gradation characteristic detection means (125), has second storing means (130a) for holding gradation control data used in the gradation characteristic detection operation; wherein a or said observing means (126) is provided being responsive to said first and second comparing means for detecting whether said iris control is operating; and wherein said control means (124) is also arranged for controlling said gradation characteristic detection means to stop detecting said gradation characteristic in response to the detection result of said observing means (126) indicating iris control to prevent said gradation characteristic detection means from renewing said gradation control data. An imaging apparatus according to claim 1, further comprising: first difference detection means (121) for detecting a first difference between said brightness data and target data; first comparing means for comparing said first difference with a first reference (REF2); wherein said brightness condition judging means (121,122) has first storing means for storing brightness data; wherein iris control data are generated in accordance with said brightness data to reduce said first difference and generating a completion signal when said first difference is lower than said first reference; said apparatus further comprising: second difference detection means, having third storing means, for detecting a second difference between two consecutive ones of said brightness data; second comparing means for comparing said second difference with a second reference (REF1); wherein in response to said first and second comparing means iris control is operated when said first difference is higher than said first reference and when said second difference is higher than said second reference, said iris control data are held in second storing means in response to said completion signal, and operating said gradation characteristic detection means in response to said completion signal. An imaging apparatus according to claim 6, wherein said control means (124), when said second difference is higher than said second reference, operates said iris control means (111) and stops operating said gradation characteristic detection means (125) to prevent said gradation characteristic detection means (105) from renewing said gradation control data. An imaging apparatus according to claim 1, wherein when the iris control is initiated, the gradation control data generation is stopped. An imaging apparatus according to claim 1, wherein when the iris control is initiated, the gradation characteristic detection is stopped. A method of controlling an imaging apparatus having: a lens unit (101) having an iris unit (101b); an imaging device (102) for outputting a video signal in response to an image formed on said imaging device by said lens unit; an iris controller (111); a gradation characteristic detector (125) for detecting a gradation characteristic from said video signal and generating gradation control data in accordance with the detected gradation characteristic; and a gradation compensator (105) for compensating a gradation of said video signal in accordance with the gradation control data and for outputting a gradation compensated video signal; wherein said method comprises the steps of: causing said iris controller (111) to control said iris unit (101b); causing said gradation characteristic detector (125) to detect said gradation characteristic from said video signal; and providing a control priority to said iris controller over said gradation characteristic detector. A method of controlling an imaging apparatus according to claim 10, wherein said step of providing a control priority comprises the step of controlling said gradation characteristic detector (125) to operate in response to completion of an operation of said iris controller (111). A method of controlling an imaging apparatus according to claim 10, wherein said control priority to the iris controller over the gradation characteristic detector is provided by the steps of; detecting a first difference between two consecutive brightness data generated a brightness data generator (120); comparing said first difference with a first reference (REF1); detecting a second difference between the brightness data and target data; comparing said second difference with a second reference (REF2); controlling said iris controller (111) to start, and said gradation characteristics detector (125) to stop, when said first difference is higher than said first reference; and controlling said iris controller (111) to stop, and said gradation detector (125) to start, when said second difference is lower than said second reference.

Inventors: SANO TOSHIYUKI, SANO, TOSHIYUKI
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1998
Main classification: H04N5
IPC codes: H04N5