CN104008523A - Graphic processing method - Google Patents

Graphic processing method Download PDF

Info

Publication number
CN104008523A
CN104008523A CN201410287015.0A CN201410287015A CN104008523A CN 104008523 A CN104008523 A CN 104008523A CN 201410287015 A CN201410287015 A CN 201410287015A CN 104008523 A CN104008523 A CN 104008523A
Authority
CN
China
Prior art keywords
pixel
value
grayp
rgb
graphic processing
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.)
Pending
Application number
CN201410287015.0A
Other languages
Chinese (zh)
Inventor
刘夺福
赵金钟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Sheng Zhi Cultural Development Co Ltd
Original Assignee
Shanghai Sheng Zhi Cultural Development Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Sheng Zhi Cultural Development Co Ltd filed Critical Shanghai Sheng Zhi Cultural Development Co Ltd
Priority to CN201410287015.0A priority Critical patent/CN104008523A/en
Publication of CN104008523A publication Critical patent/CN104008523A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Image Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention belongs to the technical field of mobile terminal graphic processing, and provides a graphic processing method. The graphic processing method comprises the following steps that firstly, a graph to be processed is read in, and RGB data of each pixel of the graph are obtained; secondly, due to the fact that the digital graph is a set of the pixels, and basic units forming the digital graph are the pixels P, the RGB data of each read-in pixel P are processed; thirdly, according to the mode, selected by a user, of the graph to be processed, the NDK of an android system is adopted for packaging to generate an SO library, the SO library is used for calling a JNI, the graph is processed through the C language, a new graph of the corresponding processing effect is obtained, wherein the mode specifically comprises gray level graphic processing, negative film graphic processing, diffusion graphic processing, black and white graphic processing, illumination graphic processing, magnifying lens graphic processing and embossment graphic processing. The method has the advantages of being high in efficiency and low in resource.

Description

Graphic processing method
Technical field
The invention belongs to mobile terminal figure processing technology field, particularly a kind of graphic processing method that uses C language compilation under Android environment.
Background technology
Current universal along with mobile terminal of mobile telephone, takes pictures whenever and wherever possible and spreads to each corner in the world with mobile phone.
Along with increasing in a large number of figure, the pursuit of people to graphical personalisation and self-image, processes and has become a kind of great demand the various processing of figure.
Graphics process is to read one to be stored in local figure, then take this figure as egative film, according to the demand of oneself, carries out a large amount of data processings on this egative film, generates the method for the figure of oneself wanting.
Figure is a kind of of people's information that issue amount is larger on mobile social platform, and demand grows with each passing day.Therefore, keeping is the best mode of graphics process to taking of the high performance processing of figure and low internal memory.
When people upload in the process of figure in preparation, in advance figure is processed, if the processing time is oversize, user is lost patience; If it is too many to take mobile phone mobile terminal internal memory, can cause mobile terminal of mobile telephone slack-off and heating, also to user, cause bad experience; When how to keep figure to carry out high-performance treatments, committed memory is very little, is problem in the urgent need to address in pattern treatment procedure.
Therefore, mobile terminal figure processing technology field is badly in need of a kind of high-level efficiency, the graphic processing method that low-resource takies.
Summary of the invention
The invention provides a kind of graphic processing method, technical scheme is as follows:
Graphic processing method, wherein, comprises the steps:
Step 1, reads in figure to be processed, obtains the RGB data of each pixel of figure;
Step 2, because digital figure is the set of pixel, the base unit that forms digital figure is pixel P, therefore the RGB data to each the pixel P reading in are processed, wherein, R represents pure red pixel value, G represents pure green pixel values, and B represents pure blue pixel value;
Step 3, the graphics mode to be processed of selecting according to user, specifically comprise: gray scale graphics process, egative film graphics process, softening graphics process, black and white pattern processing, illumination figure processing, magnifier graphics process, relief pattern are processed, the NDK of employing Android system packs and generates SO storehouse, use SO storehouse to carry out calling of local edition interface JNI, realize C language figure is processed, obtain the new figure of respective handling effect, concrete steps are as follows:
First, wide and high according to figure, calculating pixel number, concrete formula is as follows:
Count=W*H;
Wherein, Count represent pixel number, the line number of W representative of graphics, the height of H represent pixel;
Further, according to number of pixels Count, with JNI function, generate two-dimensional array, concrete formula is as follows:
CBuffer=[W][H],
Wherein, CBuffer represents two-dimensional array, the line number of [W] presentation video pixel, and the height of [H] presentation video pixel, member's number of two-dimensional array CBuffer is Count;
Further, circulation W*H time, respectively read pixel value;
Further, the algorithm of the graphics mode to be processed of selecting according to user, calculates respectively the value after each pixel is processed, and is deposited in two-dimensional array CBuffer;
Further, the two-dimensional array CBuffer generating, by the calling of JNI, is turned back to JAVA layer, and discharges array element, releasing memory; At JAVA layer, according to data, directly generate the new figure with respective handling effect.
Graphic processing method as above, wherein, the specific algorithm of gray scale graphics process is weighted average method, integer method, displacement method, mean value method, only gets green method, maximum value process, and concrete formula is as follows:
Weighted average method, GrayP=R*0.3+G*0.59+B*0.11,
Integer method, GrayP=(R*30+G*59+B*11)/100,
Displacement method, GrayP=(R*28+G*151+B*77) >>8,
Mean value method, GrayP=(R+G+B)/3,
Only get green, GrayP=G,
Maximum value process, GrayP=Max (R, G, B),
Wherein, GrayP represents the gray-scale value that pixel P is ordered, and R value represents pure red pixel value, and G value represents pure green pixel values, and B value represents pure blue pixel value;
Further, the GrayP trying to achieve according to any one method, by the ternary color dot (R in original RGB color model, G, B) value in R, G, B is unified to be replaced with GrayP, form new ternary color dot (GrayP, GrayP, GrayP), with it, replace original (R, G, B), form gray scale figure.
Graphic processing method as above, wherein, the specific algorithm of egative film graphics process is inverted value method, each pixel is carried out to inverted value calculating, concrete formula is as follows:
GrayPr=255-R,
GrayPg=255-G,
GrayPb=255-B,
Wherein, GrayPr represents the inverted value of the pure red pixel value of pixel P, and GrayPg represents the inverted value of the pure green pixel values of pixel P, and GrayPb represents the inverted value of pixel P pure blue pixel value;
Further, according to the GrayPr trying to achieve, GrayPg, GrayPb, by the R in ternary color dot (R, G, the B) value in original RGB, G, B replaces with GrayPr, GrayPg, GrayPb respectively, forms new ternary color dot RGB (GrayPr, GrayPg, GrayPb), form egative film figure.
Graphic processing method as above, wherein, the specific algorithm of softening graphics process is: for each pixel value, adopt the mode loading of calculating respectively, by the ternary color dot (R in its original RGB color model, G, B) value is set to respectively it around 8 points and its correction factor added the mean value of the RGB of self after multiplying each other; Again according to two-dimensional Gaussian function, and then calculate the weight of each point, adopt normal distribution curve to distribute the weight of each point, calculate weighting draw value, with weighted mean value, replace original RGB, form softening figure.
Graphic processing method as above, wherein, the specific algorithm that black and white pattern is processed is, to the RGB GrayP=(R+G+B)/3 that averages, and the mean value GrayP trying to achieve is compared with fiducial value, when mean value is more than or equal to fiducial value, new pixel value is R=G=B=255, when mean value is less than fiducial value, new pixel value is R=G=B=0;
Further, by the GrayP trying to achieve, by the R in original ternary color dot RGB (R, G, B), G, B is unified to be replaced with GrayP, forms new ternary color dot RGB (255,255,255) or RGB (0,0,0), forms black and white pattern.
Graphic processing method as above, wherein, the specific algorithm that illumination figure is processed is, set a light source center coordinate and intensity of illumination, the bee-line of this light source and pattern edge of take is radius, and the RGB that is followed successively by each point increases a same intensity level, and concrete formula is as follows:
First, central point light source coordinate is made as: Center (X, Y) is R apart from the short radius of figure frame, and intensity of illumination is T, the gaining in strength of each pixel distance illumination central point, formula is:
v = ( R - ( | X - x | ) 2 + ( Y - y ) 2 ) × T / R ,
Wherein, x, y represents the coordinate of current pixel, V represents the intensity level increasing;
The pixel value GrayP=(R, G, B) of ternary color dot
Further, new pixel value is GrayP=(R, G, B)+V;
Further, by the GrayP trying to achieve, original pixel rgb pixel value is replaced with GrayP, form illumination figure.
Graphic processing method as above, wherein, the specific algorithm of magnifier graphics process is, each point on figure asked to the distance Z of itself and magnifier, and the radius of Z and magnifier is compared, and draws magnifier figure, concrete steps are as follows:
Further, by the pixel value GrayP trying to achieve, original RGB (R, G, B) pixel value is replaced with GrayP,
First, the coordinate of establishing a pixel on figure is (X, Y), and magnifier centre coordinate is (CenterX, CenterY), and the radius of magnifier is R, and enlargement factor is N;
Further, if Z<R is (X/N, Y/N) by this pixel coordinate renew on figure, and obtains the pixel value GrayP of the pixel after renewal, as new pixel value; Form new color RGB, form enlarged drawing.
Graphic processing method as above, wherein, the specific algorithm that relief pattern is processed is to deduct the rgb value of consecutive point and add that fiducial value is as the new pixel value GrayP of this pixel with the rgb value of a pixel P on figure;
Further, by the GrayP trying to achieve, by the R in original RGB (R, G, B), G, B uses pixel value GrayP to replace, and forms relief pattern.
Beneficial effect of the present invention:
Because the present invention adopts the NDK of Android system to pack, generate SO storehouse, use SO storehouse to carry out calling of local edition interface JNI, realize C language figure is processed, obtain the new figure of respective handling effect, therefore realized high-level efficiency, the object of low-resource, has applicability widely.
Embodiment
For measure, creation characteristic that the technology of the present invention is realized, reach object and effect is easy to understand, below in conjunction with concrete diagram, further set forth the present invention.
The invention provides a kind of graphic processing method, wherein, comprise the steps:
Step 1, reads in figure to be processed, obtains the RGB data of each pixel of figure;
Step 2, because digital figure is the set of pixel, the base unit that forms digital figure is pixel P, therefore the RGB data to each the pixel P reading in are processed, wherein, R represents pure red pixel value, G represents pure green pixel values, and B represents pure blue pixel value;
Step 3, the graphics mode to be processed of selecting according to user, specifically comprise: gray scale graphics process, egative film graphics process, softening graphics process, black and white pattern processing, illumination figure processing, magnifier graphics process, relief pattern are processed, the NDK of employing Android system packs and generates SO storehouse, use SO storehouse to carry out calling of local edition interface JNI, realize C language figure is processed, obtain the new figure of respective handling effect, concrete steps are as follows:
First, wide and high according to figure, calculating pixel number, concrete formula is as follows:
Count=W*H;
Wherein, Count represent pixel number, the line number of W representative of graphics, the height of H represent pixel;
Further, according to number of pixels Count, with JNI function, generate two-dimensional array, concrete formula is as follows:
CBuffer=[W] [H], wherein, CBuffer represents two-dimensional array, the line number of [W] presentation video pixel, the height of [H] presentation video pixel; Member's number of two-dimensional array CBuffer is Count;
Further, circulation W*H time, respectively read pixel value;
Further, the algorithm of the graphics mode to be processed of selecting according to user, calculates respectively the value after each pixel is processed, and is deposited in two-dimensional array CBuffer;
Further, the two-dimensional array CBuffer generating, by the calling of JNI, is turned back to JAVA layer, and discharges array element, releasing memory; At JAVA layer, according to data, directly generate the new figure with respective handling effect.
The color value of each pixel is by red, green, blue three kinds of values mix, the value of RGB has respectively a variety of, so the color value of pixel also can have a variety of color values, the principle of Here it is color graphics, gray scale figure only has 256 kinds of colors, general disposal route is that tri-channel value of the RGB of graphic color value are made as equally, so originally, 256*256*256 kind color relation has only had 256 kinds, 256 kinds of color values have just been lost the chromatic information of figure, what stay only has brightness value, visually see the figure that just becomes grey, the specific algorithm of gray scale graphics process is weighted average method, integer method, displacement method, mean value method, only get green method, maximum value process, concrete formula is as follows:
Weighted average method, GrayP=R*0.3+G*0.59+B*0.11,
Integer method, GrayP=(R*30+G*59+B*11)/100,
Displacement method, GrayP=(R*28+G*151+B*77) >>8,
Mean value method, GrayP=(R+G+B)/3,
Only get green, GrayP=G,
Maximum value process, GrayP=Max (R, G, B),
Wherein, GrayP represents the gray-scale value that pixel P is ordered, and R value represents pure red pixel value, and G value represents pure green pixel values, and B value represents pure blue pixel value;
Further, the GrayP trying to achieve according to any one method, by the ternary color dot (R in original RGB color model, G, B) value in R, G, B is unified to be replaced with GrayP, form new ternary color dot (GrayP, GrayP, GrayP), with it, replace original (R, G, B), form gray scale figure.
The specific algorithm of egative film graphics process is inverted value method, each pixel is carried out to inverted value calculating, and concrete formula is as follows:
GrayPr=255-R,
GrayPg=255-G,
GrayPb=255-B,
Wherein, GrayPr represents the inverted value of the pure red pixel value of pixel P, and GrayPg represents the inverted value of the pure green pixel values of pixel P, and GrayPb represents the inverted value of pixel P pure blue pixel value;
Further, according to the GrayPr trying to achieve, GrayPg, GrayPb, by the R in ternary color dot (R, G, the B) value in original RGB, G, B replaces with GrayPr, GrayPg, GrayPb respectively, forms new ternary color dot RGB (GrayPr, GrayPg, GrayPb), form egative film figure.
Softening figure is to make each point of figure more level and smooth with color around, is exactly for each pixel value, asks its weighted mean value, if use simple average, is not obviously quite reasonable, because image is all continuous, the closer to some relation closer, more away from some relation more become estranged; Therefore, weighted mean is more reasonable, larger apart from nearer some weight, and the some weight that distance is far away is less; Normal distribution is obviously a kind of desirable weight allocation pattern.The specific algorithm of softening graphics process is: for each pixel value, adopt the mode loading of calculating respectively, ternary color dot (R, G, B) value in its original RGB color model is set to respectively to it, and around 8 points and its correction factor are added the mean value of the RGB of self after multiplying each other; Again according to two-dimensional Gaussian function, and then calculate the weight of each point, adopt normal distribution curve to distribute the weight of each point, calculate weighting draw value, with weighted mean value, replace original RGB, form softening figure.
The specific algorithm that black and white pattern is processed is, to the RGB GrayP=(R+G+B)/3 that averages, and the mean value GrayP trying to achieve is compared with fiducial value, when mean value is more than or equal to fiducial value, new pixel value is R=G=B=255, when mean value is less than fiducial value, new pixel value is R=G=B=0;
Further, by the GrayP trying to achieve, by the R in original ternary color dot RGB (R, G, B), G, B is unified to be replaced with GrayP, forms new ternary color dot RGB (255,255,255) or RGB (0,0,0), forms black and white pattern.
The specific algorithm that illumination figure is processed is, sets a light source center coordinate and intensity of illumination, and the bee-line of this light source and pattern edge of take is radius, and the RGB that is followed successively by each point increases a same intensity level, and specifically formula is as follows:
First, central point light source coordinate is made as: Center (X, Y) is R apart from the short radius of figure frame, and intensity of illumination is T, the gaining in strength of each pixel distance illumination central point, formula is:
v = ( R - ( ( | X - x | ) 2 + ( | Y - y | ) 2 ) ) &times; T / R ,
Wherein, x, y represents the coordinate of current pixel, V represents the intensity level increasing;
The pixel value GrayP=(R, G, B) of ternary color dot
Further, new pixel value is GrayP=(R, G, B)+v;
Further, by the GrayP trying to achieve, original pixel rgb pixel value is replaced with GrayP, form illumination figure.
The specific algorithm of magnifier graphics process is, each point on figure asked to the distance Z of itself and magnifier, and the radius of Z and magnifier is compared, and draws magnifier figure, and concrete steps are as follows:
First, the coordinate of establishing a pixel on figure is (X, Y), and magnifier centre coordinate is (CenterX, CenterY), and the radius of magnifier is R, and enlargement factor is N;
Further, if Z<R is (X/N, Y/N) by this pixel coordinate renew on figure, and obtains the pixel value GrayP of the pixel after renewal, as new pixel value;
Further, by the pixel value GrayP trying to achieve, original RGB (R, G, B) is replaced with GrayP, form new color RGB, form enlarged drawing.
Embossment is by the processing to tri-kinds of colors of RGB, with the rgb value of current point, deducts the rgb value of consecutive point and adds that 128 as new rgb value.Because the color value of consecutive point in picture is more approaching, therefore after such algorithm process, coloured border area only, the result of the part that namely adjacent color differs greatly just can be obvious, other smooth regions are worth and all approach 128 left and right, namely grey, has produced anaglyph.The specific algorithm that relief pattern is processed is to deduct the rgb value of consecutive point and add that fiducial value is as the new pixel value GrayP of this pixel with the rgb value of a pixel P on figure;
Further, by the GrayP trying to achieve, by the R in original RGB (R, G, B), G, B uses pixel value GrayP to replace, and forms relief pattern.
Because the present invention adopts the NDK of Android system to pack, generate SO storehouse, use SO storehouse to carry out calling of local edition interface JNI, realize C language figure is processed, obtain the new figure of respective handling effect, therefore realized high-level efficiency, the object of low-resource, has applicability widely.
More than show and described ultimate principle of the present invention, principal character and advantage of the present invention.The technician of the industry should understand; the present invention is not restricted to the described embodiments; that in above-described embodiment and instructions, describes just illustrates principle of the present invention; the present invention also has various changes and modifications without departing from the spirit and scope of the present invention, and these changes and improvements all fall in the claimed scope of the invention.The claimed scope of the present invention is defined by appending claims and equivalent thereof.

Claims (9)

1. graphic processing method, is characterized in that, comprises the steps:
Step 1, reads in figure to be processed, obtains the RGB data of each pixel of figure;
Step 2, because digital figure is the set of pixel, the base unit that forms digital figure is pixel P, therefore to read in each described in the RGB data of pixel P process, wherein, R represents pure red pixel value, G represents pure green pixel values, and B represents pure blue pixel value;
Step 3, the graphics mode to be processed of selecting according to user, specifically comprise: gray scale graphics process, egative film graphics process, softening graphics process, black and white pattern processing, illumination figure processing, magnifier graphics process, relief pattern are processed, the NDK of employing Android system packs and generates SO storehouse, use SO storehouse to carry out calling of local edition interface JNI, realize C language figure is processed, obtain the new figure of respective handling effect, concrete steps are as follows:
First, wide and high according to figure, calculating pixel number, concrete formula is as follows:
Count=W*H;
Wherein, Count represent pixel number, W representative of graphics wide, the height of H represent pixel;
Further, according to described number of pixels Count, with JNI function, generate two-dimensional array, concrete formula is as follows:
CBuffer=[W][H],
Wherein, CBuffer represents two-dimensional array, the line number of [W] presentation video pixel, the height of [H] presentation video pixel; Member's number of two-dimensional array CBuffer is Count;
Further, circulation W*H time, respectively read pixel value;
Further, the algorithm of the graphics mode to be processed of selecting according to user, calculates respectively the pixel value after each pixel is processed, and is deposited in two-dimensional array CBuffer;
Further, the two-dimensional array CBuffer generating, by the calling of JNI, is turned back to JAVA layer, and discharges array element, releasing memory; At described JAVA layer, according to data, directly generate the new figure with respective handling effect.
2. graphic processing method according to claim 1, is characterized in that, the specific algorithm of described gray scale graphics process is
Weighted average method, integer method, displacement method, mean value method, only get green method, maximum value process, concrete formula
As follows:
Weighted average method, GrayP=R*0.3+G*0.59+B*0.11,
Integer method, GrayP=(R*30+G*59+B*11)/100,
Displacement method, GrayP=(R*28+G*151+B*77) >>8,
Mean value method, GrayP=(R+G+B)/3,
Only get green, GrayP=G,
Maximum value process, GrayP=Max (R, G, B),
Wherein, GrayP represents the gray-scale value that pixel P is ordered, and R value represents pure red pixel value, and G value represents pure green pixel values, and B value represents pure blue pixel value;
Further, the described GrayP trying to achieve according to any one method, by the ternary color dot (R in original described RGB color model, G, B) value in R, G, B is unified to be replaced with GrayP, form new ternary color dot (GrayP, GrayP, GrayP), with it, replace original (R, G, B), form gray scale figure.
3. graphic processing method according to claim 1, is characterized in that, the specific algorithm of described egative film graphics process is
Inverted value method, carries out inverted value calculating to each pixel, and concrete formula is as follows:
GrayPr=255-R,
GrayPg=255-G,
GrayPb=255-B,
Wherein, GrayPr represents the inverted value of the pure red pixel value of pixel P, and GrayPg represents the inverted value of the pure green pixel values of pixel P, and GrayPb represents the inverted value of pixel P pure blue pixel value;
Further, according to described GrayPr, the GrayPg, the GrayPb that try to achieve, by the R in ternary color dot (R, G, the B) value in original described RGB, G, B replaces with GrayPr, GrayPg, GrayPb respectively, forms new ternary color dot RGB (GrayPr, GrayPg, GrayPb), form egative film figure.
4. graphic processing method according to claim 1, it is characterized in that, the specific algorithm of described softening graphics process is: for each pixel value, adopt the mode loading of calculating respectively, by the ternary color dot (R in its original RGB color model, G, B) value is set to respectively it around 8 points and its correction factor added the mean value of the described RGB of self after multiplying each other; Again according to two-dimensional Gaussian function, and then calculate the weight of each point, adopt normal distribution curve to distribute the weight of each point, calculate weighting draw value, with described weighted mean value, replace original RGB, form softening figure.
5. graphic processing method according to claim 1, it is characterized in that, the specific algorithm that described black and white pattern is processed is, to the RGB GrayP=(R+G+B)/3 that averages, and the described mean value GrayP trying to achieve is compared with fiducial value, when described mean value is more than or equal to fiducial value, new pixel value is R=G=B=255, when described mean value is less than fiducial value, new pixel value is R=G=B=0;
Further, by the described GrayP trying to achieve, by the R in original ternary color dot RGB (R, G, B), G, B is unified to be replaced with GrayP, forms new ternary color dot RGB (255,255,255) or RGB (0,0,0), forms black and white pattern.
6. graphic processing method according to claim 1, is characterized in that, the specific algorithm that described illumination figure is processed is,
Set a light source center coordinate and intensity of illumination, the bee-line of this light source and pattern edge of take is radius, is followed successively by
The RGB of each point increases a same intensity level, and concrete formula is as follows: first, central point light source coordinate is made as: Center (X, Y), apart from the short radius of figure frame, be R, intensity of illumination is T, gaining in strength of each pixel distance illumination central point, formula is:
v = ( R - ( ( | X - x | ) 2 + ( | Y - y | ) 2 ) ) &times; T / R ,
Wherein, x, y represents the coordinate of current pixel, V represents the intensity level increasing;
The pixel value GrayP=(R, G, B) of ternary color dot
Further, new pixel value is GrayP=(R, G, B)+v;
Further, by the described GrayP trying to achieve, original pixel rgb pixel value is replaced with described GrayP, form illumination figure.
7. graphic processing method according to claim 1, is characterized in that, the specific algorithm of described magnifier graphics process
For, each point on figure is asked to the distance Z of itself and magnifier, the radius of described Z and magnifier is compared,
Draw magnifier figure, concrete steps are as follows:
First, the coordinate of establishing a pixel on figure is (X, Y), and magnifier centre coordinate is (CenterX, CenterY), and the radius of magnifier is R, and enlargement factor is N;
Further, if Z<R is (X/N, Y/N) by this pixel coordinate renew on figure, and obtains the pixel value GrayP of the pixel after renewal, as new pixel value;
Further, by the described pixel value GrayP trying to achieve, original described RGB (R, G, B) is replaced with GrayP, form new color RGB, form enlarged drawing.
8. graphic processing method according to claim 1, is characterized in that, the specific algorithm that described relief pattern is processed is to deduct the rgb value of consecutive point and add that fiducial value is as the new pixel value GrayP of this pixel with the rgb value of a pixel P on figure; By the described GrayP trying to achieve, by the R in original described RGB (R, G, B), G, B uses described pixel value GrayP to replace, and forms relief pattern.
9. according to the graphic processing method described in claim 5 or 8, it is characterized in that, described fiducial value is 128.
CN201410287015.0A 2014-06-24 2014-06-24 Graphic processing method Pending CN104008523A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410287015.0A CN104008523A (en) 2014-06-24 2014-06-24 Graphic processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410287015.0A CN104008523A (en) 2014-06-24 2014-06-24 Graphic processing method

Publications (1)

Publication Number Publication Date
CN104008523A true CN104008523A (en) 2014-08-27

Family

ID=51369165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410287015.0A Pending CN104008523A (en) 2014-06-24 2014-06-24 Graphic processing method

Country Status (1)

Country Link
CN (1) CN104008523A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430511A (en) * 2015-12-10 2016-03-23 河南理工大学 Multifunctional multimedia teaching control system suitable for art teaching
CN107180440A (en) * 2017-05-31 2017-09-19 铜仁市万山区丹凤朱砂工艺品研发检测鉴定中心有限公司 A kind of method that processing curve is obtained according to photo
CN111080732A (en) * 2019-11-12 2020-04-28 望海康信(北京)科技股份公司 Method and system for forming virtual map
CN113581080A (en) * 2021-08-18 2021-11-02 苏州双福智能科技有限公司 Auxiliary display device for reversing blind area for new energy automobile

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430511A (en) * 2015-12-10 2016-03-23 河南理工大学 Multifunctional multimedia teaching control system suitable for art teaching
CN107180440A (en) * 2017-05-31 2017-09-19 铜仁市万山区丹凤朱砂工艺品研发检测鉴定中心有限公司 A kind of method that processing curve is obtained according to photo
CN111080732A (en) * 2019-11-12 2020-04-28 望海康信(北京)科技股份公司 Method and system for forming virtual map
CN111080732B (en) * 2019-11-12 2023-09-22 望海康信(北京)科技股份公司 Method and system for forming virtual map
CN113581080A (en) * 2021-08-18 2021-11-02 苏州双福智能科技有限公司 Auxiliary display device for reversing blind area for new energy automobile

Similar Documents

Publication Publication Date Title
KR102290985B1 (en) Image lighting method, apparatus, electronic device and storage medium
CN106971165B (en) A kind of implementation method and device of filter
US8289342B2 (en) Image processing apparatus and storage medium having stored therein an image processing program
CN107092684B (en) Image processing method and device, storage medium
US10755153B2 (en) Method of generating 3-dimensional code based on gaussian modulating function
CN104076928B (en) A kind of method for adjusting text importing image
CN109345454B (en) Bitmap image vectorization method, storage medium and system
CN101510302A (en) Method and apparatus for enhancing image
CN104008523A (en) Graphic processing method
CN104301636B (en) The synthetic method of low complex degree efficient high dynamic digital picture
JP2018526755A (en) Image contrast enhancement method
CN109493814A (en) Frame compensation method, apparatus, display device and computer readable storage medium
CN104915975B (en) A kind of image processing method and system of simulation wax crayon colored drawing
CN103778900A (en) Image processing method and system
CN113314079B (en) Picture display method and device, electronic equipment and storage medium
CN103559236A (en) Image displaying method and terminal
CN105023252A (en) Method and system for enhancement processing of beautified image and shooting terminal
CN111163301B (en) Color adjustment method, device and computer readable storage medium
CN107205142B (en) A kind of method, apparatus and display equipment of image color offset
CN103744942B (en) Web browser method and device, web page browsing terminal device
CN108198123A (en) Watermark embedding method and terminal
CN108305224A (en) A kind of distortion correction method of image, device and television set
CN109389150A (en) Image consistency comparison method, device, storage medium and electronic equipment
CN113112422A (en) Image processing method, image processing device, electronic equipment and computer readable medium
US9959819B2 (en) RGB to RGBW brightness compensation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140827

WD01 Invention patent application deemed withdrawn after publication