CN100515043C - Image switching method and its apparatus - Google Patents
Image switching method and its apparatus Download PDFInfo
- Publication number
- CN100515043C CN100515043C CNB2004100517300A CN200410051730A CN100515043C CN 100515043 C CN100515043 C CN 100515043C CN B2004100517300 A CNB2004100517300 A CN B2004100517300A CN 200410051730 A CN200410051730 A CN 200410051730A CN 100515043 C CN100515043 C CN 100515043C
- Authority
- CN
- China
- Prior art keywords
- image
- effect
- special
- mentioned
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Processing (AREA)
Abstract
The invention provides image convention method for special effect. It can generate same layer image as shot image and different effect coefficient for combining screen. It also can acquire simple but special effect image as soon as shot, and generates different image effect according to different special effect degree to obtain vivid image. Beside, this invention needs no extra expending by using directly existing memory and intelligent function.
Description
[technical field]
The present invention is the technology of relevant image processing apparatus, especially the technology of giving the image conversion method and the device thereof of special-effect about the image that can give the limited mobile communication terminal picked-up of intelligent function.
[background technology]
Recently, video camera has been installed on the mobile communication terminals such as extraordinary mobile phone of travelling performance or PDA, appears on the market one after another with the product that plays the digital camera effect.
Utilize appeal to be provided with the mobile communication terminal of video camera, the user can absorb rest image or mobile image, and outwards sends or download in the PC by Email.
At present, mobile phone is provided with 300,000 picture element video cameras of VGA size, but in the near future, people can be commercially available the mobile phone that is provided with 1,000,000 picture element video cameras, and it is coming to capture date in digital camera and field camera market by mobile phone.
At the mobile phone terminal machine of supporting above-mentioned multimedia function, each terminating machine manufacturer is trying one's best and is improving image quality for supporting the image of more excellent image quality, needs the outer hardware costs of amount paid but improve image quality, the differential function of therefore numerous and confused other kind of research.
For example, Japan utilizes " Shamail " this service, the identical simple editing function of unsalable photo of support and user's pickup image, and in this project, obtained success.That is, adopt " Shamail " service, the image uploading of picked-up to server, and is connected on the computer, carry out editting function, and then its wound is given on other mobile phone.
Recently, by the editing and processing part of terminating machine mobile phone pickup image own, and the function that is transmitted; Emerge one after another.
But mobile phone need utilize limited intelligent function to handle a large amount of information, and battery consumption wherein is unusual The key factor, therefore can only bring into play simple editting function, and accurate editting function can not be provided.
[summary of the invention]
The present invention is intended to solve the problems referred to above in the routine techniques, provides an image that the limited mobile communication terminal of intelligent function is absorbed to give play to the image conversion method and the device thereof of special-effect.
To achieve these goals, the image conversion method of the correct embodiment of the present invention is made up of following several steps: a) generate the figure tomographic image with the pickup image identical image;
B) add the special-effect that image brightness is handled for the figure tomographic image of above-mentioned generation;
C) image with above-mentioned interpolation special-effect and above-mentioned pickup image being pressed the row mathematical expression carries out screen and merges and be processed into the screen combined diagram picture that is converted:
Out_frame[i*176+j]
={MAX-[(MAX-frame[i*176+j])*(MAX-In_frame[i*176+j])/MAX]
At this, frame[i*176+j] the above-mentioned pickup image pixel brightness value of representative, In_frame[i*176+j] representative above-mentioned interpolation special-effect the image pixel intensity value, the maximum brightness value that the MAX represent pixel can have, Out_frame[i*176+j] represent the screen combined diagram that is converted as pixel brightness value.
The step of above-mentioned interpolation special-effect comprises following two steps: utilize the average brightness in this front module field, calculate the step of the brightness value of current pixel; To being included in all pixels in the generation figure tomographic image, carry out above-mentioned b '-1 repeatedly) step of step.
The step of above-mentioned interpolation special-effect also comprises following two steps: utilize the average brightness and the special-effect coefficient in this front module field, calculate the step of the brightness value of current pixel; To being included in all pixels in the generation figure tomographic image, carry out above-mentioned b repeatedly "-1) step of step.
By the average brightness and the special-effect multiplication in this front module field, can draw the brightness value of above-mentioned current pixel.
Image conversion apparatus among another correct embodiment of the present invention is made up of following structure:
Preserve the 1st required conserving appliance of pickup image;
Preserve to generate with the pickup image identical image the 2nd conserving appliance of figure tomographic image;
Add the required special-effect instrument of special-effect that image brightness is handled for the figure tomographic image of preserving; Image with above-mentioned interpolation special-effect and above-mentioned pickup image are carried out screen merge and be processed into the screen combined diagram that is converted and merge instrument as required screen, described screen merging instrument carries out the checking computations process as following mathematical expression:
The image of above-mentioned interpolation special-effect and pickup image are carried out screen to be merged and is processed into the screen combined diagram that is converted and merges instrument as required screen., described screen merging instrument carries out the checking computations process as following mathematical expression:
Out_frame[i*176+j]
={MAX-[(MAX-frame[i*176+j])*(MAX-In_frame[i*176+j])/MAX]
At this, frame[i*176+j] the above-mentioned pickup image pixel brightness value of representative,
In_frame[i*176+j] the image pixel intensity value of the above-mentioned interpolation special-effect of representative, the maximum brightness value that the MAX represent pixel can have, 0ut_frame[i*176+j] the screen combined diagram that is converted of representative is as pixel brightness value.
As mentioned above, in the present invention, provide an energy to add the differential method of image of special-effect to the image of picked-up.
In view of the above, the present invention can utilize little memory and checking computations process to be handled by add the required algorithm of special-effect to image, and easily on the limited device of intelligent functions such as mobile phone one embody fully.
As mentioned above, by image conversion method among the present invention and device thereof, the special-effect algorithm that utilization can preserve and check on the limited mobile communication terminal of intelligent function is specified the special-effect that meets own demand by the user, and simple conversion becomes to be fit to own image of having a liking for.
[description of drawings]
Fig. 1 is among in the present invention the correct embodiment, the structural representation of image conversion apparatus;
Fig. 2 is according to correct embodiment of the present invention, gives the basic conception key diagram of the algorithm of special-effect on the special-effect engine;
Fig. 3 is among in the present invention the correct embodiment, will the image transitions on image conversion apparatus becomes to have the method key diagram of the image of special-effect.
[embodiment]
Below with reference to accompanying drawings correct embodiment of the present invention is elaborated.
Fig. 1 is among in the present invention the correct embodiment, the structural representation of image conversion apparatus.
As shown in Figure 1, the image conversion apparatus 10 among the present invention is made up of following structure: promptly, and the video camera 11 of pickup image; Preserve the frame buffer 13 of the image of video camera 11 picked-ups; Generate be kept at frame buffer 13 on the figure layer frame buffer 15 of the identical figure tomographic image of image; Add the special-effect engine 17 of special-effect for the figure tomographic image that is kept in the figure layer frame buffer 15; Merge the screen merging engine of handling 19 to being kept at the image on the frame buffer 13 and carrying out screen by the image that special-effect engine 17 adds special-effect.
Above-mentioned special-effect engine 17 is the engines that add special-effect to the figure tomographic image, with reference to Fig. 2 this is described in detail below.
Fig. 2 is according to correct embodiment of the present invention, gives the basic conception key diagram of the algorithm of special-effect on the special-effect engine.
As shown in Figure 2, comprise many pixels in the figure tomographic image, and in each pixel, be provided with brightness value respectively.
At this moment, a pixel in the numerous pixels on x, y coordinate, promptly (x y) calculates to the mean value in this front module field 23 of Δ x, Δ y distance the brightness value of current pixel 21 from current location.At this, the mean value in this front module field 23 (mean) is meant, is included in pixel brightness value sum in this front module field divided by the value that is included in the number of pixels in this front module field.In addition, this front module field 23 is positive quadrangle, and according to just dimetric different area, the special-effect of being added is different.At this moment, the brightness value that is included in all pixels in this front module field 23 all is updated.
Show that the coefficient a of special-effect degree can be multiplied by the mean value in this front module field 23.At this, a is the parameter of decision special-effect degree.Suppose that a is, will not bring into play special-effect, and a then will give play to the special-effect of analog value greater than 1 o'clock at 1 o'clock.
For example, when adding the sunlight effect for a certain image,, will obtain more sunlight effect if a is set at 3 but not be set at 1.
If set the brightness value of current pixel 21, just can calculate the brightness value of adjacent with it next pixel.That is, utilize the mean value in this front module field that comprises current pixel, the brightness value of calculating next pixel.
By said process, add special-effect for all pixels that are included in the figure tomographic image.
The algorithm of the process of relevant interpolation special-effect can be illustrated by mathematical expression 1.
[mathematical expression 1]
for(i=0;i<nHeight;i++)
{
for(j=0;j<nWidth;j++)
{
tmp=0;
for(y=i-tmp,p=0;y<i+term;y++,p++)
{
for(x=j-term,q=0;x<j+term;x++,q++)
{
tmp+=pln[y*nWidth+x];
}
pln[y*nWidth+x]=tmp/block_size*a;}
}
At this, pln representing input images, block_size representative are included in the number of pixels in this front module field, on behalf of one side length, the length of nWidth representing input images, nHeight representing input images vertical extension, a in this front module field, pixel brightness value sum, the term that the tmp representative is included in this front module field represent the special-effect coefficient.
If change the brightness value of each pixel by said process, and when comprising the brightness field on background, brighter sunlight effect will appear, if darker background just the sunlight effect can not occur.
In addition, in order to remain the sunlight effect of certain and similar degree, can set different special-effect coefficients (a) according to the average brightness in this front module field in the mathematical expression 2.
[mathematical expression 2]
if(tmp>th)
pln[y*nWidth+x]=tmp/block_size*a;
else
pln[y*nWidth+x]=tmp/block_size*b;
//(b>a)
At this, a and b all represent the special-effect coefficient, and b is greater than a.
Shown in mathematical expression 2,, just mean very bright if be included in pixel brightness value sum (tmp) in this front module field greater than critical value (th).At this moment, special-effect coefficient a will multiply each other with mean value (tmp/block_size).
On the contrary, if be included in pixel brightness value sum in this front module field, so just mean very dark less than critical value.At this moment, the big b of bit special effect fruit coefficient a will multiply each other with mean value.
That is to say, use low coefficient (a) when brightness value is high, and the low time Hou Ze of brightness value uses high coefficient (b).
Use the special-effect coefficient by the way, to guarantee the sunlight effect of certain and similar degree all the time.The image that above-mentioned screen merges 19 pairs of above-mentioned interpolation special-effects of engine carries out screen merging processing, the new images that has special-effect with establishment with the images that are kept in the frame buffer 13.
Above-mentioned screen merges the process of processing as mathematical expression 3.
[mathematical expression 3]
Out_frame[i*176+j]={MAX-[(MAX-frame[i*176+j])*(MAX-In_
frame[i*176+j]))/MAX}
At this, frame[i*176+j] representative be kept at frame buffer (image pixel (pixel) brightness value, In_frame[i*176+j in 13] representative adds the image pixel intensity value of special-effect, maximum brightness value, the Out-frame[i*176+j that the MAX represent pixel can have] the image pixel intensity value of representative conversion.
Shown in mathematical expression 3, in the image (Out_frame[i*176+j]) of conversion, the difference of the brightness value of maximum brightness value and above-mentioned pickup image and maximum brightness value and above-mentioned difference with image brightness value of special-effect multiply each other, and with the above-mentioned brightness value that multiplies each other divided by above-mentioned maximum brightness value, and give normalization process, deduct normalized brightness value with maximum brightness value then, to obtain mutual difference.Shown in the mathematical expression 3 is to carry out screen at a pixel to merge the result who handles, and in order to obtain complete converted image, mathematical expression 3 will be handled with all pixels of the image that adds maximum efficiency at the image that is kept in the frame buffer 13.
With reference to Fig. 3 the image conversion apparatus among the present invention is elaborated below.
Fig. 3 is among in the present invention the correct embodiment, will the image transitions on image conversion apparatus becomes to have the method declaration order figure of the image of special-effect.
As shown in Figure 3, at first use camera pickuping image (step S31), and the image of picked-up is saved in the frame buffer 13.
Generate then be kept at frame buffer 13 in the identical figure tomographic image of image, and it is saved in the figure layer frame buffer 15 (step S32).
Above-mentioned special-effect engine 17 loads the figure tomographic image that is kept in the figure layer frame buffer 15, and generates the image with special-effect, then it is saved in the figure layer frame buffer 15 again.
This is further specified is that above-mentioned special-effect engine 17 is benchmark at the figure tomographic image with the current pixel, from the point of Δ x, Δ Y distance, has in this front module field of certain area, calculates average brightness (step S33).
In addition, on the average brightness of calculating, multiply by special-effect coefficient (a), with the brightness value (step S34) of calculating current pixel.
Calculating the brightness value of current pixel, is (the step S35) that carries out at all pixels that are included in the figure tomographic image.That is, calculate the brightness value of current pixel after, will calculate the brightness value of next pixel by step S32 and step S33 process.At this moment, be included in this front module field, calculate the average brightness in this front module field, and multiply by above-mentioned special-effect coefficient, calculate next pixel brightness value with this average brightness by the current pixel that will calculate before this.
As mentioned above, the special-effect coefficient is meant the parameter of performance sunlight effect degree, according to the size of special-effect coefficient, with the sunlight effect of having given play in various degree.
The big I of the special-effect coefficient average brightness in front module field therewith is inversely proportional to.If the average brightness in this front module field is bigger,,, just special-effect is set at higher value if the average brightness in this front module field is less just special-effect is set at smaller value.
In addition, the special-effect coefficient also can be set the area in this front module field according to different sizes.
For example, when the area in this front module field was big, corresponding brightness value was also relatively large, and can be smaller value this moment with the special-effect coefficient settings.On the contrary, the area in this front module field hour, corresponding brightness value also can be less relatively, can be higher value this moment with the special-effect coefficient settings.
By step S33~step S35 process, add suitable special-effect for a figure tomographic image.
After adding special-effect for the figure tomographic image, will merge engine 19, (step S36) handled in image that adds special-effect and the screen merging that the image that is kept in the frame buffer 13 carries out repeatedly by screen.
Above-mentioned screen merges processing procedure and has been described in detail in mathematical expression 3, so do not further specify at this.
The image that utilization is absorbed to video camera adds the algorithm of simple special-effect, can obtain the image that adds special-effect.In view of the above, the user passes through to set suitable special-effect coefficient, obtains to meet the image with special-effect of oneself having a liking for.
On the rest image that adds special-effect, has the sunlight effect that does not possess on the original image.
On mobile image, also as above-mentioned rest image, can add special-effect.
Along with moving of picture and object, sunlight changes as actual effect, so that the image of richer lively sense to be provided.
Described special-effect has following several advantage in the present invention:
The first, each image all can be set the special-effect that meets respective image. That is, can be according in the image Object space and background are set different special-effects.
The second, in moving images, can be according to the movement of object or the variation of background, special-effect also can be certainly Moving changing is so can obtain image almost true to nature.
Three, can utilize special-effect coefficient (a) according to different condition, simply control the journey of special-effect Degree.
Accordingly, the user can and confirm most suitable special-effect journey in the mobile communication terminal appointment Degree.
Four, the special-effect among the present invention can be achieved by littler memory and checking computations.
Claims (12)
1, image conversion method comprises:
A) the figure tomographic image of generation and pickup image identical image;
B) add the special-effect that image brightness is handled for the figure tomographic image of above-mentioned generation;
C) image with above-mentioned interpolation special-effect and above-mentioned pickup image being pressed the row mathematical expression carries out screen and merges and be processed into the screen combined diagram picture that is converted:
Out_frame[i*176+j]
={MAX-[(MAX-frame[i*176+j])*(MAX-In_frame[i*176+j])/MAX]
At this, frame[i*176+j] the above-mentioned pickup image pixel brightness value of representative, In_frame[i*176+j] representative above-mentioned interpolation special-effect the image pixel intensity value, the maximum brightness value that the MAX represent pixel can have, Out_frame[i*176+j] represent the screen combined diagram that is converted as pixel brightness value.
2, image conversion method as claimed in claim 1 is characterized in that,
Above-mentioned b) step further comprises:
B '-1) utilizes the average brightness in this front module field, calculate the brightness value of current pixel;
B '-2) to being included in all pixels in the generation figure tomographic image, carry out above-mentioned b '-1 repeatedly) step.
3, image conversion method as claimed in claim 2 is characterized in that,
The brightness value of current pixel should replace to the average brightness in this front module field.
4, image conversion method as claimed in claim 1 is characterized in that,
Above-mentioned b) step further comprises:
B "-1) utilize the average brightness and the special-effect coefficient in this front module field, calculate the brightness value of current pixel;
B "-2) to being included in all pixels in the generation figure tomographic image, carry out above-mentioned b repeatedly "-1) step.
5, image conversion method as claimed in claim 4 is characterized in that,
Should can draw the brightness value of above-mentioned current pixel by the average brightness and the special-effect multiplication in this front module field.
6, image conversion method as claimed in claim 4 is characterized in that,
The size of the special-effect coefficient average brightness in front module field therewith is inversely proportional to.
7, as claim 2 or 4 described image conversion methods, it is characterized in that,
This front module field should be positive quadrangle, and according to just dimetric different area, the special-effect of being added is different.
8, as claim 2 or 4 described image conversion methods, it is characterized in that,
The average brightness in this front module field should be the mean value that is included in all pixel brightness values in this front module field.
9, image conversion method as claimed in claim 8 is characterized in that,
The brightness value that is included in all pixels in this front module field all is updated.
10, image conversion method as claimed in claim 1 is characterized in that,
Screen merges and should handle at pickup image and all pixels with image of special-effect.
11, the required device of image of conversion video camera picked-up comprises:
Preserve the 1st required conserving appliance of pickup image;
Preserve to generate with the pickup image identical image the 2nd conserving appliance of figure tomographic image;
Add the required special-effect instrument of special-effect that image brightness is handled for the figure tomographic image of preserving; Image with above-mentioned interpolation special-effect and above-mentioned pickup image are carried out screen merge and be processed into the screen combined diagram that is converted and merge instrument as required screen, described screen merging instrument carries out the checking computations process as following mathematical expression:
The image of above-mentioned interpolation special-effect and pickup image are carried out screen merge and be processed into the screen combined diagram that is converted and merge instrument as required screen, described screen merging instrument carries out the checking computations process as following mathematical expression:
Out_frame[i*176+j]
={MAX-[(MAX-frame[i*176+j])*(MAX-In_frame[i*176+j])/MAX]
At this, frame[i*176+j] the above-mentioned pickup image pixel brightness value of representative, In_frame[i*176+j] representative above-mentioned interpolation special-effect the image pixel intensity value, the maximum brightness value that the MAX represent pixel can have, Out_frame[i*176+j] represent the screen combined diagram that is converted as pixel brightness value.
12, the required device of image of conversion video camera picked-up as claimed in claim 11 is characterized in that,
The instrument of described interpolation special-effect should utilize the average brightness and the special-effect coefficient in this front module field, calculates each pixel that is included in the figure tomographic image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100517300A CN100515043C (en) | 2004-09-29 | 2004-09-29 | Image switching method and its apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100517300A CN100515043C (en) | 2004-09-29 | 2004-09-29 | Image switching method and its apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1756310A CN1756310A (en) | 2006-04-05 |
CN100515043C true CN100515043C (en) | 2009-07-15 |
Family
ID=36689213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100517300A Expired - Fee Related CN100515043C (en) | 2004-09-29 | 2004-09-29 | Image switching method and its apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100515043C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104967772B (en) * | 2015-05-29 | 2018-03-30 | 努比亚技术有限公司 | Photographic method and device |
-
2004
- 2004-09-29 CN CNB2004100517300A patent/CN100515043C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1756310A (en) | 2006-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111416950B (en) | Video processing method and device, storage medium and electronic equipment | |
EP2323373B1 (en) | Video enhancing method and device thereof | |
CN106165390B (en) | Image processing apparatus, camera, image processing method | |
CN110475065B (en) | Image processing method and device, electronic equipment and storage medium | |
CN103813108A (en) | Array camera, mobile terminal, and methods for operating the same | |
CN112055875B (en) | Partial image frame update system and method for electronic display | |
CN106165409B (en) | Image processing apparatus, photographic device, image processing method and program | |
CN111652830A (en) | Image processing method and device, computer readable medium and terminal equipment | |
CN114245028B (en) | Image display method and device, electronic equipment and storage medium | |
CN103745429B (en) | Method for rapidly realizing eye image processing | |
CN111899192A (en) | Interaction method, interaction device, electronic equipment and computer-readable storage medium | |
CN113132704A (en) | Image processing method, device, terminal and storage medium | |
CN101751901B (en) | Method and device for playing dynamic electronic album | |
CN106101810B (en) | Interface subject transform method, device and smart television for smart television | |
CN108965770A (en) | Image processing template generation method, device, storage medium and mobile terminal | |
CN115330626A (en) | Picture transformation method and device based on mesh grid network decomposition | |
CN106210446B (en) | Saturation degree Enhancement Method and device | |
CN114758027A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN113962859A (en) | Panorama generation method, device, equipment and medium | |
CN107203312A (en) | Rendering intent, the storage device of mobile terminal and its picture | |
CN106599176A (en) | Image display method and apparatus | |
JP4941568B2 (en) | Image processing apparatus and program | |
CN100515043C (en) | Image switching method and its apparatus | |
CN110097520B (en) | Image processing method and device | |
CN109947973A (en) | Background configuration method, device, equipment and the readable medium of display area |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090715 Termination date: 20110929 |