An aspect of the present invention relates to an image-capture device, an image acquisition device, an image acquisition method, an image processing device, and an image processing program.
An image-capture device equipped with an electronic multiplying charge coupled devices (EMCCD) sensor is known as an image-capture device for capturing an image of weak light emitted from an object such as a cell (for example, see Patent Literature 1). In the image-capture device, electrical charge subjected to photoelectrical conversion is multiplied by a multiplication unit and is subjected to AD conversion, so that image data with a high S/N ratio can be acquired.
[Patent Literature 1] Japanese Unexamined Patent Publication No. 2008-271049
Also, an image-capture device equipped with a complementary metal oxide semiconductor (CMOS) sensor is known as an image-capture device for capturing an image of weak light as described above. Compared with the image-capture device equipped with an EMCCD sensor, the image-capture device has a merit in that a frame rate is high and a field of view is wide. On the other hand, because AD conversion is performed for each pixel of the CMOS sensor, variation in a digital value after AD conversion tends to occur between pixels. In a state in which a predetermined pixel value is set as a dark offset value which is a black level, when an image of weak light is captured, the digital values of the digital signal vary and are distributed in the vicinity of the dark offset value. When the digital values vary in the vicinity of the dark offset value which is the black level, a digital value smaller than the dark offset value may increase and the pixel value of the dark offset value which is the black level may become relatively large. In this case, there is a problem in that the contrast of the image is lowered.
An aspect of the present invention has been made in view of the above circumstances, and an objective of the present invention is to provide an image with high contrast even when an image of weak light is captured using an image sensor which performs AD conversion for each pixel.
According to an aspect of the present invention, there is provided an image-capture device including: an image sensor having a light-receiving surface in which pixels are two-dimensionally arranged, the pixels having a photodiode for converting input light into an electrical signal and outputting an analog signal and an AD conversion unit for converting the analog signal into a digital signal based on a dark offset value indicating a black level of an image; and a data processing unit having a clip value set in accordance with the dark offset value and configured to perform a conversion process of converting a digital value of a digital signal having a digital value that is smaller than the clip value into the clip value and output image data based on a digital signal after the conversion process.
In this image-capture device, the clip value is set according to the dark offset value indicating the black level of the image. That is, the clip value is set according to the dark offset value which is a threshold value of the digital value for which black is displayed in the image. The digital value of a digital signal whose digital value is smaller than the clip value among the digital signals subjected to the AD conversion in the AD conversion unit of the image sensor is converted into the clip value. Thereby, all the digital values smaller than the dark offset value are clip values. When an image of weak light is captured, if the digital value of the digital signal varies around the dark offset value, a digital value smaller than the dark offset value may increase and the pixel value of the dark offset value that is the black level may be relatively large. In this case, there is a problem that the image may be entirely white and the contrast of the image is lowered. In this regard, all the digital values smaller than the clip value set in accordance with the dark offset value are set to the clip value, so that it is possible to decrease a digital value smaller than the dark offset value and suppress a relative increase in the pixel value of the dark offset value. Thereby, it is possible to provide an image with high contrast even when an image of weak light is captured.
Also, the clip value may be a dark offset value. Thereby, all the digital values smaller than the dark offset value are set to the dark offset value, so that there are no digital values smaller than the dark offset value. Thereby, it is possible to prevent the pixel value of the dark offset value from being relatively large and provide an image with higher contrast.
Also, the data processing unit may correct the digital value of a digital signal having a digital value larger than or equal to a predetermined threshold value among digital signals. Thereby, it is possible to eliminate white spot noise when an image is displayed.
Also, the data processing unit may perform digital gain processing on the digital signal. Thereby, because the conversion process of converting the digital signal amplified by the digital gain processing into the clip value is performed, the conversion process can be performed more accurately and easily.
Also, the data processing unit may perform an averaging process on the digital signal. Thereby, it is possible to eliminate white spot noise when an image is displayed.
Also, the data processing unit may perform an addition process on the digital signal. Thereby, it is possible to eliminate white spot noise when an image is displayed.
According to an aspect of the present invention, there is provided an image acquisition device including: the above-described image-capture device; a table creation unit configured to create a lookup table in which each digital value in the image data is associated with a predetermined pixel value based on a distribution of digital values of digital signals in the image data output from the data processing unit of the image-capture device; and a data conversion unit configured to convert each digital value in the image data into the predetermined pixel value and generate display image data based on the lookup table.
In this image acquisition device, display image data is generated from the lookup table created based on a distribution of digital values in image data in which all digital values smaller than the dark offset value are set to the clip value. A range of the pixel value in the display image data generated by the image acquisition device is predetermined. If the lookup table is created based on image data in which the digital value of the digital signal varies in the vicinity of the dark offset value, the contrast in the display image data generated based on the lookup table decreases. In this regard, it is possible to provide a display image with high contrast even if an image of weak light is captured by creating the look-up table based on image data in which a minimum value of a pixel value is set as the clip value.
According to an aspect of the present invention, there is provided an image acquisition method of generating display image data based on light from an object using an image sensor having a light-receiving surface in which pixels including a photodiode and an AD conversion unit are two-dimensionally arranged. The image acquisition method includes the steps of: outputting an analog signal by photoelectrically converting input light using the photodiode; converting the analog signal into a digital signal based on a dark offset value indicating a black level of an image using the AD conversion unit; performing a conversion process of converting a digital value of a digital signal having a digital value that is smaller than the clip value set in accordance with the dark offset value among digital signals into the clip value and outputting image data based on a digital signal after the conversion process; creating a lookup table in which each digital value in the image data is associated with a predetermined pixel value based on a distribution of digital values of digital signals in the pixel data; and converting each digital value in the image data into the predetermined pixel value and generating display image data based on the lookup table.
Also, according to an aspect of the present invention, there is provided an image processing device for processing a digital signal output from an image sensor having a light-receiving surface in which pixels are two-dimensionally arranged, the pixels having a photodiode for converting input light into an electrical signal and outputting an analog signal and an AD conversion unit for converting the analog signal into the digital signal based on a dark offset value indicating a black level of an image, the image processing device including: a data processing unit having a clip value set in accordance with the dark offset value and configured to perform a conversion process of converting a digital value of a digital signal having a digital value that is smaller than the clip value into the clip value and output image data based on a digital signal after the conversion process.
Also, the image processing device further includes: a table creation unit configured to create a lookup table in which each digital value in the image data is associated with a predetermined pixel value based on a distribution of digital values of digital signals in the image data output from the data processing unit; and a data conversion unit configured to convert each digital value in the image data into the predetermined pixel value and generate display image data based on the lookup table.
Also, according to an aspect of the present invention, there is provided an image processing program for causing an image processing circuit to operate as, in an image processing device for processing a digital signal output from an image sensor having a light-receiving surface in which pixels are two-dimensionally arranged, the pixels having a photodiode for converting input light into an electrical signal and outputting an analog signal and an AD conversion unit for converting the analog signal into the digital signal based on a dark offset value indicating a black level of an image, a data processing unit having a clip value set in accordance with the dark offset value and configured to perform a conversion process to convert a digital value of a digital signal having a digital value that is smaller than the clip value into the clip value and output image data based on a digital signal after the conversion process.
Also, the image processing program further causes the image processing circuit to operate as: a table creation unit configured to create a lookup table in which each digital value in the image data is associated with a predetermined pixel value based on a distribution of digital values of digital signals in the image data output from the data processing unit; and a data conversion unit configured to convert each digital value in the image data into the predetermined pixel value and generate display image data based on the lookup table.
Also, in the image obtaining method, the image processing device, and the image processing program, the clip value may be a dark offset value. Thereby, because all the digital values smaller than the dark offset value are set to the dark offset value, there are no digital values smaller than the dark offset value. Thereby, it is possible to prevent the pixel value of the dark offset value from being relatively large and provide an image with higher contrast.
According to an aspect of the present invention, it is possible to provide an image having high contrast even when an image of weak light is captured in an image-capture device provided with an image sensor which performs AD conversion for each pixel.
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference signs, and redundant description thereof will be omitted.
As illustrated in
The image acquisition device 1 includes a lens unit 5, a camera unit 10 (an image-capture device), a computer 20, a display device 30, and an input device 40.
The lens unit 5 has a lens that forms an image of fluorescence emitted from the sample S on the light-receiving surface of the image sensor 11 (to be described below) of the camera unit 10. The lens unit 5 is attached to a lens mount portion of the camera unit 10.
The camera unit 10 is an image-capture device including the image sensor (an image sensor) 11 for receiving light from the sample S via the lens unit 5 and an image processing circuit 15 (a data processing unit) for performing a predetermined process on electrical signals from the image sensor 11.
The image sensor 11 is a CMOS image sensor having a light-receiving surface in which a plurality of pixels 12 are two-dimensionally arranged. In the image sensor 11, the input light is converted into an electrical signal in each pixel 12, and the electrical signal is output. Each pixel 12 is configured to include a photodiode 12a and an AD conversion unit 12b. The photodiode 12a converts input light input via the lens unit 5 into an electrical signal, more specifically, a voltage signal, and outputs an analog signal after photoelectrical conversion. The AD conversion unit 12b converts the analog signal output from the photodiode 12a into a digital signal and outputs the digital signal. In the AD conversion unit 12b, a predetermined dark offset value is predetermined as a pixel value indicating a black level of an image. The black level is a predetermined threshold value for setting a pixel value smaller than or equal to the black level to black. Specifically, the dark offset value is set to, for example, a count of 100. The dark offset value indicates the black level, but is set to a value larger than a count of 0 in consideration of noise included in the analog signal. This is because it is not possible to express a value smaller than the dark offset value when the value smaller than the dark offset value is observed due to noise included in the analog signal if the dark offset value has a count of 0. That is, the dark offset value is set to fall within an input range of the AD conversion unit 12b even if darkness fluctuates due to noise.
AD conversion by the AD conversion unit 12b will be described with reference to
The image processing circuit 15 is a data processing unit (an image processing device) that outputs image data based on the digital signal output from the AD conversion unit 12b of the image sensor 11. The image processing circuit 15 includes a field-programmable gate array (FPGA), an image processing processor, or the like. According to a program (an image processing program) stored in a memory of the image processing circuit 15, the FPGA or the image processing processor of the image processing circuit 15 operates as a white spot elimination processing unit 16, a digital signal conversion unit 17, and an image data output unit 18. Accordingly, the image processing circuit 15 is a data processing unit (an image processing device) including the white spot elimination processing unit 16, the digital signal conversion unit 17, and the image data output unit 18.
The white spot elimination processing unit 16 performs a first white spot elimination process and a second white spot elimination process on the digital signal output from the AD conversion unit 12b. The first white spot elimination process and the second white spot elimination process of the white spot elimination processing unit 16 are performed in a stage previous to the conversion process (to be described below) by the digital signal conversion unit 17. Also, the first white spot elimination process and the second white spot elimination process may be performed in a stage subsequent to the conversion process or at the same time thereas. The white spot elimination process is a process of suppressing the occurrence of white spot noise when a digital signal having an extremely large digital value is displayed as an image in comparison with other digital signals.
The first white spot elimination process is a process of correcting the digital value of a digital signal of which the digital value is larger than or equal to a predetermined threshold value among the digital signals of pixels 12. Specifically, the white spot elimination processing unit 16 identifies a pixel 12 related to a digital signal whose digital value (pixel value) is larger than or equal to a predetermined threshold value. Further, the white spot elimination processing unit 16 replaces the digital value of the digital signal of the identified pixel 12 (which hereinafter may be simply referred to as the pixel value of the pixel 12) with an average value of pixel values of the pixels 12 around the identified pixel 12. The surrounding pixels are, for example, eight pixels 12 other than the identified pixel 12 in a set of 3×3 pixels 12 around the identified pixel 12. In addition to the first white spot elimination process, the white spot elimination processing unit 16 may perform a process of correcting the digital value of a digital signal whose digital value is smaller than a predetermined threshold value (a threshold value different from the above-described threshold value).
For example, the second white spot elimination process is a process of averaging the pixel values of all the pixels 12 using the pixel values of the pixels 12 around each pixel 12. Specifically, the white spot elimination processing unit 16 performs a filtering process using a Gaussian filter, drift binning, or the like on the digital signal and performs an averaging process. In the filtering process using a Gaussian filter, the white spot elimination processing unit 16 first identifies a set of 3×3 pixels 12 around one pixel 12. Further, the white spot elimination processing unit 16 assigns a weighting coefficient to each pixel 12 of the set of the identified pixels 12.
Although the averaging process has been described as the second white spot elimination process, an addition process may be performed instead of the averaging process. In the addition process, the white spot elimination processing unit 16 identifies, for example, a set of 3×3 pixels 12 around one pixel 12, and sets a sum of the weighted pixel values of the pixels 12 in the set of pixels 12 as a pixel value of one center pixel 12 by using a Gaussian filter, drift binning, or the like.
The digital signal conversion unit 17 performs digital gain processing on the digital signal on which the white spot elimination process has been performed by the white spot elimination processing unit 16.
The digital signal conversion unit 17 has a clip value set in accordance with the dark offset value and performs a conversion process of converting a digital value of a digital signal having a digital value smaller than the clip value into the clip value. The clip value is a threshold value in a certain process and is a value used for converting all values smaller (or larger) than the clip value into clip values. Here, the clip value is a threshold value in the above-described conversion process and is a value used for converting all digital values smaller than the clip value into the clip value. The clip value is set in accordance with the dark offset value. The fact that the clip value is set in accordance with the dark offset value means that the clip value is set based on the dark offset value when there is a digital value to be converted into a clip value by the conversion process. The clip value is, for example, a dark offset value. In this case, all the digital values smaller than the dark offset value are set to the dark offset value by the conversion process.
The image data output unit 18 outputs image data based on a digital signal after the conversion process by the digital signal conversion unit 17 to the computer 20.
The computer 20 generates display image data to be displayed on the display device 30 based on the image data output from the camera unit 10. For example, the computer 20 is implemented by a personal computer or a tablet terminal together with a display device 30 and an input device 40 to be described below. The computer 20 has an image processing circuit such as an FPGA or an image processing processor. The image processing circuit of the computer 20 operates as an LUT creation unit 21, a data conversion unit 22, a control unit 23, and a storage unit 24 according to a program stored in the memory of the computer 20. Accordingly, the computer 20 includes the LUT creation unit 21, the data conversion unit 22, the control unit 23, and the storage unit 24.
Based on a distribution of digital values of digital signals in image data output from the camera unit 10, the LUT creation unit 21 is a table creation unit which creates a lookup table (LUT) in which each digital value in the image data is associated with a predetermined pixel value. A range of the predetermined pixel values, that is, a minimum value and a maximum value of the predetermined pixel values, are predetermined. The LUT creation unit 21 associates the minimum value of the digital values in the image data with the minimum value of the predetermined pixel values and creates an LUT in which the maximum value of the digital values in the image data is associated with the maximum value of the predetermined pixel values. In the LUT, a correspondence relation between the minimum value and the maximum value is determined, and the correspondence relation in another range is also determined. For example, when the correspondence relation between the minimum value and the maximum value is determined in the LUT, the correspondence relation in another range is also determined to be a proportional relation uniquely determined from the correspondence relation between the minimum value and the maximum value. A relation determined from the correspondence relation is not limited to a proportional relation, and may be another relation such as a squared function relation. The LUT creation unit 21 creates an LUT every time image data is output from the camera unit 10. The LUT creation unit 21 may create the LUT only at the time of initial setting, rather than every time the image data is output from the camera unit 10.
Based on the LUT created by the LUT creation unit 21, the data conversion unit 22 converts each digital value in the image data into a predetermined pixel value and generates display image data. As described above, in the LUT, the digital value of the image data output from the camera unit 10 is associated with a predetermined pixel value. Thus, the data conversion unit 22 can output predetermined pixel values associated with digital values of the image data based on the LUT by using each digital value of the image data output from the camera unit 10 as an input. The data conversion unit 22 generates display image data based on each pixel value after conversion. The data conversion unit 22 outputs the display image data to the display device 30.
The control unit 23 controls the camera unit 10, the display device 30, and the input device 40. For example, the control unit 23 controls image-capture conditions of the camera unit 10. The image-capture conditions are, for example, an image-capture mode, an exposure time, and the like. The storage unit 24 stores the LUT created by the LUT creation unit 21 and the image data output from the camera unit 10. Also, the storage unit 24 may be an auxiliary storage device such as HDD or SSD of the computer 20 or an external storage device electrically coupled to the computer 20. The LUT creation unit 21 and the data conversion unit 22 perform the above-described process based on the data stored in the storage unit 24.
The display device 30 is a display such as a liquid crystal display or an organic EL display. The display device 30 displays an image of the sample S by displaying the display image data. The input device 40 is a keyboard, a mouse, and the like. The input device 40 receives settings regarding image-capture conditions of the camera unit 10, that is, an image-capture mode, an exposure time, and the like from the user.
Next, operations and effects of the camera unit 10 and the image acquisition device 1 will be described with reference to
Conventionally, an image sensor that performs AD conversion for each pixel, for example, an image-capture device equipped with a CMOS sensor, is known. Compared to an image-capture device equipped with an EMCCD sensor, the image-capture device has a merit in that the price is low, the frame rate is high, and the field of view is wide. On the other hand, because AD conversion is performed for each pixel of the CMOS sensor, a digital value after the AD conversion tends to vary between pixels. Thus, when an image of weak light is captured in a state in which a predetermined pixel value is set as a dark offset value which is a black level, digital values vary and are distributed in the vicinity of the dark offset value.
On the other hand, in the camera unit 10 of the present embodiment, the clip value is set in accordance with the dark offset value set as the black level. More specifically, the clip value is the dark offset value. A digital value of a digital signal whose digital value is smaller than the clip value among digital signals subjected to the AD conversion in the AD conversion unit 12b of the image sensor 11 is converted into the clip value.
Also, as described above, the clip value is set as the dark offset value, so that all the digital values smaller than the dark offset value are set to the dark offset value and there are no digital values smaller than the dark offset value. Thereby, it is possible to effectively prevent the pixel value of the dark offset value from being relatively large and provide a display image with higher contrast
Also, in a stage previous to the conversion process to the above-described clip value, the white spot elimination processing unit 16 performs a first white spot elimination process, which is a process of correcting the digital value of a digital signal whose digital value is larger than or equal to a predetermined threshold value. Further, the white spot elimination processing unit 16 performs a second white spot elimination process, which is a process of averaging or summing the pixel values of all the pixels 12 using the pixel values of the pixels 12 surrounding each pixel 12. Thereby, it is possible to eliminate white spot noise when an image is displayed as a display image.
Also, in the stage previous to the conversion process to the above-described clip value, the digital signal conversion unit 17 performs digital gain processing on the digital signal. Thereby, because the LUT is created for the digital signal amplified by the digital gain processing, it is possible to create the LUT more accurately and easily. Specifically, for example, when the user manually changes the minimum value and the maximum value of the LUT or the like, it is possible to smoothly perform the manual work because the digital signal is amplified.
Next, an image acquisition device according to the second embodiment will be described with reference to
An image acquisition device 1A according to the second embodiment performs the white spot elimination process, the digital gain processing, and the conversion process in a computer 20A. As illustrated in
The computer 20A is an image processing device that generates display image data to be displayed on the display device 30 based on the image data output from the camera unit 10. The computer 20A includes an image processing circuit such as an FPGA or an image processing processor. The image processing circuit of the computer 20A operates as the white spot elimination processing unit 26, the digital signal conversion unit 27, the LUT creation unit 21, the data conversion unit 22, the control unit 23, and the storage unit 24 according to a program (an image processing program) stored in the memory of the computer 20A. Accordingly, the computer 20 includes the white spot elimination processing unit 26, the digital signal conversion unit 27, the LUT creation unit 21, the data conversion unit 22, the control unit 23, and the storage unit 24.
The white spot elimination processing unit 26 is a data processing unit that performs a first white spot elimination process and a second white spot elimination process on the digital signal output from the camera unit 10. The first white spot elimination process and the second white spot elimination process of the white spot elimination processing unit 26 are similar to the first white spot elimination process and the second white spot elimination process of the white spot elimination processing unit 16 of the first embodiment.
The digital signal conversion unit 27 is a data processing unit that performs digital gain processing on a digital signal subjected to the white spot elimination process by the white spot elimination processing unit 26. Also, the digital signal conversion unit 27 has a clip value set in accordance with the dark offset value and is a data processing unit that performs a conversion process of converting a digital value of a digital signal having a digital value smaller than the clip value into the clip value.
Based on a distribution of digital values of digital signals in the image data output from the digital signal conversion unit 27, the LUT creation unit 21 is a table creation unit which creates a lookup table (LUT) in which each digital value in the image data and a predetermined pixel value are associated.
In the computer 20A of the image acquisition device 1A according to the second embodiment, the white spot elimination processing unit 26 performs the first white spot elimination process and the second white spot elimination process based on the digital signal output from the camera unit 10. Then, digital gain processing is performed on the digital signal subjected to the white spot elimination process by the white spot elimination processing unit 26, and a conversion process is performed on digital data subjected to the digital gain processing. Therefore, similar to the LUT creation unit 21 of the image acquisition device 1 according to the first embodiment, the LUT creation unit 21 can create a lookup table (LUT) in which each digital value in the image data and a predetermined pixel value are associated based on a distribution of digital values of digital signals after the conversion process output from the digital signal conversion unit 27. Also, the white spot elimination processing or the digital gain processing is not limited to a stage previous to the conversion process, and may be performed in the subsequent stage or at the same time, or may be omitted.
Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. For example, although the clip value has been described as the dark offset value, the present invention is not limited thereto. It is only necessary for the clip value to be a digital value set in accordance with the dark offset value as long as a digital value is set so that a digital value may be converted into a clip value by the conversion process. If relevant conditions are satisfied, the clip value may be a digital value smaller or larger than the dark offset value. If an image of weak light is captured, a weak signal having valid information as well as dark noise may be included in values smaller than the dark offset value. If the clip value is set as the dark offset value, there is a possibility that valid information of such a weak signal may be lost. By making the clip value smaller than the dark offset value in this respect, it is possible to reduce the information of the signal lost by the conversion processing to the clip value. Also, by making the clip value larger than the dark offset value, the dark offset value is displayed in black, and an image with higher contrast can be displayed.
Although an example in which the white spot elimination process and the digital gain processing are performed in a stage before the conversion process for the clip value has been described, the conversion process for the clip value may be performed after the AD conversion without performing the white spot elimination process and the digital gain processing.
Also, in the first embodiment, the image processing circuit of the image processing circuit 15 of the camera unit 10 may operate as an LUT creation unit and a data conversion unit according to a program. In this case, the image processing circuit 15 serves as a data processing unit having the white spot elimination processing unit 16, the digital signal conversion unit 17, the image data output unit 18, the LUT creation unit, and the data conversion unit. Also, in the second embodiment, the image processing circuit of the camera unit 10 may function as a white spot elimination processing unit that performs the first white spot elimination process. In this case, the first white spot elimination process can be executed by the image processing circuit of the camera unit 10, and the second white spot elimination process can be executed by the image processing circuit of the computer 20A.
Also, although an example of an image-capture device equipped with a CMOS sensor has been described as the image-capture device according to an aspect of the present invention, the image-capture device is not limited thereto. The image-capture device may be other image-capture devices having an image sensor that performs AD conversion for each pixel.
Number | Date | Country | Kind |
---|---|---|---|
2015-122668 | Jun 2015 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2016/060378 | 3/30/2016 | WO | 00 |