1. Field of the Invention
The invention relates in general to an image capturing apparatus and a method thereof, and more particularly to an image capturing apparatus for compressing a preview image in a preview mode to judge an image complexity and calculate a preview compressed setting value in advance, and an image capturing method.
2. Description of the Related Art
However, the conventional image capturing apparatus cannot compress the to-be-captured image data until it enters the capturing mode. Thus, the conventional image capturing apparatus needs a longer period of time to compress the to-be-captured image data into the predetermined target.
It is therefore an object of the invention to provide an image capturing apparatus and an image capturing method thereof. When the image capturing apparatus is still in a preview mode, the apparatus compresses a preview image in advance and judges an image complexity according to at least one of a set of factors consisting of a compressed setting, a resolution of the preview image and a size of the compressed preview image. Thus, after entering a capturing mode, the image capturing apparatus determines an initial compressed setting value, which is a new compressed initial value, according to at least one of a set of factors consisting of the image complexity obtained in a previous step, a resolution of a to-be-captured image and a compressed image target size, and rapidly compresses captured image data to compressed data approaching the predetermined target size or speeds up the converging speed of the image compressing loop according to the initial compressed setting value.
The invention achieves the above-identified object by providing an image capturing method. The image capturing method includes the following steps. A preview image is captured and compressed into a compressed preview image according to a preview quantization table. An image complexity is judged by determining the amount of high frequency components the preview image has according to a set of factors consisting of the preview quantization table, a resolution of the preview image and a size of the compressed preview image. The more the amount of high frequency components the preview image has, the higher the image complexity. A to-be-captured image is captured. An initial quantization table is determined according to a set of factors consisting of the image complexity, a resolution of the to-be-captured image and an image compression target. The to-be-captured image is compressed into an output image according to the initial quantization table.
The invention also achieves the above-identified object by providing an image capturing apparatus including an image sensing unit, an image processing unit, an image compressing unit and a control unit. The image sensing unit captures a preview image and a to-be-captured image, and outputs a preview image signal and a to-be-captured image signal. The image processing unit processes the preview image signal and the to-be-captured image signal and outputs preview image data and to-be-captured image data. The image compressing unit compresses the preview image data and the to-be-captured image data.
The control unit controls an image compressing operation of the image compressing unit. The control unit controls the image compressing unit to compress the preview image data according to a preview quantization table and output a compressed preview image, and judges an image complexity by determining the amount of high frequency components the preview image has according to a set of factors consisting of the preview quantization table, the resolution of the preview image and the size of the compressed preview image. The more the amount of high frequency components the preview image has, the higher the image complexity. The control unit determines an initial quantization table according to a set of factors consisting of the image complexity, the resolution of the to-be-captured image and an image compression target. The control unit controls the image compressing unit to compress the to-be-captured image data into an output image according to the initial quantization table.
Other objects, features, and advantages of the invention will become apparent from the following detailed description of the preferred but non-limiting embodiments. The following description is made with reference to the accompanying drawings.
The image capturing apparatus 20 has two operation modes, one of which is a preview mode and the other of which is a capturing mode. Referring to
When the image capturing apparatus 20 is in the preview mode, the image sensing unit 210 captures a preview image S6 and outputs a preview image signal S7 according to the preview image S6. The image processing unit 220 processes the preview image signal S7 by way of, for example, demosaicking, gamma correction, color reproduction and edge enhancement, and then correspondingly output preview image data S8.
The control unit 250 controls the image compressing unit 240 to compress the preview image data S8 according to a preview quantization table S10 to generate a compressed preview image S9. In other words, the size of the compressed preview image S9 is the size of the preview image after being compressed. The control unit 250 judges an image complexity by determining the amount of high frequency components the preview image has according to a set of factors consisting of the preview quantization table S10, the resolution of the preview image S6 and the size of the compressed preview image S9. The image complexity is related to the amount of high frequency components the preview image has. The more the amount of high frequency components the preview image has, the higher the image complexity. For example, as an image IA has more high frequency components than another image IB, the image complexity of the image IA is higher than the image complexity of the image IB. Whether the preview image has more high frequency components or less can be judge according to the preview quantization table S10, the resolution of the preview image S6 and the size of the compressed preview image S9. For example, with regard to the same preview quantization table S10 and the same resolution of the preview image S6, the larger the size of the compressed preview image S9, the more high frequency components the preview image has and the higher the image complexity.
Because the image capturing apparatus 20 has analyzed and judged the image complexity in the preview mode, the control unit 250 determines an initial quantization table S15 according to a set of factors consisting of the judged image complexity, the resolution of the to-be-captured image S11 and an image compression target. The initial quantization table S15 is a new quantization table with respect to the preview quantization table S10. The control unit 250 also controls the image compressing unit 240 to compress the to-be-captured image data S13 to obtain an output image S14 with the image compression target according to the initial quantization table S15. Furthermore, the control unit 250 checks whether the size of the output image S14 equals the image compression target. If the size of the output image S14 does not equal the image compression target, the control unit 250 controls the image compressing unit 240 to re-compress the output image S14 repeatedly to ensure the size of the output image S14 being the image compression target.
Compared with the conventional image capturing apparatus, the image capturing apparatus 20 compresses a preview image and judges the image complexity in advance in the preview mode. Thus, after entering the capturing mode, the image capturing apparatus 20 can immediately determine the initial quantization table, and accordingly compress the to-be-captured image to the output image having the image compression target. Furthermore, because of the initial quantization table S15, the image capturing apparatus 20 can perform the compression according to the initial quantization table S15, instead of the inaccurate quantization table S10, at the beginning. Thus, the predetermined image compression target can be approached rapidly and the converging speed of the image compression loop can be speeded up. Consequently, the period of working time when the image capturing apparatus 20 makes the compression in the capturing mode can be shortened.
First, as shown in step 610, the image sensing unit 210 captures the preview image S6 and the image compressing unit 240 compresses the preview image data S8 when the image capturing apparatus 20 is in the preview mode. In addition, the image complexity is analyzed and judged according to the set of factors consisting of the preview quantization table S10, the resolution of the preview image S6 and the size of the compressed preview image S9. The image complexity is related to the amount of high frequency components the preview image has, and the more the amount of high frequency components the preview image has, the higher the image complexity.
Next, as shown in step 620, the image capturing apparatus 20 enters the capturing mode, and the image sensing unit 210 captures the to-be-captured image S11 and determines the initial quantization table S15 according to the set of factors consisting of the image complexity, the resolution of the to-be-captured image S11 and the image compression target. The image compressing unit 240 compresses the image according to the initial quantization table S15.
First, as shown in step 612, the image sensing unit 210 captures the preview image S6 and the image processing unit 220 processes the image to obtain the preview image data S8 when the image capturing apparatus 20 is in the preview mode.
Next, as shown in step 614, the image compressing unit 240 compresses the preview image data S8 according to the preview quantization table S10 to obtain the compressed preview image S9.
Finally, as shown in step 616, the control unit 250 judges the image complexity according to the set of factors consisting of the preview quantization table S10, the resolution of the preview image S6 and the size of the compressed preview image S9.
First, as shown in step 622, the image capturing apparatus 20 enters the capturing mode, and the image sensing unit 210 captures the to-be-captured image S11 and converts the image S11 into the to-be-captured image signal S12.
Next, as shown in step 624, the image processing unit 220 processes the to-be-captured image signal S12 to obtain the to-be-captured image data S13, which is temporarily stored in the image storing unit 230.
Finally, as shown in step 626, the control unit 250 determines the initial quantization table S15 according to the set of factors consisting of the image complexity, the resolution of the to-be-captured image signal S12 and the compressed image target size, and controls the image compressing unit 240 to compress the to-be-captured image data S13 to obtain the output image S14 according to the initial quantization table S15. Furthermore, in step 626, the control unit 250 checks whether the size of the output image S14 equals the image compression target. If the size of the output image S14 does not equal the image compression target, the control unit 250 controls the image compressing unit 240 to re-compress the output image S14 repeatedly to ensure the size of the output image S14 being the image compression target.
The image compressing unit 240 can calculate the image complexity in advance in the preview mode when either the to-be-captured image signal S12 or the to-be-captured image data S13 is stored in the image storing unit 230. Thus, after the image capturing apparatus 20 enters the capturing mode, the initial quantization table S15 can be rapidly determined according to the set of factors consisting of the judged image complexity, the resolution of the to-be-captured image S11 and the image compression target. Thus, the to-be-captured image data S13 can be rapidly compressed into the predetermined image compression target.
In the image capturing apparatus and the image capturing method according to the embodiments of the invention, the image capturing apparatus compresses a preview image and judges the image complexity in advance in the preview mode. Thus, after entering the capturing mode, the image capturing apparatus can immediately determine the initial quantization table, and accordingly compress the to-be-captured image to the output image having the image compression target. Furthermore, the image capturing apparatus can perform the compression according to the initial quantization table, instead of the inaccurate quantization table, at the beginning. Thus, the predetermined image compression target can be approached rapidly and the converging speed of the image compression loop can be speeded up. Consequently, the period of working time when the image capturing apparatus makes the compression in the capturing mode can be shortened.
While the invention has been described by way of example and in terms of preferred embodiments, it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
95117009 | May 2006 | TW | national |
This application is a continuation-in-part application of application Ser. No. 11/741,785, filed Apr. 30, 2007, and claims the benefit of Taiwan application Serial No. 95117009, filed May 12, 2006, the subject matter of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 11741785 | Apr 2007 | US |
Child | 12761703 | US |