Summary of the invention
The present invention proposes a kind of image processing apparatus and comprises the portable terminal device of this image processing apparatus, only adopt an image zoom unit can finish the image zoom of different target unit requirement, reduced chip design difficulty, saved storage space, and reduced manufacturing cost.
Technical scheme of the present invention is achieved in that
A kind of image processing apparatus comprises image input block, selected cell, an image zoom unit and at least one object element;
Described image input block is used to import original image;
Described selected cell is used for selecting one or more object outputs as described image zoom unit of described at least one object element;
A described image zoom unit, the requirement that is used for the object element selected according to convergent-divergent algorithm and described selected cell is scaled to the original image of described image input block input and meets the image that object element that described selected cell selects requires size, and exports scaled images to object element that described selected cell is selected.
Preferably, the number of described object element is two.
Preferably, described two object elements are display unit and storage unit;
Described display unit meets the image of described display unit size after being used to receive described image zoom unit convergent-divergent, and shows described image;
Described storage unit meets the image of described storage unit size after being used to receive described image zoom unit convergent-divergent, and stores described image.
Preferably, described display unit is LCDs LCD.
A kind of portable terminal device comprises image acquisition unit, is used to obtain original image, also comprises image processing apparatus, and described image processing apparatus comprises image input block, selected cell, an image zoom unit and at least one object element;
Described image input block is used to import described original image;
Described selected cell is used for selecting one or more object outputs as described image zoom unit of described at least one object element;
A described image zoom unit, the requirement that is used for the object element selected according to convergent-divergent algorithm and described selected cell is scaled to the original image of described image input block input and meets the image that object element that described selected cell selects requires size, and exports scaled images to object element that described selected cell is selected.
Preferably, the number of described object element is two.
Preferably, described two object elements are display unit and storage unit;
Described display unit meets the image of described display unit size after being used to receive described image zoom unit convergent-divergent, and shows described image;
Described storage unit meets the image of described storage unit size after being used to receive described image zoom unit convergent-divergent, and stores described image.
Preferably, described display unit is LCDs LCD.
The present invention is kept to an image zoom unit with a plurality of image zooms unit, selection by selected cell makes a described image zoom unit satisfy the image zoom that the different target unit requires equally, owing to only adopted an image zoom unit, reduced the design difficulty of chip, reduced the size of chip, save the shared storage space of convergent-divergent algorithm, reduced the manufacturing cost of chip.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
With reference to Fig. 1, show the composition structural drawing of a kind of image processing apparatus first embodiment of the present invention.Described image processing apparatus 100 comprises image input block 110, selected cell 120, image zoom unit 130 and at least one object element.For the convenience that technical solution of the present invention is described, below described at least one object element among each embodiment describe with display unit 140 and storage unit 150 these two object elements, it will be appreciated by those skilled in the art that, described at least one object element of the present invention is not limited in described display unit 140 and storage unit 150 these two object elements, for other object element, be applicable to the present invention too.
Described image input block 110 is used to import original image.
Described selected cell 120 is used for selecting one or more object outputs as described image zoom unit 130 of described at least one object element.
In the present embodiment, described selected cell 120 is selected described display units 140 or described storage unit 150 object output as described image zoom unit 130, and what promptly described image zoom unit 130 will be according to described selected cell 120 selected object elements (as display unit 140 or storage unit 150) carries out convergent-divergent to original image.
A described image zoom unit 130, the requirement that is used for the object element selected according to convergent-divergent algorithm and described selected cell 120 is scaled to the original image of described image input block 110 inputs and meets the image that object element that described selected cell 120 selects requires size, and exports scaled images to object element that described selected cell 120 is selected.
The convergent-divergent algorithm that described image zoom unit 130 is adopted is a prior art, and the embodiment of the invention is not described in detail this, gets final product with reference to the associated description of prior art.
If described selected cell 120 has been selected display unit 140, then described image zoom unit 130 requires the convergent-divergent original image according to display unit 140, and exports scaled images to described display unit 140; If described selected cell 120 has been selected storage unit 150, then described image zoom unit 130 requires the convergent-divergent original image according to storage unit 150, and exports scaled images to described storage unit 150.
Described display unit 140 meets the image of described display unit 140 sizes after being used to receive described image zoom unit 130 convergent-divergents, and shows described image.
Preferably, described display unit 140 is LCDs LCD.
Described storage unit 150 meets the image of described storage unit 150 sizes after being used to receive described image zoom unit 130 convergent-divergents, and stores described image.
When work, described selected cell 120 switches back and forth to be exported, be described selected cell 120 can according to user's demand not part select one or more object outputs in a plurality of object elements as described image zoom unit 130, working in coordination in described selected cell 120 and described image zoom unit 130, finishes the convergent-divergent output of image jointly.With the photograph is example, described image zoom unit 130 can be exported a frame zoomed image earlier according to the selection of described selected cell 120 and carry out preview for display unit 140, exporting a frame zoomed image to described storage unit 150 again stores, it also can be other configuration, carry out preview for display unit 140 as exporting a frame (also can be other quantity) zoomed image earlier, export two frames (also can be other quantity) zoomed image again and store for storage unit 150.
The example that is scaled with the concrete size of image describes below, the size of supposing original image is 4096 * 3072, the image size that display unit 140 requires is 1024 * 768, the image size that storage unit 150 requires is 2048 * 1024, when the user needs preview image, then described selected cell 120 is selected display unit 140,130 images that original image are scaled to 1024 * 768 sizes (satisfying display unit 140 requires) in described image zoom unit, and export the image of 1024 * 768 sizes behind the convergent-divergent to described display unit 140, to carry out preview; When the user needs memory image, then described selected cell 120 select storage units 150,130 of described image zoom unit are scaled to the image of 2048 * 1024 sizes (satisfying storage unit 150) with original image, and export the image of 2048 * 1024 sizes behind the convergent-divergent to described storage unit 150 and store.Especially, if when big or small the same (as all being 1024 * 768) of described display unit 140 and storage unit 150 image that requires, the 130 pairs of original image convergent-divergents in then described image zoom unit once and respectively export described display unit 140 to and storage unit 150 gets final product.
The present invention is kept to an image zoom unit with a plurality of image zooms unit, selection by selected cell makes a described image zoom unit satisfy the image zoom that the different target unit requires equally, owing to only adopted an image zoom unit, reduced the design difficulty of chip, reduced the size of chip, save the shared storage space of convergent-divergent algorithm, reduced the manufacturing cost of chip.
With reference to Fig. 2, show the composition structural drawing of a kind of portable terminal device first embodiment of the present invention.Portable terminal device 200 of the present invention can be mobile phone or other terminal of camera, video camera, band photograph/camera function.
Described portable terminal device 200 comprises image acquisition unit 210 and image processing apparatus 100, and described image processing apparatus 100 comprises image input block 110, selected cell 120, image zoom unit 130 and at least one object element.For the convenience that technical solution of the present invention is described, described at least one object element in following examples describes with display unit 140 and storage unit 150 these two object elements, it will be appreciated by those skilled in the art that, described at least one object element of the present invention is not limited in described display unit 140 and storage unit 150 these two object elements, for other object element, be applicable to the present invention too.
Image acquisition unit 210 is used to obtain original image.
Described image input block 110 is used to import described original image.
Described selected cell 120 is used for selecting one or more object outputs as described image zoom unit 130 of described at least one object element.
In the present embodiment, described selected cell 120 is selected described display units 140 or described storage unit 150 object output as described image zoom unit 130, and what promptly described image zoom unit 130 will be according to described selected cell 120 selected object elements (as display unit 140 or storage unit 150) carries out convergent-divergent to original image.
A described image zoom unit 130, the requirement that is used for the object element selected according to convergent-divergent algorithm and described selected cell 120 is scaled to the original image of described image input block 110 inputs and meets the image that object element that described selected cell 120 selects requires size, and exports scaled images to object element that described selected cell 120 is selected.
The convergent-divergent algorithm that described image zoom unit 130 is adopted is a prior art, and the embodiment of the invention is not described in detail this, gets final product with reference to the associated description of prior art.
If described selected cell 120 has been selected display unit 140, then described image zoom unit 130 requires the convergent-divergent original image according to display unit 140, and exports scaled images to described display unit 140; If described selected cell 120 has been selected storage unit 150, then described image zoom unit 130 requires the convergent-divergent original image according to storage unit 150, and exports scaled images to described storage unit 150.
Described display unit 140 meets the image of described display unit 140 sizes after being used to receive described image zoom unit 130 convergent-divergents, and shows described image.
Preferably, described display unit 140 is LCDs LCD.
Described storage unit 150 meets the image of described storage unit 150 sizes after being used to receive described image zoom unit 130 convergent-divergents, and stores described image.
Being example with preview mode, Photographing Mode, image pickup mode respectively below describes the concrete course of work and the principle of work of portable terminal device 200 of the present invention.
One if preview mode:
Then image zoom unit 130 zooms to the size of the image that display unit 140 will show with original image, and exports scaled images to described display unit 140 and show, so that the user carries out preview.
Two if Photographing Mode:
1, then image zoom unit 130 zooms to original image the size of the image that display unit 140 will show earlier, and exports scaled images to described display unit 140 and show, so that the user carries out preview.
2, after the user triggered the order of taking a picture, then image zoom unit 130 zoomed to original image the size that storage unit 150 is wanted memory image again, and exported scaled images to described storage unit 150 and store.
Three if image pickup mode:
1, then image zoom unit 130 zooms to original image the size of the image that display unit 140 will show earlier, and exports scaled images to described display unit 140 and show, so that the user carries out preview.
2, after the user triggered shooting order, then image zoom unit 130 zoomed to original image the size that storage unit 150 is wanted memory image again, and exported scaled images to described storage unit 150 and store.
Follow repeating step 1 and step 2, the shooting that continues.
The present invention is kept to an image zoom unit with a plurality of image zooms unit, selection by selected cell makes a described image zoom unit satisfy the image zoom that the different target unit requires equally, owing to only adopted an image zoom unit, reduced the design difficulty of chip, reduced the size of chip, save the shared storage space of convergent-divergent algorithm, reduced the manufacturing cost of chip.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.