Summary of the invention
Supervise in the existing problem of prior art, the present invention provides a kind of method of utilizing interpolated point technology (Interpolation Means) that raw video is amplified.In addition, the present invention also provides a kind of digital camera of this method of application.
A kind of interpolated point technology of utilizing of the present invention is characterized in that the method that a raw video amplifies, comprises:
This raw video is divided into a plurality of blocks of cutting apart;
These a plurality of blocks of cutting apart of cutting apart a block corner wherein are defined as one first and cut apart block;
To first cut apart the adjacent block of cutting apart of block and be defined as one second and cut apart block and the 3rd and cut apart block with this, and definition in regular turn with this second cut apart block and the 3rd cut apart block adjacent cut apart block, cut apart block at last up to defining one;
Utilize the interpolated point technology that this first is cut apart block and amplify one first specific factor, dwindle one second specific factor then, wherein this first specific factor is greater than this second specific factor, makes this first cut apart block and can utilize the interpolated point technology to zoom into one first to handle block; And
Utilize the interpolated point technology that this second is cut apart block and amplify this first specific factor, dwindle this second specific factor then, handle block to form one second, carry out in regular turn amplifying this first specific factor up to utilizing the interpolated point technology that this is cut apart block at last, dwindle this second specific factor then, to form a last block of handling, make this first processing block form a magnified image to handling block at last by this, wherein this magnified image is to utilize the interpolated point technology to amplify it by this raw video.
Wherein this first specific factor is 2 times, and this second specific factor is 1.25 * 1.25 times.
Wherein each cuts apart that to have a part between the block at least be overlapping.
Wherein define this second cut apart block, the 3rd cut apart block ... further comprise up to this step of cutting apart block at last of definition:
Make this second cut apart block and the 3rd cut apart block be respectively and this first cut apart that all to have a part between the block at least be overlapping; And
Make and this second cut apart adjacent each of block cut apart block all respectively and this second cut apart that to have a part between the block at least be overlapping, and and the 3rd cut apart adjacent each of block and cut apart block all respectively and the 3rd cut apart that to have a part between the block at least be overlapping, up to this cut apart at last block and be adjacent each cut apart that all to have a part between the block at least be overlapping.
Wherein the width of this overlapping part comes down to 2 to 4 pixels.
A kind of digital camera of the present invention, it can make a raw video utilize the interpolated point technology to zoom into a magnified image, it is characterized in that this digital camera comprises:
One digital signal processor; And
One memory, store an application program interface, this memory comprises a buffering working area and an image data storage area, and this raw video is to be stored in the image data storage area of this memory, call out this digital signal processor by this application program interface, can reach following running:
This raw video is divided into a plurality of blocks of cutting apart;
These a plurality of blocks of cutting apart of cutting apart a block corner wherein are defined as one first and cut apart block;
To first cut apart the adjacent block of cutting apart of block and be defined as one second and cut apart block and the 3rd and cut apart block with this, and definition in regular turn with this second cut apart block and the 3rd cut apart block adjacent cut apart block, cut apart block at last up to defining one;
This first is cut apart block and deposit in this buffering working area, utilize the interpolated point technology that this first is cut apart block and amplify one first specific factor, dwindle one second specific factor then, wherein this first specific factor is greater than this second specific factor, make this first cut apart block and can utilize the interpolated point technology to zoom into one first to handle block, and this first is handled block and deposit back in this image data storage area;
This second is cut apart block and deposit in this buffering working area, utilize the interpolated point technology that this second is cut apart block and amplify this first specific factor, dwindle this second specific factor then, handle block, this second processing block is deposited back in this image data storage area to form one second; And
Carrying out that in regular turn all the other are cut apart block deposits in this buffering working area, utilize the interpolated point technology that this is cut apart block at last and amplify this first specific factor, dwindle this second specific factor then, to form a last block of handling, finish each processing block in regular turn and also in regular turn each processing block is deposited back in this image data storage area, the processing block form this magnified image to being somebody's turn to do at last by this first processing block.
Wherein each cuts apart that to have a part between the block at least be overlapping.
Wherein this second to cut apart block to this definition of cutting apart block at last be to comprise:
This second cut apart block and the 3rd cut apart block be respectively and this first cut apart that all to have a part between the block at least be overlapping; And
And this second cut apart adjacent each of block cut apart block all respectively and this second cut apart that to have a part between the block at least be overlapping, and the 3rd cuts apart adjacent each of block cuts apart block all respectively and the 3rd cut apart that to have a part between the block at least be overlapping, up to this cut apart at last block and be adjacent each cut apart that all to have a part between the block at least be overlapping.
Wherein the width of this overlapping part comes down to 2 to 4 pixels.
Wherein this first specific factor is 2 times, and this second specific factor is 1.25 * 1.25 times, and this raw video is the pixel with 3M.
Owing to utilize the digital processor processes image to control to cut apart the size of cutting apart of block, even very little difference also can obtain difference.Therefore can make that the width of lap in fact only is about 2 to 4 pixels (pixels).And, by the reinforcement image of lap, can eliminate the cut-off rule of handling between the block, and then make whole magnified image more clear.
Embodiment
Please refer to Fig. 1, it is about the system's block schematic diagram according to digital camera of the present invention.As shown in Figure 1, digital camera 1 of the present invention includes digital signal processor (DSP) 3 and memory 5.Digital camera 1 of the present invention is to utilize the interpolated point technology that its captured raw video 10 is amplified, and for example is amplified to the magnified image 20 shown in the dotted line.Memory 5 is to include buffering working area (buffer) B and an image data (ima perch data) storage area D, and wherein the magnified image 20 of this raw video 10 and process processing and amplifying all is to be stored in this image data storage area D.
The raw video 10 that digital camera 1 shooting obtains is to be stored in the memory 5 of digital camera 1, and this memory 5 is built the SDRAM in the digital camera 1 in can being in.It is noted that herein alleged raw video 10 is not to be limited to the image that digital camera 1 shooting for the first time obtains in the specification of the present invention, it can also be to be obtained (for example by the computer transmission) image and be stored in the memory 5 of digital camera 1 by the outside.
The digital signal processor 3 of digital camera 1 provided by the present invention is to change into digitized video and carry out image processing in order to the electronic signal that the CCD (not shown) with digital camera 1 is produced.Memory 5 has application program interface (API) 52, can calls word signal processor 3 by this application program interface 52, so that this digital signal processor 3 is reached the running of amplifying raw video 10.
In addition, the present invention also provides a kind of method of amplifying raw video 10, can make this digital signal processor 3 reach the running of amplifying raw video 10 thus.
Below in detail the method that the present invention amplifies raw video 10 will be described in detail.
Please refer to the flow chart of Fig. 2, promptly come step S21 after flow process of the present invention begins: raw video 10 is divided into several cuts apart block.Please also refer to Fig. 3 A, after the user obtains a raw video 10,, then can carry out method step provided by the present invention if desire is enlarged into magnified image 20 with raw video 10, shown in Fig. 3 B, raw video 10 is divided into a plurality of block B1-B4 of cutting apart.
Though accompanying drawing of the present invention (Fig. 3 A-Fig. 3 F) is to show that raw video 10 is divided into four and cuts apart block B1-B4.So, the quantity of cutting apart block B1-B4 in the accompanying drawing is not to be limited to four, and as shown in Figure 4, original block 10 also can be divided into nine and cut apart block b1-b9.The amount of capacity that quantity relates to buffering working area B (shown in Figure 1) of cutting apart of cutting apart block B1-B4 or b1-b9.In other words, if buffering working area B is when having bigger capacity, the promptly divisible a little less block (for example B1-B4) of cutting apart, it is bigger to make each cut apart the size of block BI-B4; When if instead buffering working area B capacity is not enough, just need the more block (for example b1-b9) of cutting apart, it is less to make each cut apart the size of block b1-b9.So, for convenience of description, so this specification is to be example with B1-B4.
Then get back to the flow chart of Fig. 2, come step S22: a plurality of blocks of cutting apart of cutting apart a block B1-B4 corner (comer) wherein are defined as first and cut apart block.Please also refer to Fig. 3 B, in the present embodiment, is to be defined as first and to cut apart block cutting apart block B1.Yet this is in order to the explanation present embodiment, and non-limiting the present invention.For instance, if as shown in Figure 4 cut apart block b1-b9, then its first to cut apart block can be b1.In other words, definition first is cut apart block B1 or N is among cutting apart block B1-B4 or b1-b9 from all, select the position the corner one of them (for example B1, B2, B3 or B4 wherein arbitrary all can, perhaps b1, b4, b6 or b9 wherein arbitrary all can).
Return the flow chart of Fig. 2, then come step S23: define second in order and cut apart block, the 3rd and cut apart block ... to the last cut apart block.Please also refer to Fig. 3 B, in embodiments of the present invention, will with first cut apart block B1 adjacent cut apart block B2, B3 and be defined as second and cut apart block B2 and the 3rd and cut apart block B3.Yet described second cut apart block B2 and the 3rd and cut apart block B3 and do not have ordinal relation in this, so long as with first cut apart block B1 neighbor and get final product, therefore second to cut apart block can also be B3, and the 3rd to cut apart block can also be B2; Therefore but for convenience of description, be to cut apart block B2 and the 3rd with second to cut apart block B3 be example at this specification.Then defining the 4th in regular turn cuts apart block B4 ... to the last cut apart block.In this example, the 4th cuts apart block B4 and cuts apart block at last.
Perhaps, please refer to Fig. 4, and first cut apart block b1 adjacent cut apart block b2, b3 and second cut apart block b2, the 3rd and cut apart block b3.
Then definition and second is cut apart block b2 neighbor and promptly the 4th is cut apart block b4 and the 5th and cut apart block b5, and with the 3rd cut apart block b3 neighbor and promptly the 6th cut apart block b6 (because the 5th cut apart block b5 and define, so no longer define).
Next continue definition the 7th and cut apart block b7, it is and the 4th cuts apart block b4 neighbor, and with the 5th cut apart block adjacent the 8th cut apart block b8.
At last, can define and cut apart block b9 at last, it is and the 7th cuts apart block b7 and the 8th and cut apart block b8 neighbor.Wherein, as mentioned above, second cuts apart block b2 and the 3rd cuts apart block b3 and does not have succession, and the 4th cuts apart block b4, the 5th cuts apart block b5 and the 6th and cut apart block b6 and also do not have succession, and the 7th cuts apart block b7 and the 8th and cut apart block b8 and do not have succession.
Please get back to Fig. 2, then be step S24: cut apart block B1 with first and deposit buffering working area B earlier in, utilize the interpolated point technology to cut apart block B1 and amplify first specific factor first, and then dwindle second specific factor, wherein this first specific factor is greater than second specific factor, the preferably, first specific factor is 2 times, and second specific factor is 1.25 * 1.25 times; Make this first cut apart block B1 and utilize the interpolated point technology to zoom into first to handle block B1 ' thus, and this first is handled block B1 ' and deposit back in the image data storage area D.Please also refer to Fig. 3 C, cutting apart block B1 with first exists among the buffering working area B, utilize the interpolated point technology to cut apart block B1 and amplify first specific factor (for example 2 times) first, and then dwindle second specific factor (for example 1.25 * 1.25 times), make the cut section piece B1 that wins amplify (for example 1.28 times) to become the first processing block B1 ', and this first processing block B1 ' is deposited back in the image data storage area D.
Please get back to Fig. 2, then come step S25: cut apart block B2 with second and deposit buffering working area B earlier in, utilize the interpolated point technology to cut apart block B2 and amplify first specific factor (for example 2 times) second, and then dwindle second specific factor (for example 1.25 times * 1.25 times), handle block B2 ' to form second, and this first processing block B2 ' is deposited back in the image data storage area D.Carry out in regular turn amplifying first specific factor (for example 2 times), and then dwindle second specific factor (for example 1.25 times * 1.25 times), to form last processing block B4 ' up to utilizing the interpolated point technology will cut apart block B4 at last.Please also refer to Fig. 3 D-Fig. 3 F, shown in Fig. 3 D, second cuts apart block B2 utilizes the interpolated point technology to amplify first specific factor (for example 2 times) in buffering working area B, and then dwindle second specific factor (for example 1.25 times * 1.25 times), handle block B2 ' to form second, and this second processing block B2 ' is deposited back in the image data storage area D.Then in regular turn shown in Fig. 3 E, the 3rd cuts apart block B3 utilizes the interpolated point technology to amplify first specific factor (for example 2 times) in buffering working area B, and then dwindle second specific factor (for example 1.25 times * 1.25 times), handle block B3 ' to form the 3rd, and handle block B3 ' with the 3rd and deposit back in the image data storage area D.At last, shown in Fig. 3 F, second cuts apart block B2 utilizes the interpolated point technology to amplify first specific factor (for example 2 times) in buffering working area B, and then dwindle second specific factor (for example 1.25 times * 1.25 times), manage block (also being to handle block at last in the present embodiment) B4 ' everywhere to form.
Please return Fig. 2, step S26: first handles block B1 ' forms magnified image 20 to handling block B4 ' at last in image data storage area D.Shown in Fig. 3 F, first handles block B1 ' can form magnified image 20 to handling block B4 ' at last, as mentioned above, magnified image 20 of the present invention promptly is that raw video 10 utilizes the interpolated point technology to amplify to form, and it can improve the situation of the bad that first magnified image just dwindles image then and caused.
Generally speaking, amplification or minification that digitized video processor 3 is handled are specific, and just raw video 10 amplification multiple are multiples (for example 1.26 times or 1.28 times) of fixing.Therefore, in a preferred embodiment of the present invention, first specific factor promptly is 2 times, and second specific factor is 1.25 * 1.25 times.For example, the raw video 10 that amplifies with the interpolated point technology promptly can be the pixel with 3M, so magnified image 20 can be the pixel with 5M.
When utilizing image processor 3 to handle image, may cause each cut-off rule L (shown in Fig. 3 F) of cutting apart between the block B1-B4 to manifest significantly by above-mentioned method and step.Therefore, in a preferred embodiment of the present invention, each is cut apart, and to have a part between the block B1-B4 at least be overlapping.Via handle to amplify and dwindle after the lap, can make to handle between block B1 '-B4 ' not produce fuzzy cut-off rule L.
Please refer to the flow chart of Fig. 5, in preferred embodiment, step S22 definition first is cut apart after the block B1, promptly comes step S231: make each cut apart that to have a part between the block B1-B4 at least be overlapping.Further, make cut apart have between the block B1-B4 lap promptly be the definition this second cut apart block B2, the 3rd cut apart block B3 ... this cuts apart block B4 at last up to definition.Therefore, step S331 also can further be distinguished into step S232-S233.Please also refer to Fig. 6 A, define first earlier as above-mentioned method and cut apart block B1, then make and cut apart block B1-B4 and have lap C1-C5 between any two.
Please also refer to Fig. 5 and Fig. 6 B, wherein, the process step S232 of Fig. 5: capture bigger second and cut apart block B2, make second to cut apart block B2 and first and cut apart and have lap C1, C3 between the block B1, and acquisition the bigger the 3rd cuts apart block B3, makes the 3rd to cut apart block B3 and first and cut apart and have lap C2, C3 between the block B1.
Then please also refer to Fig. 5 and Fig. 6 B, wherein, the process step S233 of Fig. 5: capture the bigger the 4th and cut apart block B4 (in the present embodiment, the 4th cuts apart block B4 cuts apart block at last), make the 4th to cut apart block B4 and second and cut apart and have lap C4, C3 between the block B2, and make the 4th to cut apart block B4 and the 3rd and cut apart and have lap C5, C3 between the block B3.
The size of cutting apart of cutting apart block B1-B4 can be controlled owing to utilize digital processing unit 3 to handle image, even also very little difference can be obtained.Therefore present embodiment can make that the width of lap C1-C5 in fact only is about 2 to 4 pixels (pixels).Step after step S232 is to carry out step S24, S25 and S26, promptly as mentioned above.
And, by the reinforcement image of lap C1-C5, amplify with dwindle after, can eliminate the cut-off rule L that handles between block B1 '-B4 ', and then make that whole magnified image 20 is more clear, shown in Fig. 6 C.
Therefore, amplify the method for raw video according to the present invention, as mentioned above, its image quality after magnified image is constant, because each after over-segmentation cut apart block (for example B1-B4 or N-b9) much smaller than raw video 10, therefore its required buffering working area capacity is less, can improve the disposed of in its entirety running of digital camera.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; anyly have the knack of this operator; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is when looking accompanying being as the criterion that claim defines.