1. Technical Field
The disclosure relates to an imaging apparatus for imaging an object to generate pixel signals, and a processing device for processing the pixel signals.
2. Related Art
Endoscope systems have been used to observe the inside of a subject, in medical field. The endoscopes are commonly configured so that an elongated flexible insertion section is inserted into the subject such as a patient, illumination light supplied from a light source device is emitted from a distal end of the insertion section, reflection of the illumination light is received by an imaging unit at the distal end of the insertion section, and an in-vivo image is captured. The in-vivo image captured by the imaging unit of the endoscope appears on a display of the endoscope system, after subjected to predetermined image processing in a processing device of the endoscope system. A user, such as a physician, observes an organ of the subject based on the in-vivo image displayed on the display.
Such an endoscope system has an image sensor, and a complementary metal oxide semiconductor (CMOS) sensor may be applied as the image sensor. The CMOS sensor may generate image data by a rolling shutter method for exposure or reading of horizontal lines with a time difference.
In contrast, solid state light sources, such as an LED or a laser diode, which are used as an illumination light source, have been spread rapidly because they can adjust an electric current passing through elements to readily change the brightness, have a small size and reduced power consumption compared with a conventional lamp, and have a high response speed. However, light emitted from such a light source is known for changing in spectral characteristics depending on a current value or temperature of the light source itself. In order to avoid such a situation, control of illumination light amount (PWM control) by adjusting a light emission time of the light source is performed in addition to current control. Thus, a diaphragm mechanism or the like for adjusting an illumination light amount as in a halogen or xenon light source can be eliminated to reduce the size of a device, and an operation portion can be eliminated to reduce a failure rate.
In this endoscope system, a method for adjusting a brightness of illumination light has been proposed, in which illumination light is continuously lit when a far point is observed, and the PWM control and current control are performed during a V-blank period of a CMOS image sensor when a near point is observed (see JP 5452785 B1, for example).
In some embodiments, an imaging apparatus includes: an illumination unit configured to emit illumination light to irradiate an object; a light receiving unit having a plurality of pixels arranged on a plurality of horizontal lines, the plurality of pixels being configured to receive light from the object irradiated with the illumination light by the illumination unit, and to perform photoelectric conversion on the received light to generate pixel signals; an imaging controller configured to control the plurality of pixels of the light receiving unit to sequentially start exposure for each of the horizontal lines, and to sequentially read the pixel signals from the plurality of pixels belonging to the horizontal lines after a lapse of a predetermined exposure period from start of exposure; an illumination controller configured to control switching of an illumination state in a reading period for sequentially reading the pixel signals for each of the horizontal lines, between a first illumination state and a second illumination state different from the first illumination state, and configured to control an amount of the illumination light emitted from the illumination unit such that an integrated value of the amount of the illumination light emitted from the illumination unit during one frame period immediately after switching the illumination state of the illumination unit is equal to an integrated value of the amount of the illumination light emitted from the illumination unit during next one frame period subsequent to the one frame period.
In some embodiments, a processing device controls an illumination device having an illumination unit for emitting illumination light, causes an imaging controller to sequentially start exposure for each of a plurality of horizontal lines of a light receiving unit, the light receiving unit having a plurality of pixels arranged on the plurality of horizontal lines, the plurality of pixels being configured to perform photoelectric conversion on light from an object irradiated with the illumination light, and processes pixel signals read sequentially from the plurality of pixels belonging to the horizontal lines after a lapse of a predetermined exposure period from start of exposure. The processing device includes an illumination controller configured to control switching of an illumination state in a reading period for sequentially reading the pixel signals for each of the horizontal lines, between a first illumination state and a second illumination state different from the first illumination state, and configured to control an amount of the illumination light emitted from the illumination unit such that an integrated value of the amount of the illumination light emitted from the illumination unit during one frame period immediately after switching the illumination state of the illumination unit is equal to an integrated value of the amount of the illumination light emitted from the illumination unit during next one frame period subsequent to the one frame period.
The above and other features, advantages and technical and industrial significance of this invention will be better understood by reading the following detailed description of presently preferred embodiments of the invention, when considered in connection with the accompanying drawings.
An endoscope system will be described below as modes for carrying out the present invention (hereinafter, referred to as “embodiment(s)”). The present invention is not limited to the embodiments. The same reference signs are used to designate the same elements throughout the drawings.
The endoscope 2 includes an insertion section 21 inserted into the subject, an operating unit 22 located on a proximal end side of the insertion section 21 and grasped by an operator, and a flexible universal cord 23 extending from the operating unit 22.
The insertion section 21 employs illumination fibers (light guide cable), an electric cable, and the like. The insertion section 21 has a distal end portion 24 having an imaging unit including a CMOS image sensor as an image sensor for imaging the inside of the subject, a bending section 25 including a plurality of bending pieces to be freely bent, and a flexible tube portion 26 provided on a proximal end side of the bending section 25 and having flexibility. The distal end portion 24 is provided with an illumination unit for illuminating the inside of the subject through an illumination lens, an imaging unit for imaging the inside of the subject, an opening (not illustrated) communicating with a treatment tool channel, and an air/water feeding nozzle (not illustrated).
The operating unit 22 has a bending knob 22a for bending the bending section 25 vertically and horizontally, a treatment tool insertion section 22b through which a treatment tool such as biopsy forceps or a laser scalpel is configured to be inserted into a body cavity of the subject, and a plurality of switch portions 22c for operating peripheral devices such as the processing device 3, the light source device 4, an air feeding device, a water feeding device, and a gas feeding device. The treatment tool inserted through the treatment tool insertion section 22b is exposed from an opening at a distal end of the insertion section 21 through the treatment tool channel provided therein.
The universal cord 23 employs illumination fibers, an electric cable, and the like. The universal cord 23 has a connector 27 bifurcated at a proximal end to be removably mounted to the processing device 3 and the light source device 4. The universal cord 23 transmits the image signal captured by the imaging unit provided at the distal end portion 24, to the processing device 3 through the connector 27. The universal cord 23 transmits illumination light emitted from the light source device 4, to the distal end portion 24 through the connector 27, the operating unit 22, and the flexible tube portion 26.
The processing device 3 performs predetermined image processing on the imaging signal of the inside of the subject, which has been obtained by the imaging unit located at the distal end portion 24 of the endoscope 2, and input through the universal cord 23. The processing device 3 controls each unit of the endoscope system 1 based on various instruction signals transmitted from the switch portions 22c in the operating unit 22 of the endoscope 2, through the universal cord 23.
The light source device 4 employs a light source, a condenser lens, or the like for emitting white light. The light source device 4 supplies the endoscope 2 connected through the connector 27 and the illumination fibers of the universal cord 23 with white light from a white light source to illuminate the subject as an object.
The display device 5 employs a liquid crystal or organic electro luminescence (EL) display or the like. The display device 5 displays, through an image cable, various information including an image corresponding to a display image signal subjected to predetermined image processing by the processing device 3. Thus, the operator can operate the endoscope 2, while viewing an image (in-vivo image) displayed on the display device 5, and a desired position in the subject can be observed and characteristics thereof can be determined.
A configuration of the endoscope system 1 illustrated in
The endoscope 2 has an imaging unit 29 at the distal end portion 24. The imaging unit 29 includes a light receiving unit 29a for generating pixel signals representing the inside of the subject, from an optical image focused on a light receiving surface, a reading unit 29b, an analog front end unit (hereinafter referred to as “AFE unit”) 29c, and an imaging controller 29d. Note that an optical system (not illustrated), such as an objective lens, is disposed on a light receiving surface side of the light receiving unit 29a.
In the light receiving unit 29a, a plurality of pixels is arranged on the light receiving surface. Each of the pixels receives light from the object illuminated by the light source device 4, photoelectrically converts the received light, and generates a pixel signal. In the light receiving unit 29a, the plurality of pixels is arranged in a matrix form. In the light receiving unit 29a, a plurality of pixel rows (horizontal lines) each having two or more pixels arranged along a horizontal direction is arranged in a vertical direction. The light receiving unit 29a generates the pixel signals representing the inside of the subject from the optical image focused on the light receiving surface.
The reading unit 29b performs exposure of the plurality of pixels in the light receiving unit 29a, and reading of the pixel signals from the plurality of pixels. The light receiving unit 29a and the reading unit 29b include for example the CMOS image sensor, and can perform exposure and reading for each horizontal line. The reading unit 29b can also generate the pixel signals by a rolling shutter method. The rolling shutter method performs imaging operation of exposure and reading, from a top horizontal line, and performs resetting of electrical charge, exposure, and reading for each horizontal line with a time difference. Thus, when the imaging unit 29 employs the rolling shutter method, exposure timing and read timing for each horizontal line are different even in one imaging time (frame).
The AFE unit 29c performs noise removal, A/D conversion, or the like on an electrical signal of a pixel signal read by the reading unit 29b. The AFE unit 29c performs reduction of a noise component included in the electrical signal (analog), adjustment of an amplification rate (gain) of the electrical signal to maintain an output level, and A/D conversion of the analog electrical signal.
The imaging controller 29d controls various operations of the light receiving unit 29a, the reading unit 29b, and the AFE unit 29c of the imaging unit 29, according to a control signal received from the processing device 3. An image signal (digital) generated by the imaging unit 29 is output to the processing device 3 through a signal cable not illustrated or the connector 27.
Next, the processing device 3 will be described. The processing device 3 includes an image processing unit 31, a display controller 33, a brightness detecting unit 34, a control unit 35, an input unit 38, and a storage unit 39.
The image processing unit 31 performs predetermined signal processing on the pixel signals (image signal) of the plurality of pixels read by the reading unit 29b of the imaging unit 29. The image processing unit 31 performs, on the pixel signals, image processing such as optical black subtraction, gain adjustment, or white balance (WB) adjustment. When the image sensor has a Bayer array, the image processing unit 31 performs, on the image signal, image processing such as synchronization, color matrix calculation, gamma correction, color reproduction, or edge enhancement. The image processing unit 31 includes a gain adjustment unit 32 for performing gain adjustment.
The display controller 33 generates the display image signal to be displayed on the display device 5, from the image signal processed by the image processing unit 31, and outputs the display image signal to the display device 5. The display image signal output to the display device 5 is for example a digital signal having an SDI, DVI, or HDMI (registered trade mark) format. Alternatively, the display controller 33 may convert the display image signal from the digital signal to the analog signal, then change image data of the converted analog signal to have a format of a high vision system or the like, and output the image data to the display device 5.
The brightness detecting unit 34 detects a brightness of the object, based on the pixel signals read by the reading unit 29b. The brightness detecting unit 34 obtains for example sample image data from the image processing unit 31, detects a brightness level corresponding to each pixel, and outputs the detected brightness level to the control unit 35.
The control unit 35 employs a CPU or the like. The control unit 35 controls processing operation of each unit of the processing device 3. The control unit 35 transfers instruction information, data, or the like to each component of the processing device 3 to control the operation of the processing device 3. The control unit 35 is connected to the imaging unit 29 and the light source device 4 through cables. The control unit 35 has an illumination controller 36 and a gain setting unit 37.
The illumination controller 36 controls switching of an illumination state of an illumination unit 42 described later, between a first illumination state and a second illumination state. In the first illumination state, illumination light is emitted during at least part of a reading period of one frame period in which the reading unit 29b reads all of the horizontal lines of the light receiving unit 29a. In the second illumination state, illumination light is not emitted during the reading period. The illumination controller 36 performs switching between the first illumination state and the second illumination state, based on the brightness of the object detected by the brightness detecting unit 34. The illumination controller 36 performs switching between the first illumination state and the second illumination state at starting time of one frame period.
In the first illumination state, the illumination controller 36 maintains a constant intensity of illumination light emitted from the illumination unit 42, during at least part of the reading period. That is, the illumination controller 36 controls the illumination state of the illumination unit 42 not to cause temporal change in amount of light, during at least part of a single reading period. The illumination controller 36 variably controls an intensity and illumination time of the illumination light emitted from the illumination unit 42, during a period other than the reading period. In other words, the illumination controller 36 performs PWM control of the intensity and illumination time of the illumination light emitted from the illumination unit 42 of the light source device 4, during a period other than the reading period. Thus, the illumination controller 36 controls an amount of illumination light emitted from the illumination unit 42 such that an integrated value of the amount of light emitted from the illumination unit 42 during one frame period immediately after switching the illumination state of the illumination unit 42 is equal to an integrated value of the amount of light emitted from the illumination unit 42 during next one frame period subsequent to the one frame period. Thus, a curve indicating an amount of illumination light emitted from the illumination unit 42 can be continuously changed. The illumination controller 36 sets the amount, emission timing, or the like of illumination light emitted from the illumination unit 42, based on the brightness of the object included in the image signal, which is detected by the brightness detecting unit 34, and outputs a light-controlled signal including the set conditions to the light source device 4.
The gain setting unit 37 calculates a gain factor, based on the brightness level detected by the brightness detecting unit 34, and outputs the calculated gain factor to the gain adjustment unit 32. In the gain setting unit 37, different gain factors for respective horizontal lines are set to the pixel signals read by the reading unit 29b during a reading period in which the illumination state of the illumination unit 42 is switched from an illumination state during a previous reading period to the other illumination state. Thus, in the gain adjustment unit 32, the pixel signals read by the reading unit 29b during a reading period in which the illumination state of the illumination unit 42 is switched from an illumination state during a previous reading period to the other illumination state, are multiplied by the different gain factors for respective horizontal lines, and thus gain adjustment is performed.
The input unit 38 employs an operation device such as a mouse, a keyboard, or a touch panel, and receives input of various instruction information for the endoscope system 1. Specifically, the input unit 38 receives input of subject information (e.g., ID, date of birth, name, or the like), identification information of the endoscope 2 (e.g., ID or examination item), and various instruction information such as examination contents.
The storage unit 39 employs a volatile memory or a non-volatile memory, and stores various programs for operating the processing device 3 and the light source device 4. The storage unit 39 temporarily stores information being processed by the processing device 3. The storage unit 39 stores the pixel signals read by the reading unit 29b in frames. The storage unit 39 may use a memory card or the like mounted from outside the processing device 3.
Next, the light source device 4 will be described. The light source device 4 has a light source controller 41, and the illumination unit 42 provided with a light source driver 43 and a light source 44.
The light source controller 41 controls emission of illumination light from the illumination unit 42, under the control of the illumination controller 36. The light source driver 43 supplies the light source 44 with predetermined power, under the control of the light source controller 41. The light source 44 employs a light source such as a white LED for emitting white light, and an optical system such as a condenser lens. The light source 44 generates illumination light for supplying the endoscope 2. The light emitted from the light source 44 is transmitted through a light guide cable 28 to an illumination window 28a at the distal end portion 24 of the insertion section 21, through the connector 27 and the universal cord 23, and the light illuminates the object. Note that, the imaging unit 29 is disposed in the vicinity of the illumination window 28a.
First, the illumination state of the illumination unit 42 will be described. The illumination state of the illumination unit 42 is switched from the first illumination state to the second illumination state to gradually reduce the amount of illumination light.
When the imaging unit 29 employs the rolling shutter method in which exposure timing and read timing are changed for each horizontal line, even if the pixel signals are in the same frame, the exposure timing and the read timing are different in respective horizontal lines, as illustrated in (2) of
In the reading period, the illumination state of the illumination unit 42 is controlled by the illumination controller 36 so that the illumination unit 42 has the first illumination state in which illumination light having a certain intensity is emitted, or the second illumination state in which illumination light is not emitted. In an example of
An entire simultaneous exposure period VN for all lines in the frame period TN, the illumination unit 42 emits illumination light having an intensity E2 only during a period P2 in the entire simultaneous exposure period VN for all lines, similarly to an entire simultaneous exposure period V(N−1) for all lines in the frame (N−1). In this configuration, in order to achieve continuous control of light amount between the frame N having the switched illumination state and the frame (N+1) subsequent to the frame N, the illumination controller 36 controls the amount of illumination light emitted from the illumination unit 42 such that an integrated value of the amount of light emitted from the illumination unit 42 during the frame period TN is equal to an integrated value of the amount of light emitted from the illumination unit 42 during the frame period T(N+1). Specifically, the illumination controller 36 causes the illumination unit 42 to emit illumination light having an intensity E2 over the entire simultaneous exposure period V(N+1) for all lines in the frame (N+1) so that an integrated value L(N+1) (=V(N+1)×E2) of the amount of light emitted from the illumination unit 42 during the frame period T(N+1), and an integrated value LN (=R(N−1)×E1+P2×E2) of the amount of light emitted from the illumination unit 42 during the frame period TN are equal to each other. In frames subsequent to the frame (N+1), the illumination controller 36 reduces for example the illumination time during each entire exposure period for all lines, or the intensity of illumination light to gradually reduce the amount of illumination light emitted to the object.
Consequently, the gain setting unit 37 obtains an exposure time in each horizontal line of the frame N, from the illumination controller 36, and sets the different gain factors for respective horizontal lines according to the obtained exposure time in each horizontal line. In an example of
As descried above, in the gain adjustment unit 32, the pixel signals are multiplied by a relatively higher gain factor as a horizontal line is read later, and thus, the gain adjustment is performed to correct uneven luminance. Here, the pixel signals are read by the reading unit 29b during the reading period in which the illumination state of the illumination unit 42 is switched from the first illumination state being an illumination state in the previous reading period to the second illumination state.
Next, the illumination state of the illumination unit 42 will be described, in which the illumination state of the illumination unit 42 is switched from the second illumination state to the first illumination state to gradually increase the amount of illumination light.
In a frame M, a frame period TM from time tg to time tj includes a period from time ti to time tj defined as a reading period RM, a period from time tg to time th overlapping with a reading period R(M−1) for a previous frame (M−1) in which exposure is started sequentially from the top horizontal line in the frame (M−1) where reading is finished, and a period from time th to time ti defined as an entire simultaneous exposure period VM for all lines in which all horizontal lines of the light receiving unit 29a are simultaneously exposed. In a frame (M+1), a frame period T(M+1) from time ti to time tl includes a period from time tk to time tl defined as a reading period R(M+1), a period from time ti to time tj overlapping with the reading period RM in which exposure is started sequentially from the top horizontal line in the frame M where reading is finished, and a period from time tj to time tk defined as an entire simultaneous exposure period V(M+1) for all lines.
In an example of
Thus, the gain setting unit 37 sets the gain factor to be relatively gradually reduced relative to line number increasing from the top horizontal line 1 to the bottom horizontal line K, for pixel signals DM of the frame M read by the reading unit 29b during the reading period RM. Consequently, as illustrated in (3) of
As descried above, in the gain adjustment unit 32, the pixel signals are multiplied by a relatively lower gain factor as a horizontal line is read later, and thus, the gain adjustment is performed to correct uneven luminance. Here, the pixel signals are read by the reading unit 29b during a reading period in which the illumination state of the illumination unit 42 is switched from the first illumination state being an illumination state during a previous reading period to the second illumination state.
As described above, according to an embodiment, the pixel signals read by the reading unit 29b during a reading period in which the illumination state of the illumination unit 42 is switched from an illumination state during a previous reading period to the other illumination state, are multiplied by the different gain factors for respective horizontal lines, and uneven luminance of the image is eliminated. Therefore, even if the illumination state is switched, the smooth change in brightness of the display image and the image quality can be maintained.
Note that in the embodiment, the first illumination state being a state in which illumination light is emitted over the reading period has been described, but, as a matter of course, a state in which illumination light is emitted only during at least a partial period of the reading period may be employed. Furthermore, the illumination controller 36 may perform switching between the first illumination state and the second illumination state not only at the starting time of one frame period, but at a desired time. A frame to be subjected to the gain adjustment or horizontal lines to which different gain factors are to be set is different depending on time at which the illumination controller 36 performs switching between the first illumination state and the second illumination state. Thus the gain setting unit 37 preferably determines the frame to be subjected to the gain adjustment or the horizontal lines to which different gain factors are to be set, according to time at which the illumination controller 36 performs switching between the first illumination state and the second illumination state, and the read timing at which the reading unit 29b reads the horizontal lines. Furthermore, in the embodiment, illumination control has been exemplified which equalizes the integrated values of the amount of illumination light during frame periods, between a frame having a switched illumination state and a subsequent frame, but, as a matter of course, the illumination control is not particularly limited to the above, and the integrated values of the amount of illumination light during frame periods may be different between the frame having a switched illumination state and the subsequent frame.
In addition, programs to be executed for various processing executed in the processing device 3 according to the embodiment and the other components may be provided to be recorded in a computer-readable recording medium such as a CD-ROM, flexible disk, CD-R, digital versatile disk (DVD), in an installable format file or in an executable format file, or the programs may be stored on a computer connected to a network such as the Internet, and provided to be downloaded through the network. Furthermore, the programs may be provided or distributed through the network such as the Internet.
According to some embodiments, an illumination state of an illumination unit is switched between a first illumination state and a second illumination state different from the first illumination state, pixel signals are read during a reading period after the illumination state is switched, gain adjustment is performed by multiplying the read pixel signals by different gain factors depending on horizontal lines, to eliminate uneven luminance of images. Therefore, even if the illumination state is switched, it is possible to maintain the smooth change in brightness of the display image and the image quality.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2014-181305 | Sep 2014 | JP | national |
This application is a continuation of PCT international application Ser. No. PCT/JP2015/074988, filed on Sep. 2, 2015 which designates the United States, incorporated herein by reference, and which claims the benefit of priority from Japanese Patent Application No. 2014-181305, filed on Sep. 5, 2014, incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2015/074988 | Sep 2015 | US |
Child | 15231865 | US |