The invention relates to an imaging device and a parameter adjusting method and, more particularly, to an imaging device and a parameter adjusting method capable of improving image quality effectively.
An intraoral scanner uses laser to scan tooth rapidly and then transmits the scanned image to a computer, so as to establish a tooth model. In general, the light intensity projected by the intraoral scanner is constant during the process of scanning tooth. However, different tissues or substances in an oral cavity may absorb or reflect different amounts of light and different materials filled in the tooth may also have different characteristics. Accordingly, during the process of scanning tooth, the projected brightness at some positions may be high and the projected brightness at some other positions may be low, such that the image quality will be affected. Furthermore, the length of the exposure time of an image sensor may also affect the image quality.
An objective of the invention is to provide an imaging device and a parameter adjusting method capable of improving image quality effectively, so as to solve the aforesaid problems.
According to an embodiment of the invention, an imaging device comprises a projection unit, an image sensing unit and a processing unit, wherein the processing unit is electrically connected to the projection unit and the image sensing unit. The projection unit is controlled by a projection parameter to project a light onto an object, wherein the light forms two color blocks on the object. The image sensing unit is controlled by an image capturing parameter to capture an image of the object, wherein the image comprises the two color blocks. The processing unit analyzes the image to calculate a contrast ratio of the two color blocks. The processing unit compares the contrast ratio with a predetermined threshold. The processing unit selectively adjusts at least one of the projection parameter and the image capturing parameter when the contrast ratio is larger or smaller than the predetermined threshold. The processing unit controls the projection unit to project the light onto the object and controls the image sensing unit to capture the image of the object.
According to another embodiment of the invention, a parameter adjusting method is adapted to an imaging device. The imaging device comprises a projection unit and an image sensing unit. The parameter adjusting method comprises steps of controlling the projection unit by a projection parameter to project a light onto an object, wherein the light forms two color blocks on the object; controlling an image sensing unit by an image capturing parameter to capture an image of the object, wherein the image comprises the two color blocks; analyzing the image to calculate a contrast ratio of the two color blocks; comparing the contrast ratio with a predetermined threshold; and selectively adjusting at least one of the projection parameter and the image capturing parameter when the contrast ratio is larger or smaller than the predetermined threshold.
As mentioned in the above, the invention utilizes the contrast ratio of two color blocks projected onto the object to determine whether at least one of the projection parameter and the image capturing parameter needs to be adjusted. When the contrast ratio of the two color blocks is larger or smaller than the predetermined threshold, it means that the image quality generated by the imaging device is affected by the projection parameter and/or the image capturing parameter to get worse. At this time, the invention selectively adjusts at least one of the projection parameter and the image capturing parameter to improve the image quality. It should be noted that when the contrast ratio of the two color blocks conforms to the predetermined threshold, it means that the image quality generated by the imaging device is acceptable. At this time, the invention needs not to adjust the projection parameter and the image capturing parameter.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Referring to
As shown in
As shown in
In this embodiment, the storage unit 16 may store a plurality of patterns P1-P3 and each of the patterns P1-P3 comprises a plurality of black stripes B and a plurality of white stripes W, as shown in
As shown in
Then, the processing unit 14 analyzes the image I to calculate a contrast ratio of the two color blocks C1, C2. Then, the processing unit 14 compares the contrast ratio of the two color blocks C1, C2 with a predetermined threshold, wherein the predetermined threshold may be a value or a range. When the contrast ratio of the two color blocks C1, C2 is larger or smaller than the predetermined threshold, it means that the image quality generated by the imaging device 1 is affected by the projection parameter and/or the image capturing parameter to get worse. At this time, the processing unit 14 selectively adjusts at least one of the projection parameter and the image capturing parameter to improve the image quality. The processing unit 14 may decrease at least one of the projection parameter and the image capturing parameter when the contrast ratio of the two color blocks C1, C2 is larger than the predetermined threshold. The processing unit 14 may increase at least one of the projection parameter and the image capturing parameter when the contrast ratio of the two color blocks C1, C2 is smaller than the predetermined threshold.
After adjusting at least one of the projection parameter and the image capturing parameter, the processing unit 14 controls the projection unit 10 to project the light L onto the object 3 and controls the image sensing unit 12 to capture the image I of the object 3 again. In this embodiment, the processing unit 14 may adjust at least one of the projection parameter and the image capturing parameter gradually by a predetermined ratio (e.g. 1%, 3%, etc.) and compare the contrast ratio of the two color blocks C1, C2 with the predetermined threshold after adjustment every time. When the contrast ratio of the two color blocks C1, C2 conforms to the predetermined threshold after adjustment, it means that the image quality generated by the imaging device 1 is acceptable. At this time, the processing unit 14 needs not to adjust the projection parameter and the image capturing parameter accordingly.
It should be noted that when the predetermined threshold is a value, the contrast ratio of the two color blocks C1, C2 equal to the value means that the contrast ratio of the two color blocks C1, C2 conforms to the predetermined threshold; and when the predetermined threshold is a range, the contrast ratio of the two color blocks C1, C2 falling within the range means that the contrast ratio of the two color blocks C1, C2 conforms to the predetermined threshold.
The aforesaid predetermined threshold may be determined according to practical applications. For example, the invention may take a contrast ratio of two color blocks C1, C2 corresponding to a system default projection parameter and a system default image capturing parameter to be a predetermined threshold value or, alternatively, add/subtract an acceptable value to/from a contrast ratio of two color blocks C1, C2 corresponding to a system default projection parameter and a system default image capturing parameter to be a predetermined threshold range.
In this embodiment, the processing unit 14 may selectively adjust at least one of the projection parameter and the image capturing parameter according to a predetermined adjusting sequence. For example, when the projection parameter comprises brightness and contrast and the image capturing parameter comprises exposure time, aperture size, ISO sensitivity, white balance and exposure compensation, the predetermined adjusting sequence may be represented by exposure time, aperture size, exposure compensation, brightness, contrast, ISO sensitivity, and white balance in sequence. It should be noted that the predetermined adjusting sequence may be determined according to the types of the projection parameter and the image capturing parameter, so the predetermined adjusting sequence is not limited to the aforesaid embodiment. As to the principles of adjusting exposure time, aperture size, exposure compensation, brightness, contrast, ISO sensitivity, and white balance, those are well known by one skilled in the art, so those will not depicted herein in detail .
When the processing unit 14 adjusts at least one of the projection parameter and the image capturing parameter to a limit value and the contrast ratio of the two color blocks C1, C2 is still larger or smaller than the predetermined threshold, the processing unit 14 may control the warning unit 18 to send out a warning message (e.g. image, text, light, sound, or a combination thereof), so as to inform a user that the optimal image quality cannot be obtained. At this time, the processing unit 14 may control the projection unit 10 and the image capturing unit 12 by current or system default projection parameter and image capturing parameter.
In another embodiment, the two color blocks C1, C2 mentioned in the above may be other color blocks different from the black stripe B and the white stripe W. At this time, a width of one of the two color blocks C1, C2 may be smaller than or equal to a width of a thinnest black stripe B of the patterns P1-P3, and a width of another one of the two color blocks C1, C2 may be smaller than or equal to a width of a thinnest white stripe W of the patterns P1-P3. Furthermore, in addition to black and white, the two color blocks C1, C2 may also be other colors according to practical applications.
Referring to
It should be noted that the detailed embodiments of the parameter adjusting method of the invention are mentioned in the above and those will not be depicted herein again. Furthermore, each part or function of the control logic of the parameter adjusting method shown in
As mentioned in the above, the invention utilizes the contrast ratio of two color blocks projected onto the object to determine whether at least one of the projection parameter and the image capturing parameter needs to be adjusted. When the contrast ratio of the two color blocks is larger or smaller than the predetermined threshold, it means that the image quality generated by the imaging device is affected by the projection parameter and/or the image capturing parameter to get worse. At this time, the invention selectively adjusts at least one of the projection parameter and the image capturing parameter to improve the image quality. It should be noted that when the contrast ratio of the two color blocks conforms to the predetermined threshold, it means that the image quality generated by the imaging device is acceptable. At this time, the invention needs not to adjust the projection parameter and the image capturing parameter.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201811408222.1 | Nov 2018 | CN | national |